diff options
| author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2021-11-17 20:05:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-17 07:05:10 -0500 |
| commit | edcf395cbca9d02b54cc71366b19daa6da9e4c8a (patch) | |
| tree | 9589c8c7cf79d1071f6e5015e86843387455d961 /tests | |
| parent | cd6920407717d2b212687603bdbf7bf413b23c6e (diff) | |
| download | cryptography-edcf395cbca9d02b54cc71366b19daa6da9e4c8a.tar.gz | |
raise warning on encoded default value in csr (#6615)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/x509/test_x509.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py index 918219e18..912720d1a 100644 --- a/tests/x509/test_x509.py +++ b/tests/x509/test_x509.py @@ -1466,9 +1466,10 @@ class TestRSACertificateRequest(object): x509.load_pem_x509_csr, backend, ) - subject_alternative_name = csr.extensions.get_extension_for_oid( - ExtensionOID.SUBJECT_ALTERNATIVE_NAME - ) + with pytest.warns(utils.DeprecatedIn36): + subject_alternative_name = csr.extensions.get_extension_for_oid( + ExtensionOID.SUBJECT_ALTERNATIVE_NAME + ) assert subject_alternative_name.critical is False assert len(subject_alternative_name.value) == 3 |
