From 43e559a15588dd1d8713734cd3d9476fde2e92b7 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 12 Jun 2003 19:16:58 +0000 Subject: 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. --- Lib/test/test_tarfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12