Home | History | Annotate | Download | only in test

Lines Matching full:runtimeerror

384         raises a RuntimeError."""
389 self.assertRaises(RuntimeError, zipfp.write, TESTFN)
781 self.assertRaises(RuntimeError, zipfp.writepy, TESTFN)
936 # a RuntimeError, and so should calling .testzip. An earlier
939 self.assertRaises(RuntimeError, zipf.read, "foo.txt")
940 self.assertRaises(RuntimeError, zipf.open, "foo.txt")
941 self.assertRaises(RuntimeError, zipf.testzip)
942 self.assertRaises(RuntimeError, zipf.writestr, "bogus.txt", "bogus")
944 self.assertRaises(RuntimeError, zipf.write, TESTFN)
948 self.assertRaises(RuntimeError, zipfile.ZipFile, TESTFN, "q")
958 self.assertRaises(RuntimeError, zipf.open, "foo.txt", "q")
974 exist in the archive raises a RuntimeError."""
981 self.assertRaises(RuntimeError, zipfile.ZipFile, TESTFN, "w", -1)
1199 self.assertRaises(RuntimeError, self.zip.read, "test.txt")
1200 self.assertRaises(RuntimeError, self.zip2.read, "zero")
1204 self.assertRaises(RuntimeError, self.zip.read, "test.txt")
1206 self.assertRaises(RuntimeError, self.zip2.read, "zero")