diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-11-10 23:19:05 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-11-11 12:19:05 +0800 |
commit | 270933c1a2afa0aa60409946bb7319d85fd60059 (patch) | |
tree | f5ff261a2dd5be46e812785d67f9322596b19792 /tests/x509 | |
parent | d2d800058f93f78e46afe504b5709b865b7af35d (diff) | |
download | cryptography-270933c1a2afa0aa60409946bb7319d85fd60059.tar.gz cryptography-270933c1a2afa0aa60409946bb7319d85fd60059.tar.bz2 cryptography-270933c1a2afa0aa60409946bb7319d85fd60059.zip |
Use a different warning class so users get warnings (#4014)
* Use a different warning class so users get warnings
* fixed tests
* do our own warning class
* typo
* flake8
Diffstat (limited to 'tests/x509')
-rw-r--r-- | tests/x509/test_x509.py | 4 |
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): |