summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_x509.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index 8c281a3..a6714a4 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -146,7 +146,9 @@ class X509TestCase(unittest.TestCase):
cn.set_data("Hello There!")
assert cn.get_data().as_text() == "Hello There!", cn.get_data().as_text()
- assert n.as_hash() == 1697185131
+ # OpenSSL 1.0.1h switched from encoding strings as PRINTABLESTRING (the
+ # first hash value) to UTF8STRING (the second one)
+ assert n.as_hash() in (1697185131, 1370641112), n.as_hash()
self.assertRaises(IndexError, lambda: n[100])
self.assert_(n[10])