You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I change SafeChildWatcher installer in test_utils.py:setup_test_loop to following code, the test will work
if sys.platform != "win32" and not skip_watcher:
policy = asyncio.get_event_loop_policy()
if not policy.get_child_watcher():
watcher = asyncio.SafeChildWatcher()
watcher.attach_loop(loop)
with contextlib.suppress(NotImplementedError):
policy.set_child_watcher(watcher)
return loop
The text was updated successfully, but these errors were encountered:
tardyp
changed the title
SafeChildWatcher is not reinstalled properly after the second test
SafeChildWatcher is not reinstalled properly after the second test is loop fixture is not used
Aug 17, 2018
Long story short
When moving to aiohttp 3.3+, my tests suddently hang at await process.wait()
but only after one test has run previously
Expected behaviour
process.wait() returns when the process finishes
Actual behaviour
process.wait() never returns
Steps to reproduce
run the following test suite:
The second test will fail.
Your environment
macos python3.7 from brew.
Rootcause start
if I change SafeChildWatcher installer in test_utils.py:setup_test_loop to following code, the test will work
The text was updated successfully, but these errors were encountered: