From aa8113c128e0343c6019bf130dd6920735a97997 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 7 Apr 2015 15:52:29 -0600 Subject: [PATCH] Do not run smtp tests if no_network set --- fail2ban/tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/tests/utils.py b/fail2ban/tests/utils.py index dbe5cee3..ec3be64c 100644 --- a/fail2ban/tests/utils.py +++ b/fail2ban/tests/utils.py @@ -153,7 +153,7 @@ def gatherTests(regexps=None, no_network=False): for file_ in os.listdir( os.path.abspath(os.path.dirname(action_d.__file__))): if file_.startswith("test_") and file_.endswith(".py"): - if no_network and file_ in ['test_badips.py']: #pragma: no cover + if no_network and file_ in ['test_badips.py','test_smtp.py']: #pragma: no cover # Test required network continue tests.addTest(testloader.loadTestsFromName(