Skip to content

Commit b8751ab

Browse files
committed
Fix python version check
1 parent 27f2b4b commit b8751ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Crypto/SelfTest/Protocol/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_tests(config={}):
3333
from Crypto.SelfTest.Protocol import test_SecretSharing
3434
tests += test_SecretSharing.get_tests(config=config)
3535

36-
if sys.version[0] >= 3:
36+
if sys.version_info >= (3, 11):
3737
from Crypto.SelfTest.Protocol import test_HPKE
3838
tests += test_HPKE.get_tests(config=config)
3939

0 commit comments

Comments
 (0)