Return parent `pid: int` from new `reap_subactors_per_test` fixture

(cherry picked from commit f8178df0fd)
wkt/tooling_enhancements_from_mtf_spawner
Gud Boi 2026-04-27 23:27:19 -04:00
parent 2d9a95d13a
commit 28ad06be8c
1 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ def _reap_orphaned_subactors():
@pytest.fixture @pytest.fixture
def reap_subactors_per_test(): def reap_subactors_per_test() -> int:
''' '''
Per-test (function-scoped) zombie-subactor reaper Per-test (function-scoped) zombie-subactor reaper
**opt-in**, NOT autouse. **opt-in**, NOT autouse.
@ -381,7 +381,7 @@ def reap_subactors_per_test():
''' '''
import os import os
parent_pid: int = os.getpid() parent_pid: int = os.getpid()
yield yield parent_pid
from tractor._testing._reap import ( from tractor._testing._reap import (
find_descendants, find_descendants,
reap, reap,