Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895488 - dev-python/starlette-0.25.0 fails tests: "RuntimeError: There is no current event loop in thread 'MainThread'."
Summary: dev-python/starlette-0.25.0 fails tests: "RuntimeError: There is no current e...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-02-20 02:16 UTC by Jonathan Lovelace
Modified: 2023-02-20 06:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:starlette-0.25.0:20230220-015100.log (dev-python:starlette-0.25.0:20230220-015100.log,143.06 KB, text/x-log)
2023-02-20 02:16 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.43 KB, text/plain)
2023-02-20 02:17 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-02-20 02:16:14 UTC
Created attachment 853146 [details]
dev-python:starlette-0.25.0:20230220-015100.log

=dev-python/starlette-0.25.0 (and also 0.24.0 and 0.23.1) fails its test phase for me:

=========================================================== short test summary info ===========================================================
SKIPPED [2] tests/test_requests.py:40: urllib3 includes "br" to the "accept-encoding" headers.
SKIPPED [2] tests/test_websockets.py:53: urllib3 includes "br" to the "accept-encoding" headers.
XFAIL tests/middleware/test_base.py::test_contextvars[asyncio-CustomMiddlewareUsingBaseHTTPMiddleware] - BaseHTTPMiddleware creates a TaskGroup which copies the contextand erases any changes to it made within the TaskGroup
XFAIL tests/middleware/test_base.py::test_contextvars[trio-CustomMiddlewareUsingBaseHTTPMiddleware] - BaseHTTPMiddleware creates a TaskGroup which copies the contextand erases any changes to it made within the TaskGroup
FAILED tests/test_responses.py::test_streaming_response_stops_if_receiving_http_disconnect - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED tests/middleware/test_base.py::test_run_background_tasks_even_if_client_disconnects - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED tests/middleware/test_base.py::test_run_context_manager_exit_even_if_client_disconnects - RuntimeError: There is no current event loop in thread 'MainThread'.
===================================== 3 failed, 657 passed, 4 skipped, 2 xfailed, 2829 warnings in 13.74s =====================================

(I see that this is the same error as I noted in the dev-python/uvicorn test suite in bug #895486.)
Comment 1 Jonathan Lovelace 2023-02-20 02:17:58 UTC
Created attachment 853148 [details]
emerge-info.txt