Lines Matching refs:ReadError
369 except tarfile.ReadError:
388 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode)
389 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname)
424 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
431 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
434 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
440 with self.assertRaisesRegex(tarfile.ReadError, "file could not be opened successfully"):
546 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode)
548 self.assertRaises(tarfile.ReadError, tarfile.open,
679 except tarfile.ReadError:
700 with self.assertRaises(tarfile.ReadError):
794 except tarfile.ReadError as e:
803 except tarfile.ReadError as e:
810 with self.assertRaises(tarfile.ReadError):
812 with self.assertRaises(tarfile.ReadError):
814 with self.assertRaises(tarfile.ReadError):
816 with self.assertRaises(tarfile.ReadError):
976 with self.assertRaises(tarfile.ReadError):
2100 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, "a")
2147 self.assertRaises(tarfile.ReadError, self._add_testfile)
2317 with self.assertRaises(tarfile.ReadError) as excinfo:
2634 except tarfile.ReadError: