From: Patrick Steinhardt Date: Wed, 22 May 2019 11:24:05 +0000 (+0200) Subject: tests: loosen expectations for external info-zip tool X-Git-Tag: v0.13.72~54^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36f3c1745f26b586ce03df87ddcc7637817aefe4;p=zziplib tests: loosen expectations for external info-zip tool In our test suite, we're verifying some archives by utilizing the unzip(1) program provided by info-zip.org. Due to changes to info-zip, our test case 59770 may fail on some systems as we expect it to spit out error messages in a specific format. Loosen those restrictions to make the test pass on more systems. --- diff --git a/test/zziptests.py b/test/zziptests.py index e3b2e33..ae9b2d8 100644 --- a/test/zziptests.py +++ b/test/zziptests.py @@ -1318,10 +1318,9 @@ class ZZipTest(unittest.TestCase): # run = shell("cd {tmpdir} && {exe} -o {filename}".format(**locals()), returncodes = [2]) - self.assertLess(len(run.output), 90) + self.assertLess(len(run.output), 101) self.assertLess(len(errors(run.errors)), 900) self.assertIn('test: mismatching "local" filename', run.errors) - self.assertIn('test: unknown compression method', run.errors) self.assertEqual(os.path.getsize(tmpdir+"/test"), 0) self.rm_testdir() def test_59771_zzipdir_big_CVE_2017_5977(self):