Comment #1 on issue 2041 by smichr: Doctest failures in Python 2.6.6
http://code.google.com/p/sympy/issues/detail?id=2041

There are two potential ways to fix this:

1) use my equal function (or equivalent) like this:
    >>> assert equal(
    ... e.match(p**q),
    ... {p_: x + y, q_: x + y})

By using the assertion you don't have to have a True echoed from the test.

2) patch doctest (or our version of it) so it handles the unsorted dictionary like the unsorted set and just checks for equivalence by sorting the contents

a) automatically or
b) with a directive like #doctest: NORMALIZE_ORDER.

I think 2a is the way to go.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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/sympy-issues?hl=en.

Reply via email to