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 e4b5d72 commit 62db922Copy full SHA for 62db922
test/unit/test_compatability.py
@@ -22,13 +22,12 @@
22
23
24
class TestWarnDeprecatedPython:
25
- def test_happy_version(self):
+ def test_happy_version(self, recwarn):
26
with mock.patch.object(sys, "version_info") as v_info:
27
v_info.major = 3
28
v_info.minor = 8
29
- with pytest.warns(None) as record:
30
- _warn_deprecated_python()
31
- assert len(record) == 0
+ _warn_deprecated_python()
+ assert len(recwarn) == 0
32
33
def test_below_warn(self):
34
0 commit comments