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