]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #28115: ZIP creation test requires zlib.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 Oct 2016 19:33:12 +0000 (22:33 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 Oct 2016 19:33:12 +0000 (22:33 +0300)
1  2 
Lib/test/test_zipfile.py

index 09563d0f07ca0784eb5422b9f1436be270de653e,0a43b20e2bcf0d5f95c061bd248140a761bb157b..0a19d76f429b3997e9931895fadf4d490d39e26c
@@@ -2068,11 -2067,11 +2068,12 @@@ class CommandLineTest(unittest.TestCase
          with zipfile.ZipFile(zip_name, 'r') as tf:
              tf.printdir(t)
          expected = t.getvalue().encode('ascii', 'backslashreplace')
 -        out = self.zipfilecmd('-l', zip_name,
 -                              PYTHONIOENCODING='ascii:backslashreplace')
 -        self.assertEqual(out, expected)
 +        for opt in '-l', '--list':
 +            out = self.zipfilecmd(opt, zip_name,
 +                                  PYTHONIOENCODING='ascii:backslashreplace')
 +            self.assertEqual(out, expected)
  
+     @requires_zlib
      def test_create_command(self):
          self.addCleanup(unlink, TESTFN)
          with open(TESTFN, 'w') as f: