[pypy-svn] r63043 - pypy/trunk/pypy/objspace/std
afa at codespeak.net
afa at codespeak.net
Wed Mar 18 17:21:13 CET 2009
Author: afa
Date: Wed Mar 18 17:21:13 2009
New Revision: 63043
Modified:
pypy/trunk/pypy/objspace/std/fake.py
Log:
Give a better assertion message when an object cannot be faked on top of py.py
(because of a missing --withmod-_socket, for example)
Modified: pypy/trunk/pypy/objspace/std/fake.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/fake.py (original)
+++ pypy/trunk/pypy/objspace/std/fake.py Wed Mar 18 17:21:13 2009
@@ -105,7 +105,7 @@
baseobjspace.W_Root,
argument.Arguments])
if cpy_type.__base__ is not object:
- assert cpy_type.__base__ is basestring
+ assert cpy_type.__base__ is basestring, cpy_type
from pypy.objspace.std.basestringtype import basestring_typedef
base = basestring_typedef
else:
More information about the Pypy-commit
mailing list