Comment #15 on issue 1026 by renato.c...@gmail.com: pypy doesn't run sympy
http://code.google.com/p/sympy/issues/detail?id=1026

I investigated a bit the exception in test_pickling, it's triggered by `BasicMeta("test")` and `BasicType("test")`. It looks like

class A(type): pass
A("test")

works (gives <type 'str'>) in CPython but not in pypy (TypeError raised). Although `type("test")` works fine in pypy, subclasses don't. There actually are 2 different calls for type (documented in http://docs.python.org/library/functions.html#type), and it looks like subclasses of type in pypy accept only the longer form. I couldn't find any documentation of this, though. It might be caused by http://codespeak.net/pypy/dist/pypy/doc/cpython_differences.html#subclasses-of-built-in-types but I'm just guessing here.

Anyway, that behavior is not used (or at least not tested) anywhere else in sympy (a rgrep search for BasicType and BasicMeta didn't turn anything suspicious), so the exception is pretty harmless. For me we could just drop those two tests in that case.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to