diff --git a/lib/matplotlib/tests/test_testing.py b/lib/matplotlib/tests/test_testing.py new file mode 100644 index 000000000000..55415abb6a04 --- /dev/null +++ b/lib/matplotlib/tests/test_testing.py @@ -0,0 +1,7 @@ +import warnings +import pytest + +@pytest.mark.xfail(strict=True, + reason="testing that warnings fail tests") +def test_warn_to_fail(): + warnings.warn("This should fail the test")