diff --git a/tests.py b/tests.py index fd22132..b684ecb 100755 --- a/tests.py +++ b/tests.py @@ -291,6 +291,7 @@ class Test(unittest.TestCase): "{0} does not have any MX records".format(domain), results["warnings"] ) + @unittest.skipUnless(os.path.exists("/etc/resolv.conf"), "no network") def testSPFMissingARecord(self): """A warning is issued if an SPF record contains a mx mechanism pointing to a domain that has no A records"""