mirror of
https://github.com/python/cpython.git
synced 2024-11-21 12:59:38 +01:00
This commit is contained in:
parent
a8f1152b70
commit
5c48eb0cc6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user