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

Function test_basic_manager

extra_tests/test_manager_fork_debug.py:14–27  ·  view source on GitHub ↗

Test Manager without fork - does it work at all?

()

Source from the content-addressed store, hash-verified

12
13
14def test_basic_manager():
15 """Test Manager without fork - does it work at all?"""
16 print("=== Test 1: Basic Manager (no fork) ===")
17 ctx = multiprocessing.get_context("fork")
18 manager = ctx.Manager()
19 try:
20 ev = manager.Event()
21 print(f" Event created: {ev}")
22 ev.set()
23 print(f" Event set, is_set={ev.is_set()}")
24 assert ev.is_set()
25 print(" PASS")
26 finally:
27 manager.shutdown()
28
29
30def test_manager_with_process():

Callers 1

Calls 7

setMethod · 0.95
is_setMethod · 0.95
ManagerMethod · 0.80
EventMethod · 0.80
printFunction · 0.50
get_contextMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected