MCPcopy Index your code
hub / github.com/python/cpython / test_py3_shebang_nl

Method test_py3_shebang_nl

Lib/test/test_launcher.py:619–626  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

617 data["stdout"].strip())
618
619 def test_py3_shebang_nl(self):
620 with self.py_ini(TEST_PY_DEFAULTS):
621 with self.script("#! /usr/bin/python3 -prearg\n") as script:
622 data = self.run_py([script, "-postarg"])
623 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
624 self.assertEqual("3.100-arm64", data["SearchInfo.tag"])
625 self.assertEqual(f"X.Y-arm64.exe -X fake_arg_for_test -prearg {quote(script)} -postarg",
626 data["stdout"].strip())
627
628 def test_py_shebang_short_argv0(self):
629 with self.py_ini(TEST_PY_DEFAULTS):

Callers

nothing calls this directly

Calls 6

py_iniMethod · 0.80
run_pyMethod · 0.80
quoteFunction · 0.70
scriptMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected