Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r67824:66bf553d6439
Date: 2013-11-03 22:59 -0800
http://bitbucket.org/pypy/pypy/changeset/66bf553d6439/
Log: Make test_ztranslation fail on space.wrap(complex(...))
diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -176,7 +176,7 @@
self._see_interp2app(x)
if isinstance(x, GetSetProperty):
self._see_getsetproperty(x)
- if isinstance(x, r_singlefloat):
+ if isinstance(x, (r_singlefloat, complex)):
self._wrap_not_rpython(x)
if isinstance(x, list):
if x == []: # special case: it is used e.g. in sys/__init__.py
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit