Lines Matching refs:tarname
30 tarname = test_support.findfile("testtar.tar")
41 tarname = tarname
45 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1")
207 fobj = open(self.tarname, "rb")
212 data = open(self.tarname, "rb").read()
219 data = open(self.tarname, "rb").read()
228 tar = tarfile.open(self.tarname, mode=self.mode)
243 fobj = _open(self.tarname, "rb")
247 tar = tar.open(self.tarname, mode="r:", fileobj=fobj)
261 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, self.mode)
262 fobj = open(tarname, "rb")
297 tar = tarfile.open(tarname, errorlevel=1, encoding="iso8859-1")
321 tar = tarfile.open(tarname, encoding="iso8859-1")
368 tar1 = tarfile.open(tarname, encoding="iso8859-1")
407 testfunc(tarname, "r")
408 testfunc(tarname, "r:")
409 testfunc(tarname, "r:*")
410 testfunc(tarname, "r|")
411 testfunc(tarname, "r|*")
414 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r:gz")
415 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r|gz")
426 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r:bz2")
427 self.assertRaises(tarfile.ReadError, tarfile.open, tarname, mode="r|bz2")
515 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1")
553 fobj = open(tarname)
579 tar = tarfile.open(tarname, encoding="iso8859-1")
598 tar = tarfile.open(tarname, encoding="iso8859-1")
1213 tar = tarfile.open(tarname, "r", encoding="iso8859-1", errors="strict")
1283 self.tarname = tmpname
1284 if os.path.exists(self.tarname):
1285 os.remove(self.tarname)
1288 tar = tarfile.open(self.tarname, "a", fileobj=fileobj)
1293 src = tarfile.open(tarname, encoding="iso8859-1")
1297 tar = tarfile.open(self.tarname, mode)
1302 tar = tarfile.open(self.tarname, fileobj=fileobj)
1310 tarfile.open(self.tarname, "w:").close()
1322 data = open(self.tarname).read()
1348 open(self.tarname, "wb").write(data)
1431 with tarfile.open(tarname) as tar:
1438 tar = tarfile.open(tarname)
1447 with tarfile.open(tarname) as tar:
1511 tarname = gzipname
1514 tarname = gzipname
1517 tarname = gzipname
1526 tarname = bz2name
1529 tarname = bz2name
1532 tarname = bz2name
1597 fobj = open(tarname, "rb")