Skip to content

Commit

Permalink
🐛 check http3 support in test_automated_ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Oct 21, 2024
1 parent 3fad87a commit 30dc52b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/with_traefik/asynchronous/test_protolevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ async def test_discrete_watcher_http(
],
)
async def test_automated_ping(self, disabled_svn: set[HttpVersion]) -> None:
if HttpVersion.h3 not in disabled_svn and _HAS_HTTP3_SUPPORT() is False:
pytest.skip("Test requires http3")

async with AsyncHTTPSConnectionPool(
self.host,
self.https_port,
Expand Down
3 changes: 3 additions & 0 deletions test/with_traefik/test_protolevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ def test_discrete_watcher_http(
],
)
def test_automated_ping(self, disabled_svn: set[HttpVersion]) -> None:
if HttpVersion.h3 not in disabled_svn and _HAS_HTTP3_SUPPORT() is False:
pytest.skip("Test requires http3")

with HTTPSConnectionPool(
self.host,
self.https_port,
Expand Down

0 comments on commit 30dc52b

Please sign in to comment.