Skip to content

Commit

Permalink
Fixes pyca#4242 -- added an additional assert to make this test more …
Browse files Browse the repository at this point in the history
…resillient (pyca#4308)
  • Loading branch information
alex authored and reaperhulk committed Jul 4, 2018
1 parent d2e51f9 commit e2a0493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/hazmat/primitives/test_ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,8 @@ def test_key_exchange_with_vectors(self, backend, vector):
# 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']
Expand Down

0 comments on commit e2a0493

Please sign in to comment.