Searched refs:ReadError (Results 1 - 4 of 4) sorted by relevance
/third_party/python/Lib/ |
H A D | tarfile.py | 70 __all__ = ["TarFile", "TarInfo", "is_tarfile", "TarError", "ReadError", 277 class ReadError(TarError): class 482 raise ReadError("not a gzip file") 550 raise ReadError("invalid compressed data") from e 691 raise ReadError("unexpected end of data") 1750 raise ReadError(str(e)) from None 1827 except (ReadError, CompressionError) as e: 1833 raise ReadError(f"file could not be opened successfully:\n{error_msgs_summary}") 1895 raise ReadError("not a gzip file") from e 1903 raise ReadError("no [all...] |
H A D | shutil.py | 74 class ReadError(OSError): class 1181 If it's unable to handle an archive, it needs to raise a ReadError 1210 raise ReadError("%s is not a zip file" % filename) 1241 raise ReadError( 1319 raise ReadError("Unknown archive format '{0}'".format(filename))
|
/third_party/python/Lib/test/ |
H A D | test_tarfile.py | 413 except tarfile.ReadError: 432 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode) 433 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname) 468 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"): 475 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"): 478 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"): 484 with self.assertRaisesRegex(tarfile.ReadError, "file could not be opened successfully"): 589 # For Gzip and Bz2 Tests: fail with a ReadError on an uncompressed file. 590 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode) 592 self.assertRaises(tarfile.ReadError, tarfil [all...] |
H A D | test_shutil.py | 1660 with self.assertRaises(shutil.ReadError):
|
Completed in 10 milliseconds