Do not run smtp tests if no_network set

pull/1018/head
Orion Poplawski 2015-04-07 15:52:29 -06:00
parent c926af1fce
commit aa8113c128
1 changed files with 1 additions and 1 deletions

View File

@ -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(