mirror of https://github.com/fail2ban/fail2ban
suppress SetuptoolsDeprecationWarning in test suite
parent
599ec5e01e
commit
8170e9fe75
|
@ -120,7 +120,7 @@ class SetupTest(unittest.TestCase):
|
||||||
# suppress stdout (and stderr) if not heavydebug
|
# suppress stdout (and stderr) if not heavydebug
|
||||||
supdbgout = ' >/dev/null' if unittest.F2B.log_level >= logging.DEBUG else '' # HEAVYDEBUG
|
supdbgout = ' >/dev/null' if unittest.F2B.log_level >= logging.DEBUG else '' # HEAVYDEBUG
|
||||||
try:
|
try:
|
||||||
self.assertEqual(os.system("%s %s install --root=%s%s"
|
self.assertEqual(os.system("%s -W 'ignore:setup.py install is deprecated' %s install --root=%s%s"
|
||||||
% (sys.executable, self.setup, tmp, supdbgout)), 0)
|
% (sys.executable, self.setup, tmp, supdbgout)), 0)
|
||||||
|
|
||||||
def strippath(l):
|
def strippath(l):
|
||||||
|
|
Loading…
Reference in New Issue