Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
open
Function · 0.50
write
Method · 0.45
Tested by
no test coverage detected