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.
1 parent b3fadcb commit 9e7951fCopy full SHA for 9e7951f
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