# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1333486085 25200
# Node ID b5286c566dbd930ed511f7f71718088366c6269b
# Parent  7d84a793c1e5aca967f3c22a19ea5c10a9968367
Do not create the directory SAGE_TESTDIR/tmp/
because all doctesting actually takes place in
SAGE_TESTDIR: the subdirectory tmp is not used.

diff --git a/sage-test b/sage-test
--- a/sage-test
+++ b/sage-test
@@ -32,11 +32,11 @@ except KeyError:
 # tempfile.gettempdir()?
 if 'SAGE_TESTDIR' not in os.environ:
     os.environ['SAGE_TESTDIR'] = os.path.join(SAGE_ROOT, "tmp")
-TMP = os.path.join(os.environ['SAGE_TESTDIR'], "tmp")
+SAGE_TESTDIR = os.environ['SAGE_TESTDIR']
 try:
-    os.makedirs(TMP)
+    os.makedirs(SAGE_TESTDIR)
 except OSError:
-    if not os.path.isdir(TMP):
+    if not os.path.isdir(SAGE_TESTDIR):
         raise
 
 def sage_test_command(f):
@@ -88,7 +88,6 @@ def test(F, cmd):
         failed.append(sage_test_command(F))
     elif err != 0:
         failed.append(sage_test_command(F))
-    os.system("mv -f __test* %s 2>/dev/null"%(TMP))
     t = time.time() - t
     print "\t [%.1f s]" % t
     if XML_RESULTS:
