We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6aaf7 commit 49fa664Copy full SHA for 49fa664
Lib/test/test_venv.py
@@ -152,12 +152,15 @@ def test_upgrade_dependencies(self):
152
bin_path = 'Scripts' if sys.platform == 'win32' else 'bin'
153
python_exe = os.path.split(sys.executable)[1]
154
with tempfile.TemporaryDirectory() as fake_env_dir:
155
+ expect_exe = os.path.join(fake_env_dir, bin_path, python_exe)
156
+ if sys.platform == 'win32':
157
+ expect_exe = os.path.realpath(expect_exe)
158
159
def pip_cmd_checker(cmd):
160
self.assertEqual(
161
cmd,
162
[
- os.path.join(fake_env_dir, bin_path, python_exe),
163
+ expect_exe,
164
'-m',
165
'pip',
166
'install',
0 commit comments