Test Manager without fork - does it work at all?
()
| 12 | |
| 13 | |
| 14 | def 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 | |
| 30 | def test_manager_with_process(): |
no test coverage detected