Lines Matching refs:tarfile
15 import tarfile
64 taropen = tarfile.TarFile.taropen
75 taropen = tarfile.TarFile.gzopen
82 taropen = tarfile.TarFile.bz2open
89 taropen = tarfile.TarFile.xzopen
97 self.tar = tarfile.open(self.tarname, mode=self.mode,
242 with tarfile.open(tmpname, 'w') as tar:
243 tar.format = tarfile.USTAR_FORMAT
249 with tarfile.open(tmpname) as tar:
269 self.tar = tarfile.open(self.tarname, mode=self.mode)
316 # ?rw-r--r-- tarfile/tarfile 7011 2003-01-06 07:19:43 ustar/conttype
317 # ?rw-r--r-- tarfile/tarfile 7011 2003-01-06 07:19:43 ustar/regtype
319 self.assertRegex(out, (br'\?rw-r--r-- tarfile/tarfile\s+7011 '
364 self.assertFalse(tarfile.is_tarfile(tmpname))
367 self.assertFalse(tarfile.is_tarfile(pathlib.Path(tmpname)))
371 self.assertFalse(tarfile.is_tarfile(fobj))
374 self.assertFalse(tarfile.is_tarfile(io.BytesIO(b"invalid")))
378 self.assertTrue(tarfile.is_tarfile(self.tarname))
381 self.assertTrue(tarfile.is_tarfile(pathlib.Path(self.tarname)))
385 self.assertTrue(tarfile.is_tarfile(fobj))
389 self.assertTrue(tarfile.is_tarfile(io.BytesIO(fobj.read())))
392 # Test for issue44289: tarfile.is_tarfile() modifies
395 tarfile.is_tarfile(fobj)
400 tarfile.is_tarfile(file_like)
405 # This test checks if tarfile.open() is able to open an empty tar
408 with tarfile.open(tmpname, self.mode.replace("r", "w")):
411 tar = tarfile.open(tmpname, self.mode)
413 except tarfile.ReadError:
414 self.fail("tarfile.open() failed on empty archive")
424 tarfile.open("xxx", self.mode)
428 # This test guarantees that tarfile.open() does not treat an empty
432 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode)
433 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname)
444 tarinfo = tarfile.TarInfo("foo")
449 tar = tarfile.open(tmpname, mode="r", ignore_zeros=True)
459 with tarfile.open(tmpname, "w:") as tar:
460 t = tarfile.TarInfo("foo")
467 with tarfile.open(tmpname) as tar:
468 with self.assertRaisesRegex(tarfile.ReadError, "unexpected end of data"):
472 with tarfile.open(tmpname) as tar:
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"):
485 with tarfile.open(support.findfile('recursion.tar')) as tar:
496 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
505 tar = tarfile.open(fileobj=fobj, mode=self.mode)
513 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
517 # Issue 21044: tarfile.open() should handle fileobj with an integer
522 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
530 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
536 with tarfile.open(tarname, mode=self.mode) as tar:
542 with tarfile.TarFile.open(tarname, mode=self.mode) as tar:
546 with tarfile.TarFile(tarname, mode='r') as tar:
563 tar = tarfile.open(self.tarname, mode=self.mode)
578 # Test if the tarfile starts with the second member.
590 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode)
592 self.assertRaises(tarfile.ReadError, tarfile.open,
600 self.assertEqual(tarinfo.type, tarfile.DIRTYPE,
618 self.assertEqual(tarinfo.uname, "tarfile",
630 with tarfile.open(tarname, errorlevel=1, encoding="iso8859-1") as tar:
650 tar = tarfile.open(tarname, encoding="iso8859-1")
684 with tarfile.open(tarname, encoding="iso8859-1") as tar:
697 tarfile.open(tarname, encoding="iso8859-1") as tar:
708 tarfile.open(tarname, encoding="iso8859-1") as tar:
723 tar = object.__new__(tarfile.TarFile)
726 except tarfile.ReadError:
734 # Issue #16601: Restarting iteration over tarfile continued
736 with tarfile.open(self.tarname) as tar:
743 # bpo-39039: tarfile.open allowed zlib exceptions to bubble up when
745 with unittest.mock.patch("tarfile.TarInfo.fromtarfile") as mock:
747 with self.assertRaises(tarfile.ReadError):
748 tarfile.open(self.tarname)
752 tf = tarfile.open(fileobj=fd, mode="w")
756 with tarfile.open(fileobj=fd, mode="r|") as tf:
760 with tarfile.open(fileobj=fd, mode="r") as tf:
792 except tarfile.StreamError:
810 self.assertRaises(tarfile.StreamError, f.read)
813 tar1 = tarfile.open(tarname, encoding="iso8859-1")
825 with self.assertRaises(tarfile.StreamError):
852 tar = tarfile.open(name, mode)
853 except tarfile.ReadError as e:
861 tar = tarfile.open(name, mode, fileobj=f)
862 except tarfile.ReadError as e:
869 with self.assertRaises(tarfile.ReadError):
870 tarfile.open(tarname, mode="r:" + self.suffix)
871 with self.assertRaises(tarfile.ReadError):
872 tarfile.open(tarname, mode="r|" + self.suffix)
873 with self.assertRaises(tarfile.ReadError):
874 tarfile.open(self.tarname, mode="r:")
875 with self.assertRaises(tarfile.ReadError):
876 tarfile.open(self.tarname, mode="r|")
894 # Originally, tarfile's stream detection looked for the string
924 kwargs["uname"] = "tarfile"
925 kwargs["gname"] = "tarfile"
1001 self.tar = tarfile.open(self.tarname, mode=self.mode,
1017 self.assertNotEqual(tarinfo.type, tarfile.DIRTYPE,
1035 with self.assertRaises(tarfile.ReadError):
1036 tarfile.open(name="foo.tar", fileobj=fobj)
1045 tarinfo = tarfile.TarInfo.frombuf(fobj.read(512),
1053 with tarfile.open(tmpname, 'w') as tar:
1060 with tarfile.open(tmpname) as tar:
1067 longnametype = tarfile.GNUTYPE_LONGNAME
1068 format = tarfile.GNU_FORMAT
1070 # Since 3.2 tarfile is supposed to accurately restore sparse members and
1127 longnametype = tarfile.XHDTYPE
1128 format = tarfile.PAX_FORMAT
1131 tar = tarfile.open(tarname, encoding="iso8859-1")
1146 self.assertEqual(tarinfo.uname, "tarfile")
1147 self.assertEqual(tarinfo.gname, "tarfile")
1155 tar = tarfile.open(tarname, encoding="iso8859-1")
1187 tar = tarfile.open(tmpname, "w", format=tarfile.PAX_FORMAT,
1190 t = tarfile.TarInfo()
1207 with self.assertRaisesRegex(tarfile.ReadError, r"method tar: ReadError\('invalid header'\)"):
1208 tarfile.open(tmpname, encoding="iso8859-1")
1217 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
1218 tar.addfile(tarfile.TarInfo("foo"))
1229 # tarfile insists on aligning archives to a 20 * 512 byte recordsize.
1232 with tarfile.open(tmpname, self.mode) as tar:
1233 t = tarfile.TarInfo("foo")
1234 t.size = tarfile.RECORDSIZE - tarfile.BLOCKSIZE
1238 self.assertEqual(len(fobj.read()), tarfile.RECORDSIZE * 2)
1251 tar = tarfile.open(tmpname, self.mode)
1253 t = tarfile.TarInfo(name)
1258 tar = tarfile.open(tmpname)
1267 tar = tarfile.open(tmpname, self.mode)
1276 "tarfile is empty")
1280 tar = tarfile.open(tmpname, self.mode)
1299 tar = tarfile.open(tmpname, self.mode)
1316 tar = tarfile.open(tmpname, self.mode)
1333 with tarfile.open(tmpname, self.mode) as tar:
1355 tar = tarfile.open(tmpname, self.mode)
1372 tar = tarfile.open(tmpname, self.mode)
1384 tar = tarfile.open(tmpname, self.mode)
1414 tar = tarfile.open(tmpname, self.mode, encoding="iso8859-1")
1424 tar = tarfile.open(tmpname, "r")
1440 # Create a tarfile with an empty member named path
1448 tar = tarfile.open(tmpname, self.mode)
1454 tar = tarfile.open(tmpname, "r")
1470 # Test if extractall works properly when tarfile contains symlinks
1480 with tarfile.open(temparchive, 'w') as tar:
1484 with tarfile.open(temparchive, errorlevel=2) as tar:
1522 tar = tarfile.open(tmpname, self.mode)
1528 tar = tarfile.open(tmpname, "r")
1547 tar = tarfile.open(tmpname, self.mode, fileobj=f,
1548 format=tarfile.PAX_FORMAT,
1572 tar = tarfile.open(tmpname, self.mode)
1583 self.assertEqual(data.count(b"\0"), tarfile.RECORDSIZE,
1600 tar = tarfile.open(tmpname, self.mode)
1614 tarfile.open(tmpname, self.mode).close()
1638 if len(name) > tarfile.LENGTH_NAME:
1642 if link is not None and len(link) > tarfile.LENGTH_LINK:
1649 tarinfo = tarfile.TarInfo(name)
1652 tarinfo.type = tarfile.LNKTYPE
1654 tar = tarfile.open(tmpname, "w")
1656 tar.format = tarfile.GNU_FORMAT
1665 tar = tarfile.open(tmpname)
1717 tar = tarfile.open(tmpname, self.mode)
1719 input_blk = tarfile.TarInfo(name="my_block_device")
1720 input_reg = tarfile.TarInfo(name="my_regular_file")
1721 input_blk.type = tarfile.BLKTYPE
1722 input_reg.type = tarfile.REGTYPE
1729 tar = tarfile.open(tmpname, "r")
1773 with tarfile.open(tmpname, self.mode) as tobj:
1782 with tarfile.open(tmpname, self.mode) as tobj:
1786 tobj = tarfile.open(tmpname, self.mode)
1816 with tarfile.open(pathlib.Path(tmpname), self.mode) as tobj:
1847 with tarfile.open(tmpname, self.mode, compresslevel=1) as tobj:
1849 with tarfile.open(tmpname, 'r:gz', compresslevel=1) as tobj:
1856 with tarfile.open(tmpname, self.mode, compresslevel=1) as tobj:
1858 with tarfile.open(tmpname, 'r:bz2', compresslevel=1) as tobj:
1867 with tarfile.open(tmpname, self.mode, preset=1) as tobj:
1895 self.tar = tarfile.open(tmpname, "w")
1907 self.assertEqual(tarinfo.type, tarfile.REGTYPE,
1912 self.assertEqual(tarinfo.type, tarfile.LNKTYPE,
1918 self.assertEqual(tarinfo.type, tarfile.REGTYPE,
1926 tarinfo = tarfile.TarInfo(name)
1929 tarinfo.type = tarfile.LNKTYPE
1931 tar = tarfile.open(tmpname, "w", format=tarfile.PAX_FORMAT)
1937 tar = tarfile.open(tmpname)
1956 tar = tarfile.open(tmpname, "w", format=tarfile.PAX_FORMAT,
1959 tar.addfile(tarfile.TarInfo("test"))
1964 tar = tarfile.open(tmpname, encoding="iso8859-1")
1972 if key in tarfile.PAX_NUMBER_FIELDS:
1974 tarfile.PAX_NUMBER_FIELDS[key](val)
1985 tar = tarfile.open(tmpname, "w", format=tarfile.PAX_FORMAT,
1988 t = tarfile.TarInfo()
1996 tar = tarfile.open(tmpname, encoding="iso8859-1")
2012 t = tarfile.TarInfo()
2036 t = tarfile.TarInfo()
2073 tar = tarfile.open(tmpname, "w", format=self.format,
2077 tar.addfile(tarfile.TarInfo(name))
2081 tar = tarfile.open(tmpname, encoding=encoding)
2088 tar = tarfile.open(tmpname, "w", format=self.format,
2091 tarinfo = tarfile.TarInfo()
2103 tar = tarfile.open(tarname, "r",
2115 t = tarfile.TarInfo("foo")
2119 tar = tarfile.open(tmpname, mode="w", format=self.format,
2126 tar = tarfile.open(tmpname, encoding="iso8859-1")
2132 if self.format != tarfile.PAX_FORMAT:
2134 tar = tarfile.open(tmpname, encoding="ascii")
2144 format = tarfile.USTAR_FORMAT
2181 with tarfile.open(tmpname, "w", format=self.format, encoding="utf-8") as tar:
2182 t = tarfile.TarInfo(name)
2189 with tarfile.open(tmpname, "r", encoding="utf-8") as tar:
2206 with tarfile.open(tmpname, "w", format=self.format, encoding="utf-8") as tar:
2207 t = tarfile.TarInfo("foo")
2215 with tarfile.open(tmpname, "r", encoding="utf-8") as tar:
2223 format = tarfile.GNU_FORMAT
2231 with tarfile.open(tarname, encoding=encoding,
2241 format = tarfile.PAX_FORMAT
2251 with tarfile.open(tarname, encoding=encoding,
2268 with tarfile.open(tarname, encoding="iso8859-1") as src:
2272 with tarfile.open(self.tarname, mode) as tar:
2277 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, "a")
2283 with tarfile.open(self.tarname, "a", fileobj=fileobj) as tar:
2284 tar.addfile(tarfile.TarInfo("bar"))
2287 with tarfile.open(self.tarname, fileobj=fileobj) as tar:
2295 tarfile.open(self.tarname, "w:").close()
2319 # Append mode is supposed to fail if the tarfile to append to
2324 self.assertRaises(tarfile.ReadError, self._add_testfile)
2333 data = tarfile.TarInfo("foo").tobuf()
2337 data = tarfile.TarInfo("foo").tobuf()
2357 tarinfo = tarfile.TarInfo("0123456789" * 10)
2358 tarinfo.tobuf(tarfile.USTAR_FORMAT)
2361 tarinfo = tarfile.TarInfo("0123456789" * 10 + "0")
2362 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
2365 tarinfo = tarfile.TarInfo("123/" * 62 + "longname")
2366 tarinfo.tobuf(tarfile.USTAR_FORMAT)
2369 tarinfo = tarfile.TarInfo("1234567/" * 31 + "longname")
2370 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
2373 tarinfo = tarfile.TarInfo("123/" * 126 + "longname")
2374 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
2377 tarinfo = tarfile.TarInfo("longlink")
2379 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
2382 tarinfo = tarfile.TarInfo("name")
2384 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
2387 tarinfo = tarfile.TarInfo("123/" * 126 + "longname")
2388 tarinfo.tobuf(tarfile.GNU_FORMAT)
2390 tarinfo = tarfile.TarInfo("longlink")
2392 tarinfo.tobuf(tarfile.GNU_FORMAT)
2395 tarinfo = tarfile.TarInfo("name")
2397 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.GNU_FORMAT)
2400 tarinfo = tarfile.TarInfo("123/" * 126 + "longname")
2401 tarinfo.tobuf(tarfile.PAX_FORMAT)
2403 tarinfo = tarfile.TarInfo("longlink")
2405 tarinfo.tobuf(tarfile.PAX_FORMAT)
2407 tarinfo = tarfile.TarInfo("name")
2409 tarinfo.tobuf(tarfile.PAX_FORMAT)
2415 self.assertEqual(tarfile.stn("foo", 8, "ascii", "strict"),
2417 self.assertEqual(tarfile.stn("foobar", 3, "ascii", "strict"),
2419 self.assertEqual(tarfile.nts(b"foo\0\0\0\0\0", "ascii", "strict"),
2421 self.assertEqual(tarfile.nts(b"foo\0bar\0", "ascii", "strict"),
2427 self.assertEqual(tarfile.nti(b"0000001\x00"), 1)
2428 self.assertEqual(tarfile.nti(b"7777777\x00"), 0o7777777)
2429 self.assertEqual(tarfile.nti(b"\x80\x00\x00\x00\x00\x20\x00\x00"),
2431 self.assertEqual(tarfile.nti(b"\x80\x00\x00\x00\xff\xff\xff\xff"),
2433 self.assertEqual(tarfile.nti(b"\xff\xff\xff\xff\xff\xff\xff\xff"),
2435 self.assertEqual(tarfile.nti(b"\xff\xff\xff\xff\xff\xff\xff\x9c"),
2437 self.assertEqual(tarfile.nti(b"\xff\x00\x00\x00\x00\x00\x00\x00"),
2441 self.assertEqual(tarfile.nti(b"\0"), 0)
2442 self.assertEqual(tarfile.nti(b" \0"), 0)
2445 self.assertEqual(tarfile.itn(1), b"0000001\x00")
2446 self.assertEqual(tarfile.itn(0o7777777), b"7777777\x00")
2447 self.assertEqual(tarfile.itn(0o10000000, format=tarfile.GNU_FORMAT),
2449 self.assertEqual(tarfile.itn(0xffffffff, format=tarfile.GNU_FORMAT),
2451 self.assertEqual(tarfile.itn(-1, format=tarfile.GNU_FORMAT),
2453 self.assertEqual(tarfile.itn(-100, format=tarfile.GNU_FORMAT),
2455 self.assertEqual(tarfile.itn(-0x100000000000000,
2456 format=tarfile.GNU_FORMAT),
2461 self.assertEqual(tarfile.itn(-100.0, format=tarfile.GNU_FORMAT),
2463 self.assertEqual(tarfile.itn(8 ** 12 + 0.0, format=tarfile.GNU_FORMAT),
2465 self.assertEqual(tarfile.nti(tarfile.itn(-0.1, format=tarfile.GNU_FORMAT)), 0)
2469 tarfile.itn(-1, 8, tarfile.USTAR_FORMAT)
2471 tarfile.itn(0o10000000, 8, tarfile.USTAR_FORMAT)
2473 tarfile.itn(-0x10000000001, 6, tarfile.GNU_FORMAT)
2475 tarfile.itn(0x10000000000, 6, tarfile.GNU_FORMAT)
2495 support.check__all__(self, tarfile, not_exported=not_exported)
2499 with self.assertRaises(tarfile.ReadError) as excinfo:
2500 error = tarfile.CompressionError('lzma module is not available'),
2501 with unittest.mock.patch.object(tarfile.TarFile, 'xzopen', side_effect=error):
2502 tarfile.open(fname)
2513 rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
2518 return script_helper.assert_python_failure('-m', 'tarfile', *args)
2525 with tarfile.open(tar_name, 'w') as tf:
2532 with tarfile.open(tar_name, 'w') as tf:
2533 benign = tarfile.TarInfo('benign')
2535 evil = tarfile.TarInfo('../evil')
2584 with tarfile.open(tar_name, 'r') as tf:
2595 with tarfile.open(tar_name, 'r') as tf:
2618 with tarfile.open(tmpname) as tar:
2632 with tarfile.open(tmpname) as tar:
2642 with tarfile.open(dotlessname) as tar:
2653 with tarfile.open(tar_name) as tar:
2734 with tarfile.open(tarname) as tar:
2741 tar = tarfile.open(tarname)
2750 with tarfile.open(tarname) as tar:
2760 with tarfile.open(tmpname, "w") as tar:
2771 with tarfile.open(tmpname, "w"):
2781 with tarfile.open(fileobj=fobj, mode="w") as tar:
2793 # symbolic or hard links tarfile tries to extract these types of members
2833 "tarfile.open()")
2840 data = bz2.compress(tarfile.TarInfo("foo").tobuf())
2843 tarfile.open(fileobj=MyBytesIO(data[:x]), mode=mode)
2844 except tarfile.ReadError:
2882 items = [(filename_1, 99, 98, tarfile.REGTYPE, fobj),
2883 (dirname_1, 77, 76, tarfile.DIRTYPE, None),
2884 (filename_2, 88, 87, tarfile.REGTYPE, fobj),
2886 with tarfile.open(tmpname, 'w') as tarfl:
2888 t = tarfile.TarInfo(name)
2906 # the names we want stored in the tarfile
2911 # create the tarfile with the contents we're after
2916 # open the tarfile for reading. yield it and the names of the items
2918 with tarfile.open(tar_filename) as tarfl:
3041 tar = tarfile.open(tarname, mode='r', encoding="iso8859-1")
3142 for tarformat in (tarfile.USTAR_FORMAT, tarfile.GNU_FORMAT,
3143 tarfile.PAX_FORMAT):
3145 tar = tarfile.open(fileobj=bio, mode='w', format=tarformat)
3150 if tarformat == tarfile.USTAR_FORMAT:
3174 tarfile.open(tarname, encoding="iso8859-1") as tar):
3194 (b'tarfile/', b'lars/', b'foo/')):
3200 (b'/tarfile', b'/users', b'/bar')):
3217 (b'tarfile/', b'lars/', b'foo/', b'1000/')):
3223 (b'/tarfile', b'/users', b'/bar', b'/100')):
3275 self.tar_w = tarfile.TarFile(mode='w', fileobj=self.bio)
3287 tarinfo = tarfile.TarInfo(name).replace(**kwargs)
3291 type = tarfile.SYMTYPE
3294 type = tarfile.LNKTYPE
3297 type = tarfile.DIRTYPE
3309 return tarfile.open(fileobj=bio, **kwargs)
3375 type = tarfile.DIRTYPE
3384 elif type == tarfile.REGTYPE or type is None:
3386 elif type == tarfile.DIRTYPE:
3388 elif type == tarfile.FIFOTYPE:
3430 tarfile.AbsolutePathError,
3446 # (and tarfile doesn't swallow that exception)
3458 tarfile.OutsideDestinationError,
3464 tarfile.LinkOutsideDestinationError,
3498 tarfile.OutsideDestinationError,
3508 tarfile.LinkOutsideDestinationError,
3530 tarfile.OutsideDestinationError,
3539 tarfile.AbsoluteLinkError,
3571 tarfile.OutsideDestinationError,
3584 self.expect_file('tmp', type=tarfile.DIRTYPE)
3591 tarfile.OutsideDestinationError,
3656 arc.add('foo', type=tarfile.FIFOTYPE)
3661 self.expect_file('foo', type=tarfile.FIFOTYPE)
3668 tarfile.SpecialFileError,
3674 for special_type in tarfile.FIFOTYPE, tarfile.CHRTYPE, tarfile.BLKTYPE:
3675 tarinfo = tarfile.TarInfo('foo')
3677 trusted = tarfile.fully_trusted_filter(tarinfo, '')
3679 tar = tarfile.tar_filter(tarinfo, '')
3681 with self.assertRaises(tarfile.SpecialFileError) as cm:
3682 tarfile.data_filter(tarinfo, '')
3683 self.assertIsInstance(cm.exception.tarinfo, tarfile.TarInfo)
3688 with tarfile.TarFile.open(tarname) as tar:
3690 filtered = tarfile.fully_trusted_filter(tarinfo, '')
3697 with tarfile.TarFile.open(tarname) as tar:
3699 filtered = tarfile.tar_filter(tarinfo, '')
3706 with tarfile.TarFile.open(tarname) as tar:
3709 filtered = tarfile.data_filter(tarinfo, '')
3710 except tarfile.FilterError:
3724 tar = tarfile.TarFile(tarname, 'r')
3740 tar = tarfile.TarFile(tarname, 'r')
3741 with support.swap_attr(tarfile.TarFile, 'extraction_filter',
3747 class TarSubclass(tarfile.TarFile):
3759 tar = tarfile.TarFile(tarname, 'r')
3789 # (This doesn't really test tarfile. Rather, it demonstrates
3798 tarinfo = tarfile.data_filter(tarinfo, path)
3799 except tarfile.FilterError:
3819 raise tarfile.ExtractError('failed with ExtractError')
3821 raise tarfile.FilterError('failed with FilterError')
3825 raise tarfile.TarError('failed with base TarError')
3844 self.expect_exception(tarfile.TarError)
3855 self.expect_exception(tarfile.FilterError)
3861 self.expect_exception(tarfile.TarError)
3869 self.expect_exception(tarfile.ExtractError)
3872 self.expect_exception(tarfile.FilterError)
3878 self.expect_exception(tarfile.TarError)