Skip to content

Commit

Permalink
fix M2Crypto 0.27.0 test compatibility
Browse files Browse the repository at this point in the history
the different behaviour was introduced in 0.28.0, not
in 0.27.0, so the test needs to check against 0.28.0

also (0, 27, 0) > (0, 27) evaluates to True
(this is where the original confuson came from)
  • Loading branch information
tomato42 committed Mar 19, 2018
1 parent 48c454f commit 3e170b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit_tests/test_tlslite_utils_keyfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_key_parse_using_openssl(self):

# XXX doesn't handle files without newlines
# old version of M2Crypto return a Null, in Python3 it raises exception
if M2Crypto.version_info >= (0, 27, 0):
if M2Crypto.version_info >= (0, 28, 0):
exp = M2Crypto.EVP.EVPError
else:
exp = SyntaxError
Expand Down

0 comments on commit 3e170b4

Please sign in to comment.