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")
102 self.tar.extract("ustar/regtype", TEMPDIR)
104 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1:
120 self.tar.extract("ustar/regtype", TEMPDIR)
122 with open(os.path.join(TEMPDIR, "ustar/regtype"), "r") as fobj1:
130 self.tar.extract("ustar/regtype", TEMPDIR)
131 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj:
393 tar.extract(t, TEMPDIR)
542 tar.extract("ustar/regtype", TEMPDIR)
543 self.addCleanup(support.unlink, os.path.join(TEMPDIR, "ustar/regtype"))
545 tar.extract("ustar/lnktype", TEMPDIR)
546 self.addCleanup(support.unlink, os.path.join(TEMPDIR, "ustar/lnktype"))
547 with open(os.path.join(TEMPDIR, "ustar/lnktype"), "rb") as f:
551 tar.extract("ustar/symtype", TEMPDIR)
552 self.addCleanup(support.unlink, os.path.join(TEMPDIR, "ustar/symtype"))
553 with open(os.path.join(TEMPDIR, "ustar/symtype"), "rb") as f:
561 DIR = os.path.join(TEMPDIR, "extractall")
589 DIR = os.path.join(TEMPDIR, "extractdir")
603 DIR = pathlib.Path(TEMPDIR) / "extractall"
614 DIR = pathlib.Path(TEMPDIR) / "extractall"
626 empty = os.path.join(TEMPDIR, "empty")
949 self.tar.extract(name, TEMPDIR)
950 filename = os.path.join(TEMPDIR, name)
982 name = os.path.join(TEMPDIR, "sparse-test")
1098 path = os.path.join(TEMPDIR, "file")
1111 path = os.path.join(TEMPDIR, "file")
1125 path = os.path.join(TEMPDIR, "directory")
1140 path = os.path.join(TEMPDIR, "directory")
1163 path = pathlib.Path(TEMPDIR) / "file"
1175 link = os.path.join(TEMPDIR, "link")
1176 target = os.path.join(TEMPDIR, "link_target")
1198 path = os.path.join(TEMPDIR, "symlink")
1221 with support.change_cwd(TEMPDIR):
1229 tempdir = os.path.join(TEMPDIR, "filter")
1271 foo = os.path.join(TEMPDIR, "foo")
1300 tempdir = os.path.join(TEMPDIR, "testsymlinks")
1301 temparchive = os.path.join(TEMPDIR, "testsymlinks.tar")
1352 with support.change_cwd(TEMPDIR):
1527 file_path = os.path.join(TEMPDIR, "spameggs42")
1638 self.foo = os.path.join(TEMPDIR, "foo")
1639 self.bar = os.path.join(TEMPDIR, "bar")
2321 tar_name = os.path.join(TEMPDIR, ".testtar")
2449 self.tar.extract(name, TEMPDIR)
2450 with open(os.path.join(TEMPDIR, name), "rb") as f:
2581 tarfl.extract(filename_1, TEMPDIR, numeric_owner=True)
2582 tarfl.extract(filename_2 , TEMPDIR, numeric_owner=True)
2585 f_filename_1 = os.path.join(TEMPDIR, filename_1)
2586 f_filename_2 = os.path.join(TEMPDIR, filename_2)
2600 tarfl.extractall(TEMPDIR, numeric_owner=True)
2603 f_filename_1 = os.path.join(TEMPDIR, filename_1)
2604 f_dirname_1 = os.path.join(TEMPDIR, dirname_1)
2605 f_filename_2 = os.path.join(TEMPDIR, filename_2)
2625 tarfl.extract(filename_1, TEMPDIR, numeric_owner=False)
2628 f_filename_1 = os.path.join(TEMPDIR, filename_1)
2636 tarfl.extract, filename_1, TEMPDIR, False, True)
2640 support.unlink(TEMPDIR)
2641 os.makedirs(TEMPDIR)
2657 if os.path.exists(TEMPDIR):
2658 support.rmtree(TEMPDIR)