MCPcopy Create free account
hub / github.com/python/cpython / WorkerRunTests

Class WorkerRunTests

Lib/test/libregrtest/runtests.py:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201@dataclasses.dataclass(slots=True, frozen=True)
202class WorkerRunTests(RunTests):
203 json_file: JsonFile
204
205 def as_json(self) -> StrJSON:
206 return json.dumps(self, cls=_EncodeRunTests)
207
208 @staticmethod
209 def from_json(worker_json: StrJSON) -> 'WorkerRunTests':
210 return json.loads(worker_json, object_hook=_decode_runtests)
211
212
213class _EncodeRunTests(json.JSONEncoder):

Callers 2

_decode_runtestsFunction · 0.85

Calls

no outgoing calls

Tested by 2

_decode_runtestsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…