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

Method test_py3_shebang_nl

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

Source from the content-addressed store, hash-verified

610 data["stdout"].strip())
611
612 def test_py3_shebang_nl(self):
613 with self.py_ini(TEST_PY_DEFAULTS):
614 with self.script("#! /usr/bin/python3 -prearg\n") as script:
615 data = self.run_py([script, "-postarg"])
616 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
617 self.assertEqual("3.100-arm64", data["SearchInfo.tag"])
618 self.assertEqual(f"X.Y-arm64.exe -X fake_arg_for_test -prearg {quote(script)} -postarg",
619 data["stdout"].strip())
620
621 def test_py_shebang_short_argv0(self):
622 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