Skip to content

Commit

Permalink
suppress SetuptoolsDeprecationWarning in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
sebres committed Jul 4, 2024
1 parent 599ec5e commit 8170e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fail2ban/tests/misctestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def testSetupInstallRoot(self):
# 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):
Expand Down

0 comments on commit 8170e9f

Please sign in to comment.