cpython: 042c923c5b67 (original) (raw)

--- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -17,8 +17,10 @@ from tempfile import TemporaryFile from random import randint, random, getrandbits from unittest import skipUnless +from test import script_helper from test.test_support import TESTFN, TESTFN_UNICODE, TESTFN_ENCODING, [](#l1.8)

try: TESTFN_UNICODE.encode(TESTFN_ENCODING) except (UnicodeError, TypeError): @@ -1770,11 +1772,79 @@ class UniversalNewlineTests(unittest.Tes unlink(TESTFN2) +class CommandLineTest(unittest.TestCase): +

+

+

+

+

+

+ def test_main(): run_unittest(TestsWithSourceFile, TestZip64InSmallFiles, OtherTests, PyZipFileTests, DecryptionTests, TestsWithMultipleOpens, TestWithDirectory, UniversalNewlineTests,

+ if name == "main": test_main()