MCPcopy Index your code
hub / github.com/RustPython/RustPython / main

Function main

Lib/test/libregrtest/worker.py:123–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122
123def main() -> NoReturn:
124 if len(sys.argv) != 2:
125 print("usage: python -m test.libregrtest.worker JSON")
126 sys.exit(1)
127 worker_json = sys.argv[1]
128
129 tmp_dir = get_temp_dir()
130 work_dir = get_work_dir(tmp_dir, worker=True)
131
132 with exit_timeout():
133 with os_helper.temp_cwd(work_dir, quiet=True):
134 worker_process(worker_json)
135
136
137if __name__ == "__main__":

Callers 1

worker.pyFile · 0.70

Calls 7

lenFunction · 0.85
get_work_dirFunction · 0.85
exit_timeoutFunction · 0.85
worker_processFunction · 0.85
get_temp_dirFunction · 0.70
printFunction · 0.50
exitMethod · 0.45

Tested by

no test coverage detected