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

Method test_py3_shebang

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

Source from the content-addressed store, hash-verified

583 data["stdout"].strip())
584
585 def test_py3_shebang(self):
586 with self.py_ini(TEST_PY_DEFAULTS):
587 with self.script("#! /usr/bin/python3 -prearg") as script:
588 data = self.run_py([script, "-postarg"])
589 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
590 self.assertEqual("3.100-arm64", data["SearchInfo.tag"])
591 self.assertEqual(f"X.Y-arm64.exe -X fake_arg_for_test -prearg {quote(script)} -postarg",
592 data["stdout"].strip())
593
594 def test_py_shebang_nl(self):
595 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