Latest pytest, pytest-asyncio and flaky just can't live happily together. When a flaky test fails, an error RuntimeError: Event loop is closed is reported instead of failure. Edit: In fact, first test failure breaks the harness and "flak...
Avoid errors in cleanup of async generators when event loop is already closed#1040 pytest-asyncio 0.25.2 Callloop.shutdown_asyncgens()before closing the event loop to ensure async generators are closed in the same manner asasyncio.rundoes#1034 pytest-asyncio 0.25.1 Fixes an issue that caused ...
Avoid errors in cleanup of async generators when event loop is already closed#1040 v0.25.2: pytest-asyncio 0.25.2 Compare Source Callloop.shutdown_asyncgens()before closing the event loop to ensure async generators are closed in the same manner asasyncio.rundoes#1034 v0.25.1: pytest-...
When trying to do UI automtion with pytest-asyncio and pytest-playwright, I got exception like: RuntimeError: Cannot run the event loop while another loop is running Code structure: ui2/conftest.py ui2/test_bing.py ui2/conftest.py import...
get_event_loop() is not self.loop: raise RuntimeError( "This connection is being used with a different event loop!") return "Success" @pytest_asyncio.fixture(scope="module", loop_scope="module") async def async_connection(): """Set up a async connection object with module scope."""...
Bumps pytest-asyncio from 0.24.0 to 0.25.2. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 0.25.2 Call loop.shutdown_asyncgens() before closing the event loop to ensure asy...
Bumps pytest-asyncio from 0.24.0 to 0.25.2. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 0.25.2 Call loop.shutdown_asyncgens() before closing the event loop to ensure asy...
Bumps pytest-asyncio from 0.25.0 to 0.25.2. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 0.25.2 Call loop.shutdown_asyncgens() before closing the event loop to ensure asy...
"" policy = asyncio.get_event_loop_policy() loop = policy.new_event_loop() yield loop loop.close() And every single AsyncGenerator fixtures we have actually require event_loop to make sure the teardown is done before the loop is closed. Sharing this use-case hoping to help further ...
Bumps pytest-asyncio from 0.23.8 to 0.25.2. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 0.25.2 Call loop.shutdown_asyncgens() before closing the event loop to ensure asy...