aboutsummaryrefslogtreecommitdiffstats
path: root/tests/x509/test_x509.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/x509/test_x509.py')
-rw-r--r--tests/x509/test_x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py
index 97b5a749..27e284a3 100644
--- a/tests/x509/test_x509.py
+++ b/tests/x509/test_x509.py
@@ -577,7 +577,7 @@ class TestRSACertificate(object):
backend
)
- with pytest.deprecated_call():
+ with pytest.warns(utils.CryptographyDeprecationWarning):
assert cert.serial == 2
assert cert.serial_number == 2
@@ -588,7 +588,7 @@ class TestRSACertificate(object):
backend
)
- with pytest.deprecated_call():
+ with pytest.warns(utils.CryptographyDeprecationWarning):
cert.serial
def test_load_der_cert(self, backend):