Skip to content

Commit 0da1c2e

Browse files
committed
explanation
1 parent 9aad099 commit 0da1c2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integrations/django/asgi/test_asgi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ async def test_basic(sentry_init, capture_events, application):
3939
events = capture_events()
4040

4141
if sys.version_info <= (3, 8):
42-
with pytest.warns(DeprecationWarning):
42+
# We emit a UserWarning for channels 2.x and 3.x on Python 3.8 and older
43+
# because the async support was not really good back then and there is a known issue.
44+
# See the TreadingIntegration for details.
45+
with pytest.warns(UserWarning):
4346
comm = HttpCommunicator(application, "GET", "/view-exc?test=query")
4447
response = await comm.get_response()
4548
await comm.wait()

0 commit comments

Comments
 (0)