diff options
author | Brett Cannon <bcannon@gmail.com> | 2003-06-12 19:16:58 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2003-06-12 19:16:58 (GMT) |
commit | 43e559a15588dd1d8713734cd3d9476fde2e92b7 (patch) | |
tree | 024a488b2217ad5a7f684fb802d670ecce55f3c8 /Lib | |
parent | cd494adc3b75bff0e79e25b68339989f33f2aac3 (diff) | |
download | cpython-43e559a15588dd1d8713734cd3d9476fde2e92b7.zip cpython-43e559a15588dd1d8713734cd3d9476fde2e92b7.tar.gz cpython-43e559a15588dd1d8713734cd3d9476fde2e92b7.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 682d0d8..9d40ace 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -30,7 +30,7 @@ membercount = 10 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): |