django 1.5 is not compatible with pypy 1.9 because of django.test._doctest
|Reported by:||Mikhail Korobov||Owned by:||Aymeric Augustin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Latest released pypy (1.9) doesn't provide
__globals__ attribute and this attribute was introduced in process of making django.test._doctest Python 3.x compatible in this commit: https://github.com/django/django/commit/f1d5dc81ac37fe9a7c7ca860900ee6a16150bb09. It causes tests (of external django apps) to fail when executed under pypy 1.9 with django 1.5 (with an unhelpful
AttributeError: 'function' object has no attribute '__globals__' error without a stack trace).
I think there should be a fallback to func_globals if
__globals__ is not available.
Change History (12)
comment:6 Changed 4 years ago by
|Owner:||changed from nobody to Aymeric Augustin|
|Status:||new → assigned|