#15749: sage -t --new doesn't work when not in SAGE_ROOT
-----------------------+-------------------------------------
  Reporter:  roed      |             Type:  defect
    Status:  new       |         Priority:  major
 Milestone:  sage-6.1  |        Component:  doctest framework
Resolution:            |  Report Upstream:  N/A
-----------------------+-------------------------------------
 {{{
 $ sage -t --new
 Running doctests with ID 2014-01-27-21-40-52-1930c2ec.
 Doctesting files changed since last git commit
 Doctesting 1 file.
 sage -t src/sage/doctest/control.py
     IOError in doctesting framework
 **********************************************************************
 Traceback (most recent call last):
   File "/Users/roed/sage/sage-6.0/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 2086, in __call__
     doctests, extras = self.source.create_doctests(sage_namespace)
   File "/Users/roed/sage/sage-6.0/local/lib/python2.7/site-
 packages/sage/doctest/sources.py", line 627, in create_doctests
     raise IOError(errno.ENOENT, "File does not exist", self.path)
 IOError: [Errno 2] File does not exist: 'src/sage/doctest/control.py'

 ----------------------------------------------------------------------
 sage -t src/sage/doctest/control.py  # IOError in doctesting framework
 ----------------------------------------------------------------------
 Total time for all tests: 0.2 seconds
     cpu time: 0.0 seconds
     cumulative wall time: 0.0 seconds
 }}}

 The solution is a simple fix in `src/sage/doctest/control.py`.

--
Ticket URL: <http://trac.sagemath.org/ticket/15749>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to