mirror of
https://github.com/python/cpython
synced 2024-09-20 00:01:58 +00:00
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:
parent
cd494adc3b
commit
43e559a155
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue