#7650: Fix sagenb doctesting
------------------------+---------------------------------------------------
   Reporter:  mpatel    |       Owner:  was     
       Type:  defect    |      Status:  new     
   Priority:  major     |   Milestone:  sage-4.3
  Component:  notebook  |    Keywords:          
Work_issues:            |      Author:          
   Upstream:  N/A       |    Reviewer:          
     Merged:            |  
------------------------+---------------------------------------------------

Comment(by mpatel):

 {{{
 #!python
 sage -t -verbose "notebook.py"
 Traceback (most recent call last):
   File "/home/.sage//tmp/.doctest_notebook.py", line 18, in <module>
     from notebook import *
   File "/home/.sage/tmp/notebook.py", line 38, in <module>
     import css          # style
 ImportError: No module named css
          [2.5 s]
 exit code: 1024

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t -verbose "notebook.py"
 Total time for all tests: 2.5 seconds
 }}}

 Adding
 {{{
 #!python
 import sys
 sys.path.append('/home/sage/notebook/sagenb/sagenb')
 sys.path.append('/home/sage/notebook/sagenb/sagenb/notebook')
 }}}
 to the top of `notebook.py` allows testing to proceed.  I'm not sure about
 a real solution.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7650#comment:2>
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.


Reply via email to