Skip to content

Commit 7a950ff

Browse files
m
1 parent 0200346 commit 7a950ff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/unit/test_compatability.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import mock
77
import pytest
8+
import warnings
89

910
from aws_encryption_sdk.compatability import _warn_deprecated_python
1011

@@ -16,7 +17,8 @@ def test_happy_version(self):
1617
with mock.patch.object(sys, "version_info") as v_info:
1718
v_info.major = 3
1819
v_info.minor = 6
19-
with pytest.warns(None) as record:
20+
with warnings.catch_warnings(record=True) as record:
21+
warnings.simplefilter("always")
2022
_warn_deprecated_python()
2123
assert len(record) == 0
2224

0 commit comments

Comments
 (0)