Skip to content

Commit b5c3394

Browse files
[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 5c48eb0)
1 parent e3e7607 commit b5c3394

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
@@ -719,9 +719,9 @@ def test_literal_shebang_invalid_template(self):
719719
)
720720

721721
def test_shebang_executable_extension(self):
722-
with self.script('#! /usr/bin/env python3.12') as script:
723-
data = self.run_py([script])
724-
expect = "# Search PATH for python3.12.exe"
722+
with self.script('#! /usr/bin/env python3.99') as script:
723+
data = self.run_py([script], expect_returncode=103)
724+
expect = "# Search PATH for python3.99.exe"
725725
actual = [line.strip() for line in data["stderr"].splitlines()
726726
if line.startswith("# Search PATH")]
727727
self.assertEqual([expect], actual)

0 commit comments

Comments
 (0)