Hi,

if you want to get many bugreports, here's how. :)

$ git clone git://git.sympy.org/sympy.git
$ cd sympy
$ python
>>> import sympy
>>> sympy.test("sympy/core")
[...]
============ tests finished: 292 passed, 9 xfailed in 1.40 seconds =============
True
>>>


This works in python2.4, python2.5 (there are some failures in
python2.6) and it *doesn't* require py.test, just pure python.

Now try pypy:

$ ../pypy-dist/pypy-c    # compile pypy to C and then to executable
Python 2.4.1 (pypy 1.0.0 build 58853) on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``don't post links to patents
here''
>>>> import sympy
>>>> sympy.test("sympy/core")
[ dozens pages of errors ]


To ease debugging, use bin/test:

$ ../pypy-dist/pypy-c bin/test sympy/core/

and use it like py.test.

Basically, most of them reduce to this problem:

$ python
Python 2.4.5 (#2, Sep 29 2008, 15:31:42)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import Function
>>> f = Function("f")
>>>

$ ../pypy-dist/pypy-c
Python 2.4.1 (pypy 1.0.0 build 58853) on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``things will be nice and stuff''
>>>> from sympy import Function
>>>> f = Function("f")
[boom ...]
    l.append(iter_copy(i))
  File "/home/ondra/repos/sympy/sympy/core/multidimensional.py", line
43, in iter_copy
    l.append(iter_copy(i))
  File "/home/ondra/repos/sympy/sympy/core/multidimensional.py", line
43, in iter_copy
    l.append(iter_copy(i))
  File "/home/ondra/repos/sympy/sympy/core/multidimensional.py", line
42, in iter_copy
    if hasattr(i, "__iter__"):
RuntimeError: internal error: <RuntimeError object at 0xb03b60>
>>>>




Ondrej
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to