From eb6c94c272dcd855bccce322618e16cbcf2f73bd Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Sat, 8 Jul 2023 16:02:31 -0400 Subject: [PATCH] Clarify skip test message in test_doq.py (#952) While the current message is technically correct, nanoquic isn't actually what's missing, so it would be clearer to point to the fact that aioquic isn't found, since that's the issue someone can actually do something about. (cherry picked from commit 000c37b5dc8c2ab9f2c17eb655d547d70c20b5d2) --- tests/test_doq.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_doq.py b/tests/test_doq.py index 254b578e..7d48bc22 100644 --- a/tests/test_doq.py +++ b/tests/test_doq.py @@ -24,7 +24,7 @@ except ImportError: pass -@pytest.mark.skipif(not _nanoquic_available, reason="requires nanoquic") +@pytest.mark.skipif(not _nanoquic_available, reason="requires aioquic") def test_basic_sync(): with Server() as server: q = dns.message.make_query("www.example.", "A") @@ -38,7 +38,7 @@ async def amain(): assert r.rcode() == dns.rcode.REFUSED -@pytest.mark.skipif(not _nanoquic_available, reason="requires nanoquic") +@pytest.mark.skipif(not _nanoquic_available, reason="requires aioquic") def test_basic_asyncio(): dns.asyncbackend.set_default_backend("asyncio") with Server() as server: @@ -48,7 +48,7 @@ def test_basic_asyncio(): try: import trio - @pytest.mark.skipif(not _nanoquic_available, reason="requires nanoquic") + @pytest.mark.skipif(not _nanoquic_available, reason="requires aioquic") def test_basic_trio(): dns.asyncbackend.set_default_backend("trio") with Server() as server: -- 2.47.3