Fix py.test version selection
This commit is contained in:
parent
b0e6c7cb94
commit
5d04ef53b8
|
@ -32,12 +32,9 @@ def checkStyle():
|
||||||
|
|
||||||
def unitTests():
|
def unitTests():
|
||||||
try:
|
try:
|
||||||
print("version:", sys.version[0])
|
if sys.version[0] == '3':
|
||||||
if sys.version[0] == 3:
|
|
||||||
print("PY3 test")
|
|
||||||
out = check_output('PYTHONPATH=. py.test-3', shell=True)
|
out = check_output('PYTHONPATH=. py.test-3', shell=True)
|
||||||
else:
|
else:
|
||||||
print("PY2 test")
|
|
||||||
out = check_output('PYTHONPATH=. py.test', shell=True)
|
out = check_output('PYTHONPATH=. py.test', shell=True)
|
||||||
ret = 0
|
ret = 0
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue