From 007d15eb3d369ad8d0006e853e75b567e347998b Mon Sep 17 00:00:00 2001 From: dgelessus Date: Mon, 30 Mar 2020 01:46:10 +0200 Subject: [PATCH] Fix tox configuration breaking on spaces in the project path The {envpython} substitution is not quoted, so spaces in the path are treated as argument separators and cause the test runs to fail. To work around this, we now always use an unqualified python command instead of the {envpython} substitution. This is safe because the tox commands are always run in a virtual environment, so the python command is guaranteed to point to the environment's Python and not the system default. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index fbfac02..3ec1157 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = py{36,37,38},flake8,mypy [testenv] -commands = {envpython} -m unittest discover --start-directory ./tests +commands = python -m unittest discover --start-directory ./tests [testenv:flake8] deps =