From b158f83aa3795f387c8475ceb48df197a94a37e8 Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 13 Jan 2020 12:37:19 +0100 Subject: [PATCH] testIPAddr_CompareDNS: add missing network constraint (gh-2596) --- fail2ban/tests/filtertestcase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fail2ban/tests/filtertestcase.py b/fail2ban/tests/filtertestcase.py index d6ad82358..6ca8162bd 100644 --- a/fail2ban/tests/filtertestcase.py +++ b/fail2ban/tests/filtertestcase.py @@ -2064,6 +2064,7 @@ def testIPAddr_CIDR_Repr(self): ) def testIPAddr_CompareDNS(self): + unittest.F2B.SkipIfNoNetwork() ips = IPAddr('example.com') self.assertTrue(IPAddr("93.184.216.34").isInNet(ips)) self.assertTrue(IPAddr("2606:2800:220:1:248:1893:25c8:1946").isInNet(ips))