Lines Matching refs:tarname
31 tarname = test_support.findfile("testtar.tar")
42 tarname = tarname
46 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1")
166 self.tar = tarfile.open(self.tarname, mode=self.mode)
225 tarname = gzipname
231 tarname = bz2name
329 with open(self.tarname, "rb") as fobj:
334 with open(self.tarname, "rb") as fobj:
342 with open(self.tarname, "rb") as fobj:
363 tar = tarfile.open(self.tarname, mode=self.mode)
380 fobj = _open(self.tarname, "rb")
385 tar = tar.open(self.tarname, mode="r:", fileobj=fobj)
401 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode)
402 with open(tarname, "rb") as fobj:
438 with tarfile.open(tarname, errorlevel=1, encoding="iso8859-1") as tar:
457 tar = tarfile.open(tarname, encoding="iso8859-1")
492 with tarfile.open(self.tarname) as tar:
515 tar1 = tarfile.open(tarname, encoding="iso8859-1")
559 testfunc(tarname, "r")
560 testfunc(tarname, "r:")
561 testfunc(tarname, "r:*")
562 testfunc(tarname, "r|")
563 testfunc(tarname, "r|*")
566 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r:gz")
567 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r|gz")
578 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r:bz2")
579 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r|bz2")
601 with open(tarname, "rb") as fobj:
682 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1")
720 fobj = open(tarname)
746 tar = tarfile.open(tarname, encoding="iso8859-1")
768 tar = tarfile.open(tarname, encoding="iso8859-1")
1463 tar = tarfile.open(tarname, "r", encoding="iso8859-1", errors="strict")
1537 self.tarname = tmpname
1538 if os.path.exists(self.tarname):
1539 os.remove(self.tarname)
1542 with tarfile.open(self.tarname, "a", fileobj=fileobj) as tar:
1546 with tarfile.open(tarname, encoding="iso8859-1") as src:
1550 with tarfile.open(self.tarname, mode) as tar:
1554 with tarfile.open(self.tarname, fileobj=fileobj) as tar:
1562 tarfile.open(self.tarname, "w:").close()
1574 with open(self.tarname) as fobj:
1599 with open(self.tarname, "wb") as fobj:
1691 with tarfile.open(tarname) as tar:
1698 tar = tarfile.open(tarname)
1707 with tarfile.open(tarname) as tar:
1770 tarname = gzipname
1774 tarname = gzipname
1777 tarname = gzipname
1786 tarname = bz2name
1790 tarname = bz2name
1793 tarname = bz2name
1861 with open(tarname, "rb") as fobj: