diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-04 11:27:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 11:27:58 (GMT) |
commit | b5c3394fcea1ef3ebb1b3304d5a1729175b55b77 (patch) | |
tree | 86acf2e0ed9c910dba097336f7466e4e62620d3a /Lib/test | |
parent | e3e7607167a9de2790a07a1a5f76a825f551bc9a (diff) | |
download | cpython-b5c3394fcea1ef3ebb1b3304d5a1729175b55b77.zip cpython-b5c3394fcea1ef3ebb1b3304d5a1729175b55b77.tar.gz cpython-b5c3394fcea1ef3ebb1b3304d5a1729175b55b77.tar.bz2 |
[3.12] gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846) (GH-120016)
gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846)
(cherry picked from commit 5c48eb0cc6c3e84aafda0a734a05ecec14fc0ccf)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_launcher.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_launcher.py b/Lib/test/test_launcher.py index b701ceb..a609277 100644 --- a/Lib/test/test_launcher.py +++ b/Lib/test/test_launcher.py @@ -719,9 +719,9 @@ class TestLauncher(unittest.TestCase, RunPyMixin): ) 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) |