File size: 319 Bytes
0b32ad6
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import argparse
import platform

parser = argparse.ArgumentParser()
parser.add_argument("python_version")
args = parser.parse_args()

version = str(platform.python_version())
assert version.startswith(
    args.python_version
), f"expected python version: {args.python_version}, tox executed python version: {version}"