Return parent `pid: int` from new `reap_subactors_per_test` fixture
(cherry picked from commit f8178df0fd)
testing_harness_infra
parent
94d233a2f7
commit
dcb00e5a8f
|
|
@ -429,7 +429,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.
|
||||||
|
|
@ -467,7 +467,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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue