Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46bf4d4 + 9e7951f commit 55ff0d3Copy full SHA for 55ff0d3
1 file changed
lib/matplotlib/tests/test_testing.py
@@ -0,0 +1,7 @@
1
+import warnings
2
+import pytest
3
+
4
+@pytest.mark.xfail(strict=True,
5
+ reason="testing that warnings fail tests")
6
+def test_warn_to_fail():
7
+ warnings.warn("This should fail the test")
0 commit comments