[pypy-svn] rev 635 - pypy/trunk/src/pypy/objspace

mwh at codespeak.net mwh at codespeak.net
Wed May 28 18:19:30 CEST 2003


Author: mwh
Date: Wed May 28 18:19:30 2003
New Revision: 635

Modified:
   pypy/trunk/src/pypy/objspace/trivial.py
Log:
make test_objspace work with trivial object space


Modified: pypy/trunk/src/pypy/objspace/trivial.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/trivial.py	(original)
+++ pypy/trunk/src/pypy/objspace/trivial.py	Wed May 28 18:19:30 2003
@@ -199,7 +199,10 @@
         return nufun(self, code, globals, defaultarguments, closure)
 
     def newstring(self, asciilist):
-        return ''.join([chr(ascii) for ascii in asciilist])
+        try:
+            return ''.join([chr(ascii) for ascii in asciilist])
+        except:
+            raise OperationError(*sys.exc_info()[:2])            
 
     def call(self, callable, args, kwds):
         if isinstance(callable, types.ClassType):


More information about the Pypy-commit mailing list