]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
add skip rule to testResolverNoNameservers
authorBob Halley <halley@dnspython.org>
Tue, 15 Jun 2021 19:43:08 +0000 (12:43 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 15 Jun 2021 19:43:08 +0000 (12:43 -0700)
tests/test_resolver.py

index f264d2e9c4b52cb1e5a93766f09f535245398b83..d15148500517e65ceb6eb09c2082a45eb8bd3a3d 100644 (file)
@@ -1001,6 +1001,8 @@ def testResolverTimeout():
                 assert error[2] == na.udp_address[1]  # port
                 assert isinstance(error[3], dns.exception.Timeout)  # exception
 
+@pytest.mark.skipif(not (_network_available and _nanonameserver_available),
+                    reason="Internet and NanoAuth required")
 def testResolverNoNameservers():
     with FormErrNanoNameserver() as na:
         res = dns.resolver.Resolver(configure=False)