Lines Matching refs:tobj
1542 with tarfile.open(tmpname, self.mode) as tobj:
1543 tobj.add(self.file_path)
1545 with self.taropen(tmpname) as tobj:
1546 names = tobj.getnames()
1551 with tarfile.open(tmpname, self.mode) as tobj:
1552 tobj.add(self.file_path)
1555 tobj = tarfile.open(tmpname, self.mode)
1557 with self.taropen(tmpname) as tobj:
1558 names = tobj.getnames()
1563 with self.taropen(tmpname, "x") as tobj:
1564 tobj.add(self.file_path)
1566 with self.taropen(tmpname) as tobj:
1567 names = tobj.getnames()
1572 with self.taropen(tmpname, "x") as tobj:
1573 tobj.add(self.file_path)
1579 with self.taropen(tmpname) as tobj:
1580 names = tobj.getnames()
1585 with tarfile.open(pathlib.Path(tmpname), self.mode) as tobj:
1586 self.assertIsInstance(tobj.name, str)
1587 self.assertEqual(tobj.name, os.path.abspath(tmpname))
1588 tobj.add(pathlib.Path(self.file_path))
1589 names = tobj.getnames()
1593 with self.taropen(tmpname) as tobj:
1594 names = tobj.getnames()
1599 with self.taropen(pathlib.Path(tmpname), "x") as tobj:
1600 self.assertIsInstance(tobj.name, str)
1601 self.assertEqual(tobj.name, os.path.abspath(tmpname))
1602 tobj.add(pathlib.Path(self.file_path))
1603 names = tobj.getnames()
1607 with self.taropen(tmpname) as tobj:
1608 names = tobj.getnames()