Lines Matching refs:tobj
1636 with tarfile.open(tmpname, self.mode) as tobj:
1637 tobj.add(self.file_path)
1639 with self.taropen(tmpname) as tobj:
1640 names = tobj.getnames()
1645 with tarfile.open(tmpname, self.mode) as tobj:
1646 tobj.add(self.file_path)
1649 tobj = tarfile.open(tmpname, self.mode)
1651 with self.taropen(tmpname) as tobj:
1652 names = tobj.getnames()
1657 with self.taropen(tmpname, "x") as tobj:
1658 tobj.add(self.file_path)
1660 with self.taropen(tmpname) as tobj:
1661 names = tobj.getnames()
1666 with self.taropen(tmpname, "x") as tobj:
1667 tobj.add(self.file_path)
1673 with self.taropen(tmpname) as tobj:
1674 names = tobj.getnames()
1679 with tarfile.open(pathlib.Path(tmpname), self.mode) as tobj:
1680 self.assertIsInstance(tobj.name, str)
1681 self.assertEqual(tobj.name, os.path.abspath(tmpname))
1682 tobj.add(pathlib.Path(self.file_path))
1683 names = tobj.getnames()
1687 with self.taropen(tmpname) as tobj:
1688 names = tobj.getnames()
1693 with self.taropen(pathlib.Path(tmpname), "x") as tobj:
1694 self.assertIsInstance(tobj.name, str)
1695 self.assertEqual(tobj.name, os.path.abspath(tmpname))
1696 tobj.add(pathlib.Path(self.file_path))
1697 names = tobj.getnames()
1701 with self.taropen(tmpname) as tobj:
1702 names = tobj.getnames()