MCPcopy
hub / github.com/pytest-dev/pytest / runpython

Method runpython

src/_pytest/pytester.py:1483–1485  ·  view source on GitHub ↗

Run a python script using sys.executable as interpreter.

(self, script: os.PathLike[str])

Source from the content-addressed store, hash-verified

1481 return sys.executable, "-mpytest"
1482
1483 def runpython(self, script: os.PathLike[str]) -> RunResult:
1484 """Run a python script using sys.executable as interpreter."""
1485 return self.run(sys.executable, script)
1486
1487 def runpython_c(self, command: str) -> RunResult:
1488 """Run ``python -c "command"``."""

Calls 1

runMethod · 0.95

Tested by

no test coverage detected