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

Method __init__

doc/en/example/multipython.py:26–30  ·  view source on GitHub ↗
(self, version, picklefile)

Source from the content-addressed store, hash-verified

24
25class Python:
26 def __init__(self, version, picklefile):
27 self.pythonpath = shutil.which(version)
28 if not self.pythonpath:
29 pytest.skip(f"{version!r} not found")
30 self.picklefile = picklefile
31
32 def dumps(self, obj):
33 dumpfile = self.picklefile.with_name("dump.py")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected