aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2018-07-04 10:46:36 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-07-04 20:16:36 +0530
commite2a0493e9808288ceae7e8d54e0d19d306f89223 (patch)
tree9c1aaf491f757df024bcda1308dd2f314a6b2c00
parentd2e51f98269b332ed74e306e5f3fd40bdf8b3eb9 (diff)
downloadcryptography-e2a0493e9808288ceae7e8d54e0d19d306f89223.tar.gz
cryptography-e2a0493e9808288ceae7e8d54e0d19d306f89223.tar.bz2
cryptography-e2a0493e9808288ceae7e8d54e0d19d306f89223.zip
Fixes #4242 -- added an additional assert to make this test more resillient (#4308)
-rw-r--r--tests/hazmat/primitives/test_ec.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py
index 5c3da5b6..d015e84d 100644
--- a/tests/hazmat/primitives/test_ec.py
+++ b/tests/hazmat/primitives/test_ec.py
@@ -1080,6 +1080,8 @@ class TestECDH(object):
# At this point fail indicates that one of the underlying keys was
# changed. This results in a non-matching derived key.
if vector['fail']:
+ # Errno 8 indicates Z should be changed.
+ assert vector['errno'] == 8
assert z != vector['Z']
else:
assert z == vector['Z']