Fix py.test version selection

This commit is contained in:
Luke Campagnola 2014-03-24 23:30:19 -04:00
parent b0e6c7cb94
commit 5d04ef53b8
1 changed files with 1 additions and 4 deletions

View File

@ -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: