Skip to content

Commit

Permalink
[tests] don't force event loop policy on windows (fixes: aiortc#289)
Browse files Browse the repository at this point in the history
This code was present to work around a bug in Python 3.8 which has since
been fixed.
  • Loading branch information
jlaine committed May 9, 2022
1 parent 96ce66b commit 7c411b6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import functools
import logging
import os
import sys

from cryptography import x509
from cryptography.hazmat.primitives import hashes
Expand Down Expand Up @@ -90,15 +89,3 @@ def load(name: str) -> bytes:

if os.environ.get("AIOQUIC_DEBUG"):
logging.basicConfig(level=logging.DEBUG)

if (
sys.platform == "win32"
and sys.version_info.major == 3
and sys.version_info.minor == 8
):
# Python 3.8 uses ProactorEventLoop by default,
# which breaks UDP / IPv6 support, see:
#
# https://bugs.python.org/issue39148

asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

0 comments on commit 7c411b6

Please sign in to comment.