]> granicus.if.org Git - zziplib/commitdiff
tests: loosen expectations for external info-zip tool
authorPatrick Steinhardt <ps@pks.im>
Wed, 22 May 2019 11:24:05 +0000 (13:24 +0200)
committerPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2019 06:34:47 +0000 (08:34 +0200)
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.

test/zziptests.py

index e3b2e33f6f097212d53434407c6bec99efc48abb..ae9b2d87c69670a02544eda009b4c5b08db2e794 100644 (file)
@@ -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):