|
2 | 2 | Test harness for the venv module. |
3 | 3 |
|
4 | 4 | Copyright (C) 2011-2012 Vinay Sajip. |
| 5 | +Licensed to the PSF under a contributor agreement. |
5 | 6 | """ |
6 | 7 |
|
7 | 8 | import os |
@@ -29,8 +30,8 @@ def setUp(self): |
29 | 30 | self.pydocname = 'pydoc' |
30 | 31 | self.lib = ('lib', 'python%s' % sys.version[:3]) |
31 | 32 | self.include = 'include' |
32 | | - if sys.platform == 'darwin' and '__PYTHONV_LAUNCHER__' in os.environ: |
33 | | - executable = os.environ['__PYTHONV_LAUNCHER__'] |
| 33 | + if sys.platform == 'darwin' and '__PYVENV_LAUNCHER__' in os.environ: |
| 34 | + executable = os.environ['__PYVENV_LAUNCHER__'] |
34 | 35 | else: |
35 | 36 | executable = sys.executable |
36 | 37 | self.exe = os.path.split(executable)[-1] |
@@ -69,9 +70,9 @@ def test_defaults(self): |
69 | 70 | self.isdir(self.include) |
70 | 71 | self.isdir(*self.lib) |
71 | 72 | data = self.get_text_file_contents('pyvenv.cfg') |
72 | | - if sys.platform == 'darwin' and ('__PYTHONV_LAUNCHER__' |
| 73 | + if sys.platform == 'darwin' and ('__PYVENV_LAUNCHER__' |
73 | 74 | in os.environ): |
74 | | - executable = os.environ['__PYTHONV_LAUNCHER__'] |
| 75 | + executable = os.environ['__PYVENV_LAUNCHER__'] |
75 | 76 | else: |
76 | 77 | executable = sys.executable |
77 | 78 | path = os.path.dirname(executable) |
@@ -127,7 +128,7 @@ def test_symlinking(self): |
127 | 128 | for usl in (False, True): |
128 | 129 | builder = venv.EnvBuilder(clear=True, symlinks=usl) |
129 | 130 | if (usl and sys.platform == 'darwin' and |
130 | | - '__PYTHONV_LAUNCHER__' in os.environ): |
| 131 | + '__PYVENV_LAUNCHER__' in os.environ): |
131 | 132 | self.assertRaises(ValueError, builder.create, self.env_dir) |
132 | 133 | else: |
133 | 134 | builder.create(self.env_dir) |
|
0 commit comments