#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_disconnectasgi.tests.ASGITest.test_file_responseasgi.tests.ASGITest.test_get_asgi_applicationasgi.tests.ASGITest.test_get_query_stringasgi.tests.ASGITest.test_headersasgi.tests.ASGITest.test_non_unicode_query_stringasgi.tests.ASGITest.test_wrong_connection_typeasync.tests.AsyncUnsafeTest.test_async_unsafeasync.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 , 6 years ago
| Attachment: | stacktrace.txt added |
|---|
comment:1 by , 6 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 6 years ago
comment:3 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:4 by , 6 years ago
This'll need a fix in asgiref. Tracking at https://github.com/django/asgiref/issues/132
comment:5 by , 6 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
ProactorEventLoopon Windows by default.See https://bugs.python.org/issue34687