
import os
import sys

current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))

expected_version = list(
    map(int, os.environ["EXPECTED_PYTHON_VERSION"].split(".")))
print("expected_version: %s" % str(expected_version))

assert current_version == expected_version


import os
import sys

current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))

expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
print("expected_version: %s" % str(expected_version))

assert current_version == expected_version

--- 
+++ 
@@ -5,7 +5,8 @@
 current_version = list(sys.version_info[:3])
 print("current_version: %s" % str(current_version))
 
-expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
+expected_version = list(
+    map(int, os.environ["EXPECTED_PYTHON_VERSION"].split(".")))
 print("expected_version: %s" % str(expected_version))
 
 assert current_version == expected_version
tests: Fix python_version_check on python 3
