From 57eec7fda04034b70681adda53b2d564eed33ef7 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 19 Mar 2016 11:58:32 -0400 Subject: Use runtimeerror for this --- tests/hazmat/bindings/test_openssl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index 6b6b7474..34c23ab2 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -178,7 +178,6 @@ class TestOpenSSL(object): def test_verify_openssl_version(self, monkeypatch): monkeypatch.delenv("CRYPTOGRAPHY_ALLOW_OPENSSL_098", raising=False) - # TODO: what exception type? - with pytest.raises(Exception): + with pytest.raises(RuntimeError): # OpenSSL 0.9.8zg _verify_openssl_version(0x9081DF) -- cgit v1.2.3