#7995: sage-test doesn't handle all of sage-doctest's return values
-------------------------------+--------------------------------------------
 Reporter:  wjp                |         Owner:  tbd                  
     Type:  defect             |        Status:  closed               
 Priority:  major              |     Milestone:  sage-4.3.2           
Component:  doctest            |    Resolution:  fixed                
 Keywords:                     |        Author:  Willem Jan Palenstijn
 Upstream:  N/A                |      Reviewer:  Alex Ghitza          
   Merged:  sage-4.3.2.alpha0  |   Work_issues:                       
-------------------------------+--------------------------------------------

Comment(by ddrake):

 Replying to [comment:12 wjp]:
 > I tested this, and it worked for me, as well as matching what the python
 docs say it does on unix systems. Does it not work on your system?

 No, it doesn't. I'll work on this more, but I know that, on my Ubuntu 9.10
 system, if I ctrl-c while running tests on a bunch of files, it doesn't
 interrupt the whole process. In sage-test, I have this:
 {{{
 print 'finished with %s, err: %s' % (F, err)
 err = err // 256
 print 'finished with %s, err: %s' % (F, err)
 }}}
 and here's what I get:
 {{{
 dr...@sagenb:~/s/sage-4.3.5$ ./sage -t devel/sage/sage/combinat/t*.py
 sage -t  "devel/sage/sage/combinat/tableau.py"
 ^CKeyboardInterrupt -- interrupted after 2.3 seconds!
 finished with devel/sage/sage/combinat/tableau.py, err: 2
 finished with devel/sage/sage/combinat/tableau.py, err: 0
          [2.4 s]
 sage -t  "devel/sage/sage/combinat/tools.py"
 finished with devel/sage/sage/combinat/tools.py, err: 0
 finished with devel/sage/sage/combinat/tools.py, err: 0
          [1.6 s]
 sage -t  "devel/sage/sage/combinat/tuple.py"
 finished with devel/sage/sage/combinat/tuple.py, err: 0
 finished with devel/sage/sage/combinat/tuple.py, err: 0
          [2.2 s]

 ----------------------------------------------------------------------
 All tests passed!
 Total time for all tests: 6.2 seconds
 }}}

 I'm not sure why this isn't working.

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