[Python-checkins] gh-93005: Fix py.exe launcher test to search for intended tag (GH-93190)

zooba webhook-mailer at python.org
Wed May 25 17:59:38 EDT 2022


https://github.com/python/cpython/commit/ca58e4a2c596d1b4cdcae9ec92844d3d3272c4ce
commit: ca58e4a2c596d1b4cdcae9ec92844d3d3272c4ce
branch: main
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2022-05-25T22:59:33+01:00
summary:

gh-93005: Fix py.exe launcher test to search for intended tag (GH-93190)

files:
M Lib/test/test_launcher.py

diff --git a/Lib/test/test_launcher.py b/Lib/test/test_launcher.py
index 8d9de688f0a53..e9f6fcb7d7f24 100644
--- a/Lib/test/test_launcher.py
+++ b/Lib/test/test_launcher.py
@@ -484,7 +484,7 @@ def test_virtualenv_in_list(self):
     def test_virtualenv_with_env(self):
         with self.fake_venv() as (venv_exe, env):
             data1 = self.run_py([], env={**env, "PY_PYTHON": "PythonTestSuite/3"})
-            data2 = self.run_py(["-3"], env={**env, "PY_PYTHON": "PythonTestSuite/3"})
+            data2 = self.run_py(["-V:PythonTestSuite/3"], env={**env, "PY_PYTHON": "PythonTestSuite/3"})
         # Compare stdout, because stderr goes via ascii
         self.assertEqual(data1["stdout"].strip(), str(venv_exe))
         self.assertEqual(data1["SearchInfo.lowPriorityTag"], "True")



More information about the Python-checkins mailing list