Tox fix: interpreter should be provided

This commit is contained in:
Ilya.Kazakevich
2016-01-15 00:20:49 +03:00
parent 6aac85f2f1
commit 6429d76a87
+2 -2
View File
@@ -18,9 +18,9 @@ helpers_dir = str(os.path.split(__file__)[0])
class _Unit2(object):
def fix(self, command, dir_to_run):
if command[0] == "unit2":
return [os.path.join(helpers_dir, "utrunner.py"), dir_to_run] + command[1:] + ["true"]
return ["python", os.path.join(helpers_dir, "utrunner.py"), dir_to_run] + command[1:] + ["true"]
elif command == ["python", "-m", "unittest", "discover"]:
return [os.path.join(helpers_dir, "utrunner.py"), dir_to_run] + ["true"]
return ["python", os.path.join(helpers_dir, "utrunner.py"), dir_to_run, "true"]
return None