aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 1a369653..3b03b7db 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,6 +9,12 @@ envlist=python
[testenv]
deps=-rtests/requirements.txt
+# Changed from default (`python -m pip ...`)
+# to prevent the current working directory
+# from being added to `sys.path`.
+install_command={envbindir}/pip install {opts} {packages}
+# Same as above.
+list_dependencies_command={envbindir}/pip freeze
setenv=COVERAGE_FILE={toxworkdir}/.coverage.{envname}
# TODO: The passed environment variables came from copying other tox.ini files
# These should probably be individually annotated to explain what needs them.