Kill all running test subprocesses (called on halt).
()
| 340 | ) |
| 341 | |
| 342 | def _kill_active_procs() -> None: |
| 343 | """Kill all running test subprocesses (called on halt).""" |
| 344 | with active_procs_lock: |
| 345 | for p in list(active_procs): |
| 346 | try: |
| 347 | p.kill() |
| 348 | except KeyboardInterrupt as ki: |
| 349 | handle_keyboard_interrupt(ki) |
| 350 | except Exception: |
| 351 | pass |
| 352 | |
| 353 | setattr(test_callback, "kill_all", _kill_active_procs) |
| 354 |
nothing calls this directly
no test coverage detected