annotate Lib/test/test_zipfile64.py @ 54294:dba767bc3155 legacy-trunk

remove mention of old ctypes version
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 May 2009 20:59:09 +0000
parents acfad8640e21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
1 # Tests of the full ZIP64 functionality of zipfile
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
2 # The test_support.requires call is the only reason for keeping this separate
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
3 # from test_zipfile
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
4 from test import test_support
47882
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
5
38848
b5efa23cc948 Disable this test until we can determine what to do about it
Neal Norwitz <nnorwitz@gmail.com>
parents: 38847
diff changeset
6 # XXX(nnorwitz): disable this test by looking for extra largfile resource
b5efa23cc948 Disable this test until we can determine what to do about it
Neal Norwitz <nnorwitz@gmail.com>
parents: 38847
diff changeset
7 # which doesn't exist. This test takes over 30 minutes to run in general
b5efa23cc948 Disable this test until we can determine what to do about it
Neal Norwitz <nnorwitz@gmail.com>
parents: 38847
diff changeset
8 # and requires more disk space than most of the buildbots.
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
9 test_support.requires(
38848
b5efa23cc948 Disable this test until we can determine what to do about it
Neal Norwitz <nnorwitz@gmail.com>
parents: 38847
diff changeset
10 'extralargefile',
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
11 'test requires loads of disk-space bytes and a long time to run'
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
12 )
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
13
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
14 # We can test part of the module without zlib.
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
15 try:
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
16 import zlib
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
17 except ImportError:
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
18 zlib = None
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
19
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
20 import zipfile, os, unittest
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
21 import time
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
22 import sys
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
23
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
24 from tempfile import TemporaryFile
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
25
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
26 from test.test_support import TESTFN, run_unittest
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
27
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
28 TESTFN2 = TESTFN + "2"
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
29
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
30 # How much time in seconds can pass before we print a 'Still working' message.
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
31 _PRINT_WORKING_MSG_INTERVAL = 5 * 60
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
32
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
33 class TestsWithSourceFile(unittest.TestCase):
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
34 def setUp(self):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
35 # Create test data.
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
36 # xrange() is important here -- don't want to create immortal space
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
37 # for a million ints.
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000))
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
39 self.data = '\n'.join(line_gen)
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
40
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
41 # And write it to a file.
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
42 fp = open(TESTFN, "wb")
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
43 fp.write(self.data)
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
44 fp.close()
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
45
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
46 def zipTest(self, f, compression):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
47 # Create the ZIP archive.
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True)
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
49
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
50 # It will contain enough copies of self.data to reach about 6GB of
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
51 # raw data to store.
38847
9a9d5782e436 Oops -- I introduced an off-by-6436159488 error.
Tim Peters <tim.peters@gmail.com>
parents: 38844
diff changeset
52 filecount = 6*1024**3 // len(self.data)
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
53
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
54 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
55 for num in range(filecount):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
56 zipfp.writestr("testfn%d" % num, self.data)
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
57 # Print still working message since this test can be really slow
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
58 if next_time <= time.time():
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
59 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
38843
34b697041191 Print some more info to get an idea of how much longer the test will last
Neal Norwitz <nnorwitz@gmail.com>
parents: 38842
diff changeset
60 print >>sys.__stdout__, (
34b697041191 Print some more info to get an idea of how much longer the test will last
Neal Norwitz <nnorwitz@gmail.com>
parents: 38842
diff changeset
61 ' zipTest still writing %d of %d, be patient...' %
34b697041191 Print some more info to get an idea of how much longer the test will last
Neal Norwitz <nnorwitz@gmail.com>
parents: 38842
diff changeset
62 (num, filecount))
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
63 sys.__stdout__.flush()
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
64 zipfp.close()
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
65
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
66 # Read the ZIP archive
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
67 zipfp = zipfile.ZipFile(f, "r", compression)
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
68 for num in range(filecount):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
69 self.assertEqual(zipfp.read("testfn%d" % num), self.data)
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
70 # Print still working message since this test can be really slow
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
71 if next_time <= time.time():
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
72 next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
38843
34b697041191 Print some more info to get an idea of how much longer the test will last
Neal Norwitz <nnorwitz@gmail.com>
parents: 38842
diff changeset
73 print >>sys.__stdout__, (
34b697041191 Print some more info to get an idea of how much longer the test will last
Neal Norwitz <nnorwitz@gmail.com>
parents: 38842
diff changeset
74 ' zipTest still reading %d of %d, be patient...' %
34b697041191 Print some more info to get an idea of how much longer the test will last
Neal Norwitz <nnorwitz@gmail.com>
parents: 38842
diff changeset
75 (num, filecount))
38842
3b65eefbaf76 Steal the trick from test_compiler to print out a slow msg.
Neal Norwitz <nnorwitz@gmail.com>
parents: 38838
diff changeset
76 sys.__stdout__.flush()
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
77 zipfp.close()
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
78
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
79 def testStored(self):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
80 # Try the temp file first. If we do TESTFN2 first, then it hogs
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
81 # gigabytes of disk space for the duration of the test.
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
82 for f in TemporaryFile(), TESTFN2:
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
83 self.zipTest(f, zipfile.ZIP_STORED)
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
84
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
85 if zlib:
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
86 def testDeflated(self):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
87 # Try the temp file first. If we do TESTFN2 first, then it hogs
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
88 # gigabytes of disk space for the duration of the test.
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
89 for f in TemporaryFile(), TESTFN2:
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
90 self.zipTest(f, zipfile.ZIP_DEFLATED)
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
91
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
92 def tearDown(self):
38844
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
93 for fname in TESTFN, TESTFN2:
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
94 if os.path.exists(fname):
92eb6ed03c2e Try to reduce the extreme peak memory and disk-space use
Tim Peters <tim.peters@gmail.com>
parents: 38843
diff changeset
95 os.remove(fname)
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
96
47882
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
97
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
98 class OtherTests(unittest.TestCase):
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
99 def testMoreThan64kFiles(self):
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
100 # This test checks that more than 64k files can be added to an archive,
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
101 # and that the resulting archive can be read properly by ZipFile
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
102 zipf = zipfile.ZipFile(TESTFN, mode="w")
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
103 zipf.debug = 100
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
104 numfiles = (1 << 16) * 3/2
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
105 for i in xrange(numfiles):
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
106 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
107 self.assertEqual(len(zipf.namelist()), numfiles)
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
108 zipf.close()
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
109
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
110 zipf2 = zipfile.ZipFile(TESTFN, mode="r")
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
111 self.assertEqual(len(zipf2.namelist()), numfiles)
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
112 for i in xrange(numfiles):
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
113 self.assertEqual(zipf2.read("foo%08d" % i), "%d" % (i**3 % 57))
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
114 zipf.close()
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
115
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
116 def tearDown(self):
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
117 test_support.unlink(TESTFN)
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
118 test_support.unlink(TESTFN2)
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
119
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
120 def test_main():
47882
acfad8640e21 Patch #1622: Correct interpretation of various ZIP header fields.
Martin v. Löwis <martin@v.loewis.de>
parents: 45468
diff changeset
121 run_unittest(TestsWithSourceFile, OtherTests)
38838
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
122
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
123 if __name__ == "__main__":
fd412a00a07d Patch #1446489 (zipfile: support for ZIP64)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff changeset
124 test_main()