From 6429d76a87bdf34507b82214f6dda6a7296865bb Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Fri, 15 Jan 2016 00:18:21 +0300 Subject: [PATCH] Tox fix: interpreter should be provided --- python/helpers/pycharm/_jb_tox_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/helpers/pycharm/_jb_tox_runner.py b/python/helpers/pycharm/_jb_tox_runner.py index 15552622a4f9..26535fbb7094 100644 --- a/python/helpers/pycharm/_jb_tox_runner.py +++ b/python/helpers/pycharm/_jb_tox_runner.py @@ -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