[pypy-svn] pypy fast-forward: Fix the test: w_type.w_doc should be the same object as in the type __dict__.

amauryfa commits-noreply at bitbucket.org
Thu Jan 13 19:48:37 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40647:e92d63b5e8b2
Date: 2011-01-13 13:27 +0100
http://bitbucket.org/pypy/pypy/changeset/e92d63b5e8b2/

Log:	Fix the test: w_type.w_doc should be the same object as in the type
	__dict__.

diff --git a/pypy/objspace/std/stdtypedef.py b/pypy/objspace/std/stdtypedef.py
--- a/pypy/objspace/std/stdtypedef.py
+++ b/pypy/objspace/std/stdtypedef.py
@@ -89,7 +89,7 @@
             overridetypedef = typedef
         w_type = W_TypeObject(space, typedef.name, bases_w, dict_w,
                               overridetypedef=overridetypedef)
-        if isinstance(typedef.doc, str):
+        if typedef is not overridetypedef:
             w_type.w_doc = space.wrap(typedef.doc)
         w_type.lazyloaders = lazyloaders
         return w_type


More information about the Pypy-commit mailing list