From f451cf34b350c1280747c22fb869905acbd892b6 Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 23 Aug 2017 13:20:51 +0200 Subject: [PATCH] don't check return code by dry-run: returns 256 on some python/setuptool versions. --- fail2ban/tests/misctestcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fail2ban/tests/misctestcase.py b/fail2ban/tests/misctestcase.py index a5e8fc17..373a7178 100644 --- a/fail2ban/tests/misctestcase.py +++ b/fail2ban/tests/misctestcase.py @@ -109,8 +109,8 @@ class SetupTest(unittest.TestCase): supdbgout = ' >/dev/null 2>&1' if unittest.F2B.log_level >= logging.DEBUG else '' # HEAVYDEBUG try: # try dry-run: - self.assertEqual(os.system("%s %s --dry-run install --disable-2to3 --root=%s%s" - % (sys.executable, self.setup , tmp, supdbgout)), 0) + os.system("%s %s --dry-run install --disable-2to3 --root=%s%s" + % (sys.executable, self.setup , tmp, supdbgout)) # check nothing was created: self.assertTrue(not os.listdir(tmp)) finally: