aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_x509_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index 043aaa7d..33da27ec 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -842,7 +842,7 @@ class TestExtensions(object):
)
exts = cert.extensions
with pytest.raises(x509.ExtensionNotFound) as exc:
- ext = exts.get_extension_for_class(x509.BasicConstraints)
+ exts.get_extension_for_class(x509.BasicConstraints)
assert exc.value.oid == ExtensionOID.BASIC_CONSTRAINTS
def test_one_extension_get_for_class(self, backend):
@@ -869,7 +869,7 @@ class TestBasicConstraintsExtension(object):
x509.load_der_x509_certificate,
backend
)
- cert.extensions.get_extension_for_oid(
+ ext = cert.extensions.get_extension_for_oid(
ExtensionOID.BASIC_CONSTRAINTS
)
assert ext is not None