Skip `test_loglevel_propagated_to_subactor` on subint forkserver too

subint_forkserver_backend
Gud Boi 2026-04-24 21:47:46 -04:00
parent b350aa09ee
commit 2ca0f41e61
1 changed files with 7 additions and 2 deletions

View File

@ -194,9 +194,14 @@ def test_loglevel_propagated_to_subactor(
reg_addr: tuple, reg_addr: tuple,
level: str, level: str,
): ):
if start_method == 'mp_forkserver': if start_method in ('mp_forkserver', 'subint_forkserver'):
pytest.skip( pytest.skip(
"a bug with `capfd` seems to make forkserver capture not work? " "a bug with `capfd` seems to make forkserver capture not work? "
"(same class as the `mp_forkserver` pre-existing skip — fork-"
"based backends inherit pytest's capfd temp-file fds into the "
"subactor and the IPC handshake reads garbage (`unclean EOF "
"read only X/HUGE_NUMBER bytes`). Work around by using "
"`capsys` instead or skip entirely."
) )
async def main(): async def main():