#4386: [with patch, need work] Sage 3.1.4: optional doctest failure in
sage/rings/number_field/totallyreal_phc.py
----------------------+-----------------------------------------------------
 Reporter:  mabshoff  |        Owner:  craigcitro
     Type:  defect    |       Status:  assigned  
 Priority:  major     |    Milestone:  sage-3.2  
Component:  doctest   |   Resolution:            
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by mabshoff):

  * summary:  [with patch, needs review] Sage 3.1.4: optional doctest
              failure in
              sage/rings/number_field/totallyreal_phc.py =>
              [with patch, need work] Sage 3.1.4: optional
              doctest failure in
              sage/rings/number_field/totallyreal_phc.py

Comment:

 Better patch, but still some trouble:
 {{{
 sage -t -long -optional
 devel/sage/sage/rings/number_field/totallyreal_phc.py
 **********************************************************************
 File "/scratch/mabshoff/release-
 cycle/sage-3.1.3.final/tmp/totallyreal_phc.py", line 91:
     sage: x, y = __lagrange_bounds_phc(3,2,[8,1,2,0,1]) # optional
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 1228, in
 __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_2[4]>", line 1, in <module>
         x, y =
 
__lagrange_bounds_phc(Integer(3),Integer(2),[Integer(8),Integer(1),Integer(2),Integer(0),Integer(1)])
 # optional###line 91:
     sage: x, y = __lagrange_bounds_phc(3,2,[8,1,2,0,1]) # optional
     ValueError: need more than 0 values to unpack
 **********************************************************************
 File "/scratch/mabshoff/release-
 cycle/sage-3.1.3.final/tmp/totallyreal_phc.py", line 92:
     e: x # optional
 Expected:
     -1.3333333333333299
 Got:
     x
 **********************************************************************
 File "/scratch/mabshoff/release-
 cycle/sage-3.1.3.final/tmp/totallyreal_phc.py", line 94:
     e: y < 0.00000001 # optional
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 1228, in
 __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_2[6]>", line 1, in <module>
         y < RealNumber('0.00000001') # optional###line 94:
     e: y < 0.00000001 # optional
     NameError: name 'y' is not defined
 **********************************************************************
 1 items had failures:
    3 of   8 in __main__.example_2
 ***Test Failed*** 3 failures.
 For whitespace errors, see the file /scratch/mabshoff/release-
 cycle/sage-3.1.3.final/tmp/.doctest_totallyreal_phc.py
          [2.4 s]
 exit code: 1024
 }}}

 Cheers,

 Michael

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