Skip to content

Commit 62db922

Browse files
authored
Update test_compatability.py
1 parent e4b5d72 commit 62db922

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/unit/test_compatability.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@
2222

2323

2424
class TestWarnDeprecatedPython:
25-
def test_happy_version(self):
25+
def test_happy_version(self, recwarn):
2626
with mock.patch.object(sys, "version_info") as v_info:
2727
v_info.major = 3
2828
v_info.minor = 8
29-
with pytest.warns(None) as record:
30-
_warn_deprecated_python()
31-
assert len(record) == 0
29+
_warn_deprecated_python()
30+
assert len(recwarn) == 0
3231

3332
def test_below_warn(self):
3433
with mock.patch.object(sys, "version_info") as v_info:

0 commit comments

Comments
 (0)