#32614 closed Bug (fixed)
MiddlewareSyncAsyncTests crashes with asgiref 3.3.2.
| Reported by: | Chris Jerdonek | Owned by: | Mariusz Felisiak |
|---|---|---|---|
| Component: | Testing framework | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Andrew Godwin, Carlton Gibson | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I see the following test failing on a recent PR: middleware_exceptions.tests.MiddlewareSyncAsyncTests.test_async_process_template_response_returns_none_with_sync_client
https://djangoci.com/job/pr-mariadb/database=mysql,label=mariadb,python=python3.9/10979/
It looks like it might be because of the 3.3.2 asgiref release, since that was released today:
https://github.com/django/asgiref/
and the failure is unrelated to what the PR changed.
I also see the same failure on a different recent PR:
https://djangoci.com/job/pull-requests-bionic/database=mysql,label=bionic-pr,python=python3.8/11081/
Change History (11)
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
| Summary: | MiddlewareSyncAsyncTests test failure due to 3.3.2 asgiref release? → MiddlewareSyncAsyncTests crashes with asgiref 3.3.2. |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Bug |
comment:4 by , 5 years ago
| Cc: | added |
|---|
comment:5 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
follow-up: 11 comment:9 by , 5 years ago
Are the committed changes still needed with the fix that was deployed to asgiref in 3.3.3? If not, would it be cleaner to revert those?
comment:10 by , 5 years ago
I would encourage them to be kept as the middleware should also be marked as an async function, regardless or not of how good asgiref is now at determining if something is async or not.
comment:11 by , 5 years ago
Replying to Chris Jerdonek:
Are the committed changes still needed with the fix that was deployed to asgiref in 3.3.3? If not, would it be cleaner to revert those?
Yes, this is a separate issue. Django on the main branch doesn't support Python < 3.8, so the fix in asgiref doesn't affect it.
I flagged it in asgiref's tracker: https://github.com/django/asgiref/issues/250