17
0
Files
python-checkdmarc/skip-network-tests.patch

13 lines
433 B
Diff
Raw Permalink Normal View History

diff --git a/tests.py b/tests.py
index 9cfda48..cdaf4fe 100755
--- a/tests.py
+++ b/tests.py
@@ -296,6 +296,7 @@ class Test(unittest.TestCase):
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"""