#10539: sage0.py interface ouputs inconsistent strings.
--------------------------+-------------------------------------------------
   Reporter:  mderickx    |          Owner:  was                           
       Type:  defect      |         Status:  needs_work                    
   Priority:  major       |      Milestone:  sage-duplicate/invalid/wontfix
  Component:  interfaces  |       Keywords:                                
Work_issues:              |       Upstream:  N/A                           
   Reviewer:              |         Author:                                
     Merged:              |   Dependencies:                                
--------------------------+-------------------------------------------------
Description changed by jdemeyer:

Old description:

> As discussed in #10528 the sage0 interface doesn't always return exactly
> the same thing.
>
> I get
>
> {{{
> mderickx@sage:/levi/scratch/robertwb/buildbot/sage-4.6$ ./sage -t devel
> /sage-main/sage/interfaces/sage0.py
> sage -t  "devel/sage-main/sage/interfaces/sage0.py"
>          [9.8 s]
>
> ----------------------------------------------------------------------
> All tests passed!
> Total time for all tests: 9.8 seconds
> }}}
>
> while he get's
>
> {{{
> robertwb@sage:/levi/scratch/robertwb/buildbot/sage-4.6$ ./sage -t devel
> /sage-main/sage/interfaces/sage0.py
> sage -t  "devel/sage-main/sage/interfaces/sage0.py"
> **********************************************************************
> File "/levi/scratch/robertwb/buildbot/sage-4.6/devel/sage-
> main/sage/interfaces/sage0.py", line 364:
>     sage: sage0.get('x')
> Expected:
>     "...NameError: name 'x' is not defined"
> Got:
> '------------------------------------------------------------\nTraceback
> (most recent call last):\n  File "<ipython console>", line 1, in
> <module>\nNameError: name \'x\' is not defined'
> **********************************************************************
> 1 items had failures:
>    1 of   6 in __main__.example_13
> ***Test Failed*** 1 failures.
> For whitespace errors, see the file
> /home/robertwb/.sage//tmp/.doctest_sage0.py
>          [9.2 s]
>
> ----------------------------------------------------------------------
> The following tests failed:
>

>         sage -t  "devel/sage-main/sage/interfaces/sage0.py"
> Total time for all tests: 9.2 seconds
> }}}

New description:

 The `sage0` interface doesn't always return exactly the same thing.
 At #10528 the apparent problem is solved by making the doctests less
 rigid.  But the real problem is not fixed there. With the real problem
 being that the piece of code:
 {{{
 sage: sage0.clear('x')
 sage: sage0.get('x')
 }}}
 returns
 {{{
 "...NameError: name 'x' is not defined"
 }}}
 in some setups and
 {{{
 '...NameError: name \'x\' is not defined'
 }}}
 in other setups.

--

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