diff -r ad90fc28769a Lib/test/test_zipfile.py --- a/Lib/test/test_zipfile.py Sat Jul 27 00:33:35 2013 +0200 +++ b/Lib/test/test_zipfile.py Sun Jul 28 20:54:55 2013 -0400 @@ -22,6 +22,7 @@ DATAFILES_DIR = 'zipfile_datafiles' SMALL_TEST_DATA = [('_ziptest1', '1q2w3e4r5t'), + ('_ziptest1', ' '), ('ziptest2dir/_ziptest2', 'qawsedrftg'), ('ziptest2dir/ziptest3dir/_ziptest3', 'azsxdcfvgb'), ('ziptest2dir/ziptest3dir/ziptest4dir/_ziptest3', '6y7u8i9o0p')] @@ -1141,15 +1142,7 @@ zipf = zipfile.ZipFile(TESTFN, mode="r") except: self.fail("Unable to create empty ZIP file in 'a' mode") - - def test_open_empty_file(self): - # Issue 1710703: Check that opening a file with less than 22 bytes - # raises a BadZipFile exception (rather than the previously unhelpful - # OSError) - f = open(TESTFN, 'w') - f.close() - self.assertRaises(zipfile.BadZipFile, zipfile.ZipFile, TESTFN, 'r') - + def test_create_zipinfo_before_1980(self): self.assertRaises(ValueError, zipfile.ZipInfo, 'seventies', (1979, 1, 1, 0, 0, 0))