summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--changelog/744.trivial.rst2
-rwxr-xr-xtox/venv.py3
3 files changed, 4 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index d85c8aa4..c2a73e0e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -55,6 +55,7 @@ Pierre-Luc Tessier Gagné
Ronald Evers
Ronny Pfannschmidt
Selim Belhaouane
+Stephen Finucane
Sridhar Ratnakumar
Ville Skyttä
anatoly techtonik
diff --git a/changelog/744.trivial.rst b/changelog/744.trivial.rst
new file mode 100644
index 00000000..5d7720de
--- /dev/null
+++ b/changelog/744.trivial.rst
@@ -0,0 +1,2 @@
+The ``PYTHONDONTWRITEBYTECODE`` environment variable is no longer unset - by
+@stephenfin.
diff --git a/tox/venv.py b/tox/venv.py
index 69571637..84e95016 100755
--- a/tox/venv.py
+++ b/tox/venv.py
@@ -397,8 +397,7 @@ class VirtualEnv(object):
def _pcall(self, args, cwd, venv=True, testcommand=False,
action=None, redirect=True, ignore_ret=False):
- for name in ("VIRTUALENV_PYTHON", "PYTHONDONTWRITEBYTECODE"):
- os.environ.pop(name, None)
+ os.environ.pop('VIRTUALENV_PYTHON', None)
cwd.ensure(dir=1)
args[0] = self.getcommandpath(args[0], venv, cwd)