#13195: import shutil in sage-ptest
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: leif
Type: defect | Status: positive_review
Priority: blocker | Milestone: sage-5.2
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by jhpalmieri):
For what it's worth, I tested it by adding a line:
{{{
#!diff
diff --git a/sage-ptest b/sage-ptest
--- a/sage-ptest
+++ b/sage-ptest
@@ -388,6 +388,7 @@ for gr in range(0,numglobaliteration):
# Should TMP be a subdirectory of tempfile.gettempdir() rather than
SAGE_TE
TMP = os.path.join(SAGE_TESTDIR, '%s-%s' % (HOSTNAME, os.getpid()))
TMP = os.path.abspath(TMP)
+ os.makedirs(TMP)
try:
os.makedirs(TMP)
except OSError:
}}}
Naturally, this resulted in an error before the patch, success after the
patch.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13195#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.