From: Bob Halley Date: Tue, 15 Jun 2021 19:43:08 +0000 (-0700) Subject: add skip rule to testResolverNoNameservers X-Git-Tag: v2.2.0rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37f7df30211cac84b6600e06095ac2b4cd89e7be;p=thirdparty%2Fdnspython.git add skip rule to testResolverNoNameservers --- diff --git a/tests/test_resolver.py b/tests/test_resolver.py index f264d2e9..d1514850 100644 --- a/tests/test_resolver.py +++ b/tests/test_resolver.py @@ -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)