Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Python 3.12 deprecation notice #2959

Merged
merged 6 commits into from
Jun 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Python 3.8/3.9 tests in ASGI module
  • Loading branch information
ahopkins committed Jun 22, 2024
commit ce994827022b5e1425dab8c36f8dbc1083178acd
4 changes: 4 additions & 0 deletions tests/test_asgi.py
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
import asyncio
import logging

from collections import deque, namedtuple
Expand Down Expand Up @@ -55,6 56,9 @@ def transport(message_stack, receive, send):

@pytest.fixture
def protocol(transport):
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
transport.loop = loop
return transport.get_protocol()


Expand Down
Loading