Lines Matching refs:TEMPDIR
33 TEMPDIR = os.path.abspath(support.TESTFN) + "-tardir" variable
34 tarextdir = TEMPDIR + '-extract-test'
36 gzipname = os.path.join(TEMPDIR, "testtar.tar.gz")
37 bz2name = os.path.join(TEMPDIR, "testtar.tar.bz2")
38 xzname = os.path.join(TEMPDIR, "testtar.tar.xz")
39 tmpname = os.path.join(TEMPDIR, "tmp.tar")
40 dotlessname = os.path.join(TEMPDIR, "testtar")
106 self.tar.extract("ustar/regtype", TEMPDIR)
108 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1:
124 self.tar.extract("ustar/regtype", TEMPDIR)
126 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1:
134 self.tar.extract("ustar/regtype", TEMPDIR)
135 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj:
427 tar.extract(t, TEMPDIR)
582 tar.extract("ustar/regtype", TEMPDIR)
583 self.addCleanup(support.unlink, os.path.join(TEMPDIR, "ustar/regtype"))
585 tar.extract("ustar/lnktype", TEMPDIR)
586 self.addCleanup(support.unlink, os.path.join(TEMPDIR, "ustar/lnktype"))
587 with open(os.path.join(TEMPDIR, "ustar/lnktype"), "rb") as f:
591 tar.extract("ustar/symtype", TEMPDIR)
592 self.addCleanup(support.unlink, os.path.join(TEMPDIR, "ustar/symtype"))
593 with open(os.path.join(TEMPDIR, "ustar/symtype"), "rb") as f:
601 DIR = os.path.join(TEMPDIR, "extractall")
629 DIR = os.path.join(TEMPDIR, "extractdir")
643 DIR = pathlib.Path(TEMPDIR) / "extractall"
654 DIR = pathlib.Path(TEMPDIR) / "extractall"
666 empty = os.path.join(TEMPDIR, "empty")
989 self.tar.extract(name, TEMPDIR)
990 filename = os.path.join(TEMPDIR, name)
1022 name = os.path.join(TEMPDIR, "sparse-test")
1137 path = os.path.join(TEMPDIR, "file")
1150 path = os.path.join(TEMPDIR, "file")
1164 path = os.path.join(TEMPDIR, "directory")
1179 path = os.path.join(TEMPDIR, "directory")
1202 path = pathlib.Path(TEMPDIR) / "file"
1214 link = os.path.join(TEMPDIR, "link")
1215 target = os.path.join(TEMPDIR, "link_target")
1237 path = os.path.join(TEMPDIR, "symlink")
1260 with support.change_cwd(TEMPDIR):
1268 tempdir = os.path.join(TEMPDIR, "filter")
1310 foo = os.path.join(TEMPDIR, "foo")
1339 tempdir = os.path.join(TEMPDIR, "testsymlinks")
1340 temparchive = os.path.join(TEMPDIR, "testsymlinks.tar")
1388 with support.change_cwd(TEMPDIR):
1577 tempdir = os.path.join(TEMPDIR, "device_header_test")
1621 file_path = os.path.join(TEMPDIR, "spameggs42")
1732 self.foo = os.path.join(TEMPDIR, "foo")
1733 self.bar = os.path.join(TEMPDIR, "bar")
2418 tar_name = os.path.join(TEMPDIR, ".testtar")
2547 self.tar.extract(name, TEMPDIR)
2548 with open(os.path.join(TEMPDIR, name), "rb") as f:
2679 tarfl.extract(filename_1, TEMPDIR, numeric_owner=True)
2680 tarfl.extract(filename_2 , TEMPDIR, numeric_owner=True)
2683 f_filename_1 = os.path.join(TEMPDIR, filename_1)
2684 f_filename_2 = os.path.join(TEMPDIR, filename_2)
2698 tarfl.extractall(TEMPDIR, numeric_owner=True)
2701 f_filename_1 = os.path.join(TEMPDIR, filename_1)
2702 f_dirname_1 = os.path.join(TEMPDIR, dirname_1)
2703 f_filename_2 = os.path.join(TEMPDIR, filename_2)
2723 tarfl.extract(filename_1, TEMPDIR, numeric_owner=False)
2726 f_filename_1 = os.path.join(TEMPDIR, filename_1)
2734 tarfl.extract, filename_1, TEMPDIR, False, True)
2738 support.unlink(TEMPDIR)
2739 os.makedirs(TEMPDIR)
2755 if os.path.exists(TEMPDIR):
2756 support.rmtree(TEMPDIR)