From 8170e9fe75fd2c2c4c51a1d9972b683401cddccb Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 4 Jul 2024 19:06:36 +0200 Subject: [PATCH] suppress SetuptoolsDeprecationWarning in test suite --- fail2ban/tests/misctestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/tests/misctestcase.py b/fail2ban/tests/misctestcase.py index 1776028d..bfce434f 100644 --- a/fail2ban/tests/misctestcase.py +++ b/fail2ban/tests/misctestcase.py @@ -120,7 +120,7 @@ class SetupTest(unittest.TestCase): # suppress stdout (and stderr) if not heavydebug supdbgout = ' >/dev/null' if unittest.F2B.log_level >= logging.DEBUG else '' # HEAVYDEBUG 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) def strippath(l):