MCPcopy Index your code
hub / github.com/python/cpython / main

Function main

Lib/test/libregrtest/worker.py:123–137  ·  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 # get_temp_dir() can be different in the worker and the parent process.
131 # For example, if --tempdir option is used.
132 os.makedirs(tmp_dir, exist_ok=True)
133 work_dir = get_work_dir(tmp_dir, worker=True)
134
135 with exit_timeout():
136 with os_helper.temp_cwd(work_dir, quiet=True):
137 worker_process(worker_json)
138
139
140if __name__ == "__main__":

Callers 1

worker.pyFile · 0.70

Calls 5

get_work_dirFunction · 0.85
exit_timeoutFunction · 0.85
worker_processFunction · 0.85
get_temp_dirFunction · 0.70
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…