#5922: doctesting sage tree does not work when SAGE_ROOT is a symbolic link
---------------------+------------------------------------------------------
 Reporter:  was      |       Owner:  mabshoff  
     Type:  defect   |      Status:  new       
 Priority:  major    |   Milestone:  sage-3.4.2
Component:  doctest  |    Keywords:            
---------------------+------------------------------------------------------
 If you make a symbolic link to SAGE_ROOT, then doctesting will not work at
 all:

 {{{
 wst...@bsd:~$ ln -s build/sage-3.4.1 xyz
 wst...@bsd:~$ cd xyz
 wst...@bsd:~/xyz$ ls
 0.png                   devel                   ipython
 sage-python             test.sobj
 COPYING.txt             dist                    local
 sage.png                testlong.log
 HISTORY.txt             docs-0.html             makefile
 sage0.png               tmp
 README.txt              examples                sage
 sage1.png               tmp.sws
 data                    install.log             sage-README-osx.txt
 spkg
 wst...@bsd:~/xyz$ ./sage -t
 devel/sage/sage/plot/plot3d/parametric_plot3d.py
 sage -t  "devel/sage/sage/plot/plot3d/parametric_plot3d.py"
   File "./parametric_plot3d.py", line 18
     from devel/sage/sage/plot/plot3d/parametric_plot3d import *
               ^
 SyntaxError: invalid syntax

          [0.8 s]
 exit code: 1024

 }}}

 The reason for this is related to *my* bugfix for testing files outside
 the tree.  Basically, that we're in the tree is not detected correctly in
 the case of symlinks, so the doctest program decides we are not in the
 tree, hence tries to import the function.  This, of course, fails.

 Ideas for solutions:

   1. Use a different command line option for testing outside tree.

   2. Improve detection of whether or not in Sage tree.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5922>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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