diff --git a/fail2ban/tests/misctestcase.py b/fail2ban/tests/misctestcase.py index 04822e41..64b4355c 100644 --- a/fail2ban/tests/misctestcase.py +++ b/fail2ban/tests/misctestcase.py @@ -170,7 +170,7 @@ class TestsUtilsTest(unittest.TestCase): self.assertTrue(pindex > 10) # we should have some traceback self.assertEqual(s[:pindex], s[pindex+1:pindex*2 + 1]) -from fail2ban.server import iso8601 +from ..server import iso8601 import datetime import time diff --git a/fail2ban/tests/servertestcase.py b/fail2ban/tests/servertestcase.py index dd3c740c..648a6bf9 100644 --- a/fail2ban/tests/servertestcase.py +++ b/fail2ban/tests/servertestcase.py @@ -33,7 +33,7 @@ from ..exceptions import UnknownJailException from .utils import LogCaptureTestCase #from bin.fail2ban-client import Fail2banClient try: - from fail2ban.server import filtersystemd + from ..server import filtersystemd except ImportError: # pragma: no cover filtersystemd = None