aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhoebe Queen <foibey@gmail.com>2015-08-12 11:42:23 +0100
committerPhoebe Queen <foibey@gmail.com>2015-08-12 11:42:23 +0100
commit062dec72a2a0d769328c575ae8cc11e21eed2f18 (patch)
treed9773c0f7b67b3b0e66b6cd209be2a9838d5e07f /tests
parent85fa546c4a7f68e2632034f28a1a07cb441de8a2 (diff)
downloadcryptography-062dec72a2a0d769328c575ae8cc11e21eed2f18.tar.gz
cryptography-062dec72a2a0d769328c575ae8cc11e21eed2f18.tar.bz2
cryptography-062dec72a2a0d769328c575ae8cc11e21eed2f18.zip
fixed pep8 error
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