#30900 closed Bug (fixed)
ASGI and async tests are failing on Python 3.8 and Windows.
Reported by: | Mariusz Felisiak | Owned by: | Carlton Gibson |
---|---|---|---|
Component: | HTTP handling | Version: | 3.0 |
Severity: | Release blocker | Keywords: | |
Cc: | Andrew Godwin, Carlton Gibson | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
9 ASGI and async tests are failing on Python 3.8 and Windows:
asgi.tests.ASGITest.test_disconnect
asgi.tests.ASGITest.test_file_response
asgi.tests.ASGITest.test_get_asgi_application
asgi.tests.ASGITest.test_get_query_string
asgi.tests.ASGITest.test_headers
asgi.tests.ASGITest.test_non_unicode_query_string
asgi.tests.ASGITest.test_wrong_connection_type
async.tests.AsyncUnsafeTest.test_async_unsafe
async.tests.DatabaseConnectionTest.test_get_async_connection
File "C:\Jenkins\workspace\django-windows\database\sqlite3\label\windows\python\Python38\.env\lib\site-packages\asgiref\sync.py", line 130, in _run_event_loop File "C:\Python38\lib\asyncio\proactor_events.py", line 679, in close signal.set_wakeup_fd(-1) ValueError: set_wakeup_fd only works in main thread
Attachments (1)
Change History (8)
by , 5 years ago
Attachment: | stacktrace.txt added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 5 years ago
This'll need a fix in asgiref
. Tracking at https://github.com/django/asgiref/issues/132
comment:5 by , 5 years ago
I created a PR on asgiref, that looks OK in testing. This may do until a fix lands in Python (???)
Tracking on CPython: https://bugs.python.org/issue38563
Note:
See TracTickets
for help on using tickets.
I suspect this is caused by the change to use
ProactorEventLoop
on Windows by default.See https://bugs.python.org/issue34687