We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e7607 commit b5c3394Copy full SHA for b5c3394
Lib/test/test_launcher.py
@@ -719,9 +719,9 @@ def test_literal_shebang_invalid_template(self):
719
)
720
721
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"
+ 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"
725
actual = [line.strip() for line in data["stderr"].splitlines()
726
if line.startswith("# Search PATH")]
727
self.assertEqual([expect], actual)
0 commit comments