Lines Matching refs:TEMPDIR
30 TEMPDIR = os.path.abspath(test_support.TESTFN) variable
32 gzipname = os.path.join(TEMPDIR, "testtar.tar.gz")
33 bz2name = os.path.join(TEMPDIR, "testtar.tar.bz2")
34 tmpname = os.path.join(TEMPDIR, "tmp.tar")
62 self.tar.extract("ustar/regtype", TEMPDIR)
64 fobj1 = open(os.path.join(TEMPDIR, "ustar/regtype"), "rU")
65 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") as fobj1:
79 self.tar.extract("ustar/regtype", TEMPDIR)
81 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rU") as fobj1:
89 self.tar.extract("ustar/regtype", TEMPDIR)
90 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj:
319 tar.extract(t, TEMPDIR)
439 tar.extract("ustar/regtype", TEMPDIR)
440 self.addCleanup(os.remove, os.path.join(TEMPDIR, "ustar/regtype"))
442 tar.extract("ustar/lnktype", TEMPDIR)
443 self.addCleanup(os.remove, os.path.join(TEMPDIR, "ustar/lnktype"))
444 with open(os.path.join(TEMPDIR, "ustar/lnktype"), "rb") as f:
448 tar.extract("ustar/symtype", TEMPDIR)
449 self.addCleanup(os.remove, os.path.join(TEMPDIR, "ustar/symtype"))
450 with open(os.path.join(TEMPDIR, "ustar/symtype"), "rb") as f:
460 tar.extractall(TEMPDIR, directories)
462 path = os.path.join(TEMPDIR, tarinfo.name)
474 empty = os.path.join(TEMPDIR, "empty")
828 path = os.path.join(TEMPDIR, "file")
842 path = os.path.join(TEMPDIR, "file")
856 path = os.path.join(TEMPDIR, "directory")
870 link = os.path.join(TEMPDIR, "link")
871 target = os.path.join(TEMPDIR, "link_target")
890 path = os.path.join(TEMPDIR, "symlink")
912 os.chdir(TEMPDIR)
920 tempdir = os.path.join(TEMPDIR, "exclude")
947 tempdir = os.path.join(TEMPDIR, "filter")
985 foo = os.path.join(TEMPDIR, "foo")
1036 with support.change_cwd(TEMPDIR):
1053 tempdir = os.path.join(TEMPDIR, "testsymlinks")
1054 temparchive = os.path.join(TEMPDIR, "testsymlinks.tar")
1083 tempdir = os.path.join(TEMPDIR, "testsymlinks")
1084 temparchive = os.path.join(TEMPDIR, "testsymlinks.tar")
1113 tempdir = os.path.join(TEMPDIR, "testsymlinks")
1114 temparchive = os.path.join(TEMPDIR, "testsymlinks.tar")
1294 self.foo = os.path.join(TEMPDIR, "foo")
1295 self.bar = os.path.join(TEMPDIR, "bar")
1752 self.tar.extract(name, TEMPDIR)
1753 data = open(os.path.join(TEMPDIR, name), "rb").read()
1831 support.unlink(TEMPDIR)
1832 os.makedirs(TEMPDIR)
1901 if os.path.exists(TEMPDIR):
1902 shutil.rmtree(TEMPDIR)