diff options
author | Tzu-ping Chung <uranusjr@gmail.com> | 2019-11-27 20:25:23 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-11-27 20:25:23 (GMT) |
commit | d9aa216d49423d58e192cd7a25016f90fe771ce7 (patch) | |
tree | e3dcb2af842f37a946245d2aac3eaf6f11d0130f /Lib/test/test_venv.py | |
parent | 045d4e243d042638bbbc9479d4f85f6f579ac3ca (diff) | |
download | cpython-d9aa216d49423d58e192cd7a25016f90fe771ce7.zip cpython-d9aa216d49423d58e192cd7a25016f90fe771ce7.tar.gz cpython-d9aa216d49423d58e192cd7a25016f90fe771ce7.tar.bz2 |
bpo-38927: Use python -m pip to upgrade venv deps (GH-17403)
I suggest you add `bpo-NNNNN: ` as a prefix for the first commit for future PRs. Thanks!
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | Lib/test/test_venv.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 0103de8..741ac10 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -141,16 +141,18 @@ class BasicTest(BaseTest): def test_upgrade_dependencies(self): builder = venv.EnvBuilder() bin_path = 'Scripts' if sys.platform == 'win32' else 'bin' - pip_exe = 'pip.exe' if sys.platform == 'win32' else 'pip' + python_exe = 'python.exe' if sys.platform == 'win32' else 'python' with tempfile.TemporaryDirectory() as fake_env_dir: def pip_cmd_checker(cmd): self.assertEqual( cmd, [ - os.path.join(fake_env_dir, bin_path, pip_exe), + os.path.join(fake_env_dir, bin_path, python_exe), + '-m', + 'pip', 'install', - '-U', + '--upgrade', 'pip', 'setuptools' ] |