-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
PYTHON-4565 caused the Eventlet tests to start failing with:
[2024/07/25 07:50:27.496] FAILURE: RuntimeError: Runner.run() cannot be called from a running event loop () [2024/07/25 07:50:27.496] /opt/python/3.12/lib/python3.12/unittest/async_case.py:95: in _callTearDown [2024/07/25 07:50:27.496] self._callAsync(self.asyncTearDown) [2024/07/25 07:50:27.496] /opt/python/3.12/lib/python3.12/unittest/async_case.py:104: in _callAsync [2024/07/25 07:50:27.496] return self._asyncioRunner.run( [2024/07/25 07:50:27.496] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/07/25 07:50:27.496] self = <asyncio.runners.Runner object at 0x7f92be716b10> [2024/07/25 07:50:27.496] coro = <coroutine object IsolatedAsyncioTestCase.asyncTearDown at 0x7f92bce36d40> [2024/07/25 07:50:27.496] def run(self, coro, *, context=None): [2024/07/25 07:50:27.496] """Run a coroutine inside the embedded event loop.""" [2024/07/25 07:50:27.496] if not coroutines.iscoroutine(coro): [2024/07/25 07:50:27.496] raise ValueError("a coroutine was expected, got {!r}".format(coro)) [2024/07/25 07:50:27.496] [2024/07/25 07:50:27.496] if events._get_running_loop() is not None: [2024/07/25 07:50:27.496] # fail fast with short traceback [2024/07/25 07:50:27.496] > raise RuntimeError( [2024/07/25 07:50:27.496] "Runner.run() cannot be called from a running event loop") [2024/07/25 07:50:27.496] E RuntimeError: Runner.run() cannot be called from a running event loop [2024/07/25 07:50:27.496] /opt/python/3.12/lib/python3.12/asyncio/runners.py:93: RuntimeError
We should skip the async tests when testing eventlet and gevent.
- is caused by
-
PYTHON-4565 Use pytest markers for test suite configuration
- Closed