summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-04 11:24:10 (GMT)
committerGitHub <noreply@github.com>2024-06-04 11:24:10 (GMT)
commit6ce2810f36829ae89278219ec89f3cc798f19ae6 (patch)
tree77d9e2e55f4314919c4f6174952cf231c0048103
parent6e67fd5beaa26cd80d43a258c14f6044803d33fa (diff)
downloadcpython-6ce2810f36829ae89278219ec89f3cc798f19ae6.zip
cpython-6ce2810f36829ae89278219ec89f3cc798f19ae6.tar.gz
cpython-6ce2810f36829ae89278219ec89f3cc798f19ae6.tar.bz2
[3.13] gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846) (#GH-120015)
gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846) (cherry picked from commit 5c48eb0cc6c3e84aafda0a734a05ecec14fc0ccf) Co-authored-by: Steve Dower <steve.dower@python.org>
-rw-r--r--Lib/test/test_launcher.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_launcher.py b/Lib/test/test_launcher.py
index 6d358ac..58baae2 100644
--- a/Lib/test/test_launcher.py
+++ b/Lib/test/test_launcher.py
@@ -766,9 +766,9 @@ class TestLauncher(unittest.TestCase, RunPyMixin):
self.assertEqual(data["stdout"].strip(), f"{quote(exe)} arg1 {quote(script)}")
def test_shebang_executable_extension(self):
- with self.script('#! /usr/bin/env python3.12') as script:
- data = self.run_py([script])
- expect = "# Search PATH for python3.12.exe"
+ with self.script('#! /usr/bin/env python3.99') as script:
+ data = self.run_py([script], expect_returncode=103)
+ expect = "# Search PATH for python3.99.exe"
actual = [line.strip() for line in data["stderr"].splitlines()
if line.startswith("# Search PATH")]
self.assertEqual([expect], actual)