We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9965ef commit 012d30fCopy full SHA for 012d30f
Lib/test/test_launcher.py
@@ -766,9 +766,9 @@ def test_shebang_command_in_venv(self):
766
self.assertEqual(data["stdout"].strip(), f"{quote(exe)} arg1 {quote(script)}")
767
768
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"
+ 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"
772
actual = [line.strip() for line in data["stderr"].splitlines()
773
if line.startswith("# Search PATH")]
774
self.assertEqual([expect], actual)
0 commit comments