diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..d280de0 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +asyncio_mode = auto \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index 1b247ab..1592ea2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,9 +1,9 @@ flake8>=3.6.0 psutil>=5.4.8 -pytest>=5.4.1 -pytest-asyncio>=0.11.0 +pytest>=6.2.5 +pytest-asyncio>=0.17.2 trio>=0.16.0 -pytest-trio>=0.6.0 +pytest-trio>=0.7.0 coverage>=5.2.1 pytest-cov>=3.0.0 coveralls>=3.3.0 diff --git a/tests/test_transport_asyncio.py b/tests/test_transport_asyncio.py index 9251017..6f0de5f 100644 --- a/tests/test_transport_asyncio.py +++ b/tests/test_transport_asyncio.py @@ -168,7 +168,7 @@ async def test_http_proxy(url): @pytest.mark.parametrize('url', (TEST_URL_IPV4, TEST_URL_IPV4_HTTPS)) @pytest.mark.parametrize('http2', (False, True)) -@pytest.mark.trio +@pytest.mark.asyncio async def test_secure_proxy(url, http2): proxy_ssl = ssl.SSLContext(ssl.PROTOCOL_TLS) proxy_ssl.verify_mode = ssl.CERT_REQUIRED