Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62db922

Browse files
authoredMay 13, 2024··
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

Lines changed: 3 additions & 4 deletions
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)
Please sign in to comment.