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 682d0d8..9d40ace 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -30,7 +30,7 @@
 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):