On Sun, Aug 9, 2009 at 2:19 AM, Minh Nguyen <nguyenmi...@gmail.com> wrote:

>
> Hi Georg,
>
> On Sun, Aug 9, 2009 at 7:09 PM, gsw<georgswe...@googlemail.com> wrote:
> >
> > Hi,
> >
> > on Mac(Intel) OS X 10.4.11 (XCode 2.5 / gcc 4.0.1 build "5370"), Sage
> > 4.1.1.rc2 builds fine.
> > However, there are two (reproducible) doctest failures, one known one
> > and one I never saw before. The known one is:
> >
> > sage -t -long "devel/sage/sage/symbolic/expression.pyx"
> > **********************************************************************
> > File "/Users/Shared/sage/sage-4.1.1.rc2/devel/sage/sage/symbolic/
> > expression.pyx", line 2515:
> >    sage: ((x+y)^a).match(w0^w1)
> > Expected:
> >    {$1: a, $0: x + y}
> > Got:
> >    {$0: x + y, $1: a}
> > **********************************************************************
> > File "/Users/Shared/sage/sage-4.1.1.rc2/devel/sage/sage/symbolic/
> > expression.pyx", line 2521:
> >    sage: ((a+b)*(a+c)).match((a+w0)*(a+w1))
> > Expected:
> >    {$1: c, $0: b}
> > Got:
> >    {$0: b, $1: c}
> > **********************************************************************
> > File "/Users/Shared/sage/sage-4.1.1.rc2/devel/sage/sage/symbolic/
> > expression.pyx", line 2527:
> >    sage: (a*(x+y)+a*z+b).match(a*w0+w1)
> > Expected:
> >    {$1: a*z + b, $0: x + y}
> > Got:
> >    {$0: x + y, $1: a*z + b}
> > **********************************************************************
> > 1 items had failures:
> >   3 of  24 in __main__.example_62
> > ***Test Failed*** 3 failures.
> > For whitespace errors, see the file /Users/Shared/sage/sage-4.1.1.rc2/
> > tmp/.doctest_expression.py
>


The above doctest should be changed so they don't depend on random hashing,
e.g., change the dicts to lists of sorted tuples.


>
> Yes, I consider the above doctest failures to be "harmless". My main
> reason is that the key-value pairs of a Python dictionary form an
> unordered (but non-random) set. So we cannot expect to always get the
> elements of a dictionary in the same position.
>
>
> > And the new one is:
> >
>

Did you retry this one -- it looks like a "too heavy load" issue or
something (which still counts as a failure, since that should be accounted
for by the test).


>
> > sage -t  "devel/sage/sage/server/simple/twist.py"
> > **********************************************************************
> > File "/Users/Shared/sage/sage-4.1.1.rc2/devel/sage/sage/server/simple/
> > twist.py", line 51:
> >    sage: print get_url('http://localhost:%s/simple/compute?session=
> > %s&code=2*2' % (port, session))
> > Expected:
> >    {
> >    "status": "done",
> >    "files": [],
> >    "cell_id": 1
> >    }
> >    ___S_A_G_E___
> >    4
> > Got:
> >    {
> >    "status": "computing",
> >    "files": [],
> >    "cell_id": 1
> >    }
> >    ___S_A_G_E___
> >    <BLANKLINE>
> > **********************************************************************
> > File "/Users/Shared/sage/sage-4.1.1.rc2/devel/sage/sage/server/simple/
> > twist.py", line 95:
> >    sage: print get_url('http://localhost:%s/simple/compute?session=
> > %s&code=%s' % (port, session, urllib.quote(code)))
> > Expected:
> >    {
> >    "status": "done",
> >    "files": ["a.txt"],
> >    "cell_id": 3
> >    }
> >    ___S_A_G_E___
> > Got:
> >    {
> >    "status": "done",
> >    "files": [],
> >    "cell_id": 3
> >    }
> >    ___S_A_G_E___
> >    <BLANKLINE>
> >    Traceback (most recent call last):    h = open('a.txt', 'w');
> > h.write('test'); h.close()
> >    NameError: name 'os' is not defined
> >    THERE WAS AN ERROR LOADING THE SAGE LIBRARIES.  Try starting Sage
> > from the command line to see what the error is.
> > **********************************************************************
> > File "/Users/Shared/sage/sage-4.1.1.rc2/devel/sage/sage/server/simple/
> > twist.py", line 103:
> >    sage: print get_url('http://localhost:%s/simple/file?session=
> > %s&cell=3&file=a.txt' % (port, session))
> > Expected:
> >    test
> > Got:
> >    No such file a.txt in cell 3.
> > **********************************************************************
> > 1 items had failures:
> >   3 of  24 in __main__.example_0
> > ***Test Failed*** 3 failures.
> > For whitespace errors, see the file /Users/Shared/sage/sage-4.1.1.rc2/
> > tmp/.doctest_twist.py
> >         [22.9 s]
> > exit code: 1024
>
> These doctest failures have been reported in relation to Sage
> 4.1.1.rc1. See the following sage-release thread:
>
>
> http://groups.google.com/group/sage-release/browse_thread/thread/37d851338ed69c6a
>
> --
> Regards
> Minh Van Nguyen
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to