15
0
Files
python-checkdmarc/skip-network-tests.patch
Matej Cepl 1c2acad959 - Update to version 5.8.2
* Add SSL.com root VMC CA certificates to `MVCCAs.pem`
  * Replace deprecated `importlib.resources.path` call
    with `importlib.resources.file`
    * Use `importlib-resources` to support older versions of Python
- Update BuildRequires from pyproject.toml
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-checkdmarc?expand=0&rev=13
2025-05-19 07:49:39 +00:00

13 lines
483 B
Diff

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"""