MCPcopy Create free account
hub / github.com/pytest-dev/pytest / runpython

Method runpython

src/_pytest/pytester.py:1440–1442  ·  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

1438 return sys.executable, "-mpytest"
1439
1440 def runpython(self, script: "os.PathLike[str]") -> RunResult:
1441 """Run a python script using sys.executable as interpreter."""
1442 return self.run(sys.executable, script)
1443
1444 def runpython_c(self, command: str) -> RunResult:
1445 """Run ``python -c "command"``."""

Calls 1

runMethod · 0.95

Tested by

no test coverage detected