From e2a0493e9808288ceae7e8d54e0d19d306f89223 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 4 Jul 2018 10:46:36 -0400 Subject: Fixes #4242 -- added an additional assert to make this test more resillient (#4308) --- tests/hazmat/primitives/test_ec.py | 2 ++ 1 file changed, 2 insertions(+) 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'] -- cgit v1.2.3