On Dec 22, 6:49 pm, Nick Alexander <[EMAIL PROTECTED]> wrote:
> Hmm, this is just quote inversion. Sometimes I hate python :)
Robert fixed the issue by changing the expected to the new output of
the doctests. You should speak up if you consider that behavior
incorrect. I assume it had something to do with the single patch for
the preparser, but I didn't look at it.
Off to a party,
back in about 6 hours or so if it is fun :)
Cheers,
Michael
> Nick
>
> On 22-Dec-07, at 9:46 AM, Jaap Spies wrote:
>
>
>
> > Robert Miller wrote:
> >> is here:
>
> >>http://sage.math.washington.edu/home/rlmill/sage-2.9.1.alpha3.tar
>
> > Hi Robert,
>
> > On Fedora 7, 32 bits:
>
> > sage -t devel/sage-main/sage/misc/preparser.py
> > **********************************************************************
> > File "preparser.py", line 472:
> > sage: preparse("ZZ.<x> = ZZ['x']")
> > Expected:
> > 'ZZ = ZZ["x"]; (x,) = ZZ._first_ngens(Integer(1))'
> > Got:
> > "ZZ = ZZ['x']; (x,) = ZZ._first_ngens(Integer(1))"
> > **********************************************************************
> > File "preparser.py", line 474:
> > sage: preparse("ZZ.<x> = ZZ['y']")
> > Expected:
> > 'ZZ = ZZ["x"]; (x,) = ZZ._first_ngens(Integer(1))'
> > Got:
> > "ZZ = ZZ['y']; (x,) = ZZ._first_ngens(Integer(1))"
> > **********************************************************************
> > File "preparser.py", line 476:
> > sage: preparse("ZZ.<x,y> = ZZ[]")
> > Expected:
> > 'ZZ = ZZ["x, y"]; (x, y,) = ZZ._first_ngens(Integer(2))'
> > Got:
> > "ZZ = ZZ['x, y']; (x, y,) = ZZ._first_ngens(Integer(2))"
> > **********************************************************************
> > File "preparser.py", line 478:
> > sage: preparse("ZZ.<x,y> = ZZ['u,v']")
> > Expected:
> > 'ZZ = ZZ["x, y"]; (x, y,) = ZZ._first_ngens(Integer(2))'
> > Got:
> > "ZZ = ZZ['u,v']; (x, y,) = ZZ._first_ngens(Integer(2))"
> > **********************************************************************
> > File "preparser.py", line 480:
> > sage: preparse("ZZ.<x> = QQ[2^(1/3)]")
> > Expected:
> > 'ZZ = QQ["x"]; (x,) = ZZ._first_ngens(Integer(1))'
> > Got:
> > 'ZZ = QQ[Integer(2)**(Integer(1)/Integer(3))]; (x,) =
> > ZZ._first_ngens(Integer(1))'
> > **********************************************************************
> > 1 items had failures:
> > 5 of 6 in __main__.example_6
> > ***Test Failed*** 5 failures.
> > For whitespace errors, see the file .doctest_preparser.py
> > [3.4 s]
>
> > Jaap
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---