[pypy-commit] pypy py3k: maintain AssertionError.__doc__

pjenvey noreply at buildbot.pypy.org
Sat May 4 03:47:01 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63842:5ffc21d95e86
Date: 2013-05-03 18:41 -0700
http://bitbucket.org/pypy/pypy/changeset/5ffc21d95e86/

Log:	maintain AssertionError.__doc__

diff --git a/pypy/tool/pytest/appsupport.py b/pypy/tool/pytest/appsupport.py
--- a/pypy/tool/pytest/appsupport.py
+++ b/pypy/tool/pytest/appsupport.py
@@ -184,7 +184,8 @@
                                             space.wrap('AssertionError'))
     w_metaclass = space.type(w_BuiltinAssertionError)
     w_init = space.wrap(gateway.interp2app_temp(my_init))
-    w_dict = space.newdict()
+    w_dict = space.getattr(w_BuiltinAssertionError, space.wrap('__dict__'))
+    w_dict = space.call_method(w_dict, 'copy')
     space.setitem(w_dict, space.wrap('__init__'), w_init)
     return space.call_function(w_metaclass,
                                space.wrap('AssertionError'),


More information about the pypy-commit mailing list