
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


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

Fix python_version_check on python 3
tests: Fix python_version_check on python 3

  
  import os
  import sys
  
  current_version = list(sys.version_info[:3])
  print("current_version: %s" % str(current_version))
  
+ expected_version = list(
- expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
+     map(int, os.environ["EXPECTED_PYTHON_VERSION"].split(".")))
  print("expected_version: %s" % str(expected_version))
  
  assert current_version == expected_version
  
Fix python_version_check on python 3
## Code Before:

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

## Instruction:
Fix python_version_check on python 3
## Code After:

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
