From: Brett Cannon Date: Thu, 12 Jun 2003 19:16:58 +0000 (+0000) Subject: When calling tarname with an argument (and thus not use testtar.tar) return a X-Git-Tag: v2.3c1~474 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43e559a15588dd1d8713734cd3d9476fde2e92b7;p=python 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. --- diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 682d0d8981..9d40ace8c3 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):