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 d761bff commit 02e742bCopy full SHA for 02e742b
testing/test_recwarn.py
@@ -1,7 +1,7 @@
1
import warnings
2
import py
3
import pytest
4
-from _pytest.recwarn import WarningsChecker, WarningsRecorder
+from _pytest.recwarn import WarningsRecorder
5
6
7
def test_recwarn_functional(testdir):
@@ -42,6 +42,7 @@ def test_recording(self, recwarn):
42
assert showwarning == py.std.warnings.showwarning
43
44
def test_typechecking(self):
45
+ from _pytest.recwarn import WarningsChecker
46
with pytest.raises(TypeError):
47
WarningsChecker(5)
48
0 commit comments