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

Method _getpytestargs

src/_pytest/pytester.py:1480–1481  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1478 print(f"couldn't print to {fp} because of encoding")
1479
1480 def _getpytestargs(self) -> tuple[str, ...]:
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."""

Callers 3

runpytest_subprocessMethod · 0.95
spawn_pytestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected