Thanks to visit codestin.com Credit goes to github.com
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 a8f1152 commit 5c48eb0Copy full SHA for 5c48eb0
1 file changed
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