[pypy-svn] r10372 - pypy/branch/pypy-normalize-exception/tool
arigo at codespeak.net
arigo at codespeak.net
Wed Apr 6 20:31:15 CEST 2005
Author: arigo
Date: Wed Apr 6 20:31:14 2005
New Revision: 10372
Modified:
pypy/branch/pypy-normalize-exception/tool/pytestsupport.py
Log:
the interp-level 'raise' logic doesn't like our hacked AssertionError which
pretends to live in the __builtin__ module...
Modified: pypy/branch/pypy-normalize-exception/tool/pytestsupport.py
==============================================================================
--- pypy/branch/pypy-normalize-exception/tool/pytestsupport.py (original)
+++ pypy/branch/pypy-normalize-exception/tool/pytestsupport.py Wed Apr 6 20:31:14 2005
@@ -118,6 +118,7 @@
gateway.Arguments]))
w_dict = space.newdict([])
space.setitem(w_dict, space.wrap('__init__'), w_init)
+ space.setitem(w_dict, space.wrap('__module__'), space.wrap('exceptions'))
return space.call_function(w_metaclass,
space.wrap('AssertionError'),
space.newtuple([w_BuiltinAssertionError]),
More information about the Pypy-commit
mailing list