Skip to content

Commit

Permalink
Fix asyncio tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romis2012 committed Feb 5, 2022
1 parent 19bc427 commit 5ba3d13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
asyncio_mode = auto
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_transport_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ba3d13

Please sign in to comment.