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.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/zmq/tests/conftest.py

15 lines
366 B

"""pytest configuration and fixtures"""
import sys
import pytest
@pytest.fixture(scope='session', autouse=True)
def win_py38_asyncio():
"""fix tornado compatibility on py38"""
if sys.version_info < (3, 8) or not sys.platform.startswith('win'):
return
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())