When calling tarname with an argument (and thus not use testtar.tar) return a

path for the file in the temp directory for the platform.
This commit is contained in:
Brett Cannon 2003-06-12 19:16:58 +00:00
parent cd494adc3b
commit 43e559a155

View file

@ -30,7 +30,7 @@ def path(path):
def tarname(comp=""):
if not comp:
return testtar
return "%s%s%s" % (testtar, os.extsep, comp)
return os.path.join(tempdir, "%s%s%s" % (testtar, os.extsep, comp))
def dirname():
if not os.path.exists(tempdir):