From 3e170b4e6b8c958e5accaaeb9ecc239bc4aabdfc Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 19 Mar 2018 12:54:45 +0100 Subject: [PATCH] fix M2Crypto 0.27.0 test compatibility 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) --- unit_tests/test_tlslite_utils_keyfactory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_tests/test_tlslite_utils_keyfactory.py b/unit_tests/test_tlslite_utils_keyfactory.py index eb8eeb76..f5511e89 100644 --- a/unit_tests/test_tlslite_utils_keyfactory.py +++ b/unit_tests/test_tlslite_utils_keyfactory.py @@ -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