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

Method test_py_shebang_nl

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

Source from the content-addressed store, hash-verified

599 data["stdout"].strip())
600
601 def test_py_shebang_nl(self):
602 with self.py_ini(TEST_PY_DEFAULTS):
603 with self.script("#! /usr/bin/python -prearg\n") as script:
604 data = self.run_py([script, "-postarg"])
605 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
606 self.assertEqual("3.100", data["SearchInfo.tag"])
607 self.assertEqual(f"X.Y.exe -prearg {quote(script)} -postarg",
608 data["stdout"].strip())
609
610 def test_py2_shebang_nl(self):
611 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