You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
390 B
9 lines
390 B
import asyncio
|
|
import sys
|
|
|
|
# Use the selector event loop on windows. Do this in tornado/test/__init__.py
|
|
# instead of runtests.py so it happens no matter how the test is run (such as
|
|
# through editor integrations).
|
|
if sys.platform == "win32" and hasattr(asyncio, "WindowsSelectorEventLoopPolicy"):
|
|
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # type: ignore
|