summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_venv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index 50a8e93..4cbf188 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -29,7 +29,7 @@ class BaseTest(unittest.TestCase):
self.ps3name = 'pysetup3'
self.lib = ('lib', 'python%s' % sys.version[:3])
self.include = 'include'
- if sys.platform == 'darwin' and '__PYTHONV_LAUNCHER__' in env:
+ if sys.platform == 'darwin' and '__PYTHONV_LAUNCHER__' in os.environ:
executable = os.environ['__PYTHONV_LAUNCHER__']
else:
executable = sys.executable