#4072: [with patch, needs review] Fix issue in trait_names in the sage0 
interface
------------------------+---------------------------------------------------
 Reporter:  mhansen     |        Owner:  mhansen   
     Type:  defect      |       Status:  assigned  
 Priority:  minor       |    Milestone:  sage-3.1.2
Component:  interfaces  |   Resolution:            
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by malb):

 I seem to have another (unrelated?) problem which isn't fixed in rc0 +
 this patch:

 {{{
 sage -t  devel/sage/sage/interfaces/sage0.py
 **********************************************************************
 File "/usr/local/sage-3.1.2.rc0/tmp/sage0.py", line 276:
     sage: sage0.eval('2+2')
 Expected:
     '4'
 Got:
     '\x1b[0;31m\x1b[0m4'
 **********************************************************************
 File "/usr/local/sage-3.1.2.rc0/tmp/sage0.py", line 317:
     sage: sage0.get('x')
 Expected:
     "...NameError: name 'x' is not defined"
 Got:
 
"\x1b[0;31m---------------------------------------------------------------------------\x1b[0m\n\x1b[0;31mNameError\x1b[0m
 Traceback (most recent call
 last)\n\n\x1b[0;32m/usr/local/sage-3.1.2.rc0/data/extcode/sage/<ipython
 console>\x1b[0m in
 \x1b[0;36m<module>\x1b[0;34m()\x1b[0m\n\n\x1b[0;31mNameError\x1b[0m: name
 'x' is not defined"
 **********************************************************************
 File "/usr/local/sage-3.1.2.rc0/tmp/sage0.py", line 326:
     sage: sage0._contains('2', 'QQ')
 Expected:
     True
 Got:
     False
 **********************************************************************
 File "/usr/local/sage-3.1.2.rc0/tmp/sage0.py", line 432:
     sage: sage0(4).gcd
 Expected:
     <built-in method gcd of sage.rings.integer.Integer object at 0x...>
 Got:
     <built-in method gcd of sage.rings.integer.Integer object at
 0x33f2d80>
 **********************************************************************
 File "/usr/local/sage-3.1.2.rc0/tmp/sage0.py", line 177:
     sage: s.eval('2+2')
 Expected:
     '4'
 Got:
     '\x1b[0;31m\x1b[0m4'
 **********************************************************************
 5 items had failures:
    1 of   3 in __main__.example_10
    1 of   6 in __main__.example_13
    1 of   3 in __main__.example_14
    1 of   3 in __main__.example_22
    1 of   5 in __main__.example_5
 ***Test Failed*** 5 failures.
 For whitespace errors, see the file
 /usr/local/sage-3.1.2.rc0/tmp/.doctest_sage0.py
          [8.4 s]
 exit code: 1024

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


         sage -t  devel/sage/sage/interfaces/sage0.py
 }}}

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