[Python-checkins] cpython: Move test_zipfile to unittest.main()

brett.cannon python-checkins at python.org
Thu Jun 13 01:57:31 CEST 2013


http://hg.python.org/cpython/rev/78b8238d679f
changeset:   84104:78b8238d679f
user:        Brett Cannon <brett at python.org>
date:        Wed Jun 12 19:57:19 2013 -0400
summary:
  Move test_zipfile to unittest.main()

files:
  Lib/test/test_zipfile.py |  8 +-------
  1 files changed, 1 insertions(+), 7 deletions(-)


diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -1911,11 +1911,5 @@
         unlink(TESTFN2)
 
 
-def test_main():
-    run_unittest(TestsWithSourceFile, TestZip64InSmallFiles, OtherTests,
-                 PyZipFileTests, DecryptionTests, TestsWithMultipleOpens,
-                 TestWithDirectory, UniversalNewlineTests,
-                 TestsWithRandomBinaryFiles)
-
 if __name__ == "__main__":
-    test_main()
+    unittest.main()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list