From 5d0d0404c7d1072f82394d73099cd3dd1e791336 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 27 Mar 2025 09:51:05 -0400 Subject: [PATCH] Remove ProtocolTypeRouter deprecation exception * Time has passed. Channels (4.2.0) no longer raises a deprecation warning for this case. It used to (4.1.0). * All is good. No code changes needed for this. We do NOT service http requests over daphne, just websockets. We, correctly, do NOT supply the http key so daphne does NOT service http requests. --- pytest.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/pytest.ini b/pytest.ini index 55d0e5bc96..7c63bd728e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -79,9 +79,6 @@ filterwarnings = # FIXME: in `awx/main/analytics/collectors.py` and then delete the entry. once:distro.linux_distribution.. is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution... Please use distro.id.., distro.version.. and distro.name.. instead.:DeprecationWarning:awx.main.analytics.collectors - # FIXME: Figure this out, fix and then delete the entry. - once:\nUsing ProtocolTypeRouter without an explicit "http" key is deprecated.\nGiven that you have not passed the "http" you likely should use Django's\nget_asgi_application...:DeprecationWarning:awx.main.routing - # FIXME: Figure this out, fix and then delete the entry. once:Channel's inbuilt http protocol AsgiHandler is deprecated. Use Django's get_asgi_application.. instead.:DeprecationWarning:channels.routing