mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[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 5c48eb0cc6
)
This commit is contained in:
parent
e3e7607167
commit
b5c3394fce
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue