From: Scott Kitterman Date: Sat, 8 Jul 2023 20:02:31 +0000 (-0400) Subject: Clarify skip test message in test_doq.py (#952) X-Git-Tag: v2.4.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb6c94c272dcd855bccce322618e16cbcf2f73bd;p=thirdparty%2Fdnspython.git 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) --- 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: