We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0200346 commit 7a950ffCopy full SHA for 7a950ff
1 file changed
test/unit/test_compatability.py
@@ -5,6 +5,7 @@
5
6
import mock
7
import pytest
8
+import warnings
9
10
from aws_encryption_sdk.compatability import _warn_deprecated_python
11
@@ -16,7 +17,8 @@ def test_happy_version(self):
16
17
with mock.patch.object(sys, "version_info") as v_info:
18
v_info.major = 3
19
v_info.minor = 6
- with pytest.warns(None) as record:
20
+ with warnings.catch_warnings(record=True) as record:
21
+ warnings.simplefilter("always")
22
_warn_deprecated_python()
23
assert len(record) == 0
24
0 commit comments