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

Method exit_handler

Lib/test/_test_multiprocessing.py:6397–6399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6395 def _write_file_at_exit(self, output_path):
6396 import atexit
6397 def exit_handler():
6398 with open(output_path, 'w') as f:
6399 f.write("deadbeef")
6400 atexit.register(exit_handler)
6401
6402 def test_atexit(self):

Callers

nothing calls this directly

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected