Skip to content

Commit 6ce2810

Browse files
[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 5c48eb0) Co-authored-by: Steve Dower <[email protected]>
1 parent 6e67fd5 commit 6ce2810

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_launcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,9 @@ def test_shebang_command_in_venv(self):
766766
self.assertEqual(data["stdout"].strip(), f"{quote(exe)} arg1 {quote(script)}")
767767

768768
def test_shebang_executable_extension(self):
769-
with self.script('#! /usr/bin/env python3.12') as script:
770-
data = self.run_py([script])
771-
expect = "# Search PATH for python3.12.exe"
769+
with self.script('#! /usr/bin/env python3.99') as script:
770+
data = self.run_py([script], expect_returncode=103)
771+
expect = "# Search PATH for python3.99.exe"
772772
actual = [line.strip() for line in data["stderr"].splitlines()
773773
if line.startswith("# Search PATH")]
774774
self.assertEqual([expect], actual)

0 commit comments

Comments
 (0)