aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_openssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-22 16:24:06 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-22 16:24:06 -0800
commite247d0be584c52e25694918ad2345dadde3fefa9 (patch)
tree4de14a0fefd1e1f783b9c2d0b00823089ebf722d /tests/hazmat/bindings/test_openssl.py
parent3edffe25ab91702842a7553b028d50086c58eef1 (diff)
downloadcryptography-e247d0be584c52e25694918ad2345dadde3fefa9.tar.gz
cryptography-e247d0be584c52e25694918ad2345dadde3fefa9.tar.bz2
cryptography-e247d0be584c52e25694918ad2345dadde3fefa9.zip
Coverage
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r--tests/hazmat/bindings/test_openssl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index 9f27aab7..7ad1ea75 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -70,3 +70,7 @@ class TestOpenSSL(object):
)
with pytest.raises(UnsupportedAlgorithm):
cipher.encryptor()
+
+ def test_handle_unknown_error(self):
+ with pytest.raises(SystemError):
+ backend._handle_error_code(0, 0, 0)