Commits

mattip committed fb71ab1

flesh out missing attributes of TinyObjSpace for -A tests

  • Participants
  • Parent commits aa7ecc6

Comments (0)

Files changed (1)

File pypy/tool/pytest/objspace.py

                 py.test.skip("cannot runappdirect test: space needs %s = %s, "\
                     "while pypy-c was built with %s" % (key, value, has))
 
-        for name in ('int', 'long', 'str', 'unicode', 'None'):
+        for name in ('int', 'long', 'str', 'unicode', 'None', 'ValueError',
+                'OverflowError'):
             setattr(self, 'w_' + name, eval(name))
+        self.builtin = self
+        self.__import__ = __import__
 
     def appexec(self, args, body):
         body = body.lstrip()