MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_py_shebang_nl

Method test_py_shebang_nl

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

Source from the content-addressed store, hash-verified

592 data["stdout"].strip())
593
594 def test_py_shebang_nl(self):
595 with self.py_ini(TEST_PY_DEFAULTS):
596 with self.script("#! /usr/bin/python -prearg\n") as script:
597 data = self.run_py([script, "-postarg"])
598 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
599 self.assertEqual("3.100", data["SearchInfo.tag"])
600 self.assertEqual(f"X.Y.exe -prearg {quote(script)} -postarg",
601 data["stdout"].strip())
602
603 def test_py2_shebang_nl(self):
604 with self.py_ini(TEST_PY_DEFAULTS):

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected