Lines Matching refs:ReadError
330 except tarfile.ReadError:
349 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode)
350 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname)
385 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
392 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
395 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
501 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode)
503 self.assertRaises(tarfile.ReadError, tarfile.open,
634 except tarfile.ReadError:
739 except tarfile.ReadError as e:
748 except tarfile.ReadError as e:
755 with self.assertRaises(tarfile.ReadError):
757 with self.assertRaises(tarfile.ReadError):
759 with self.assertRaises(tarfile.ReadError):
761 with self.assertRaises(tarfile.ReadError):
921 with self.assertRaises(tarfile.ReadError):
1976 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, "a")
2023 self.assertRaises(tarfile.ReadError, self._add_testfile)
2497 except tarfile.ReadError: