aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r--tests/test_x509_ext.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index 5f175c4d..c17beba5 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -766,5 +766,7 @@ class TestRSASubjectAlternativeNameExtension(object):
x509.load_pem_x509_certificate,
backend
)
- with pytest.raises(x509.UnsupportedGeneralNameType):
+ with pytest.raises(x509.UnsupportedGeneralNameType) as exc:
cert.extensions
+
+ assert exc.value.type == "otherName"