Author: mattip <[email protected]>
Branch:
Changeset: r59382:fb71ab1cba90
Date: 2012-12-10 20:36 +0200
http://bitbucket.org/pypy/pypy/changeset/fb71ab1cba90/
Log: flesh out missing attributes of TinyObjSpace for -A tests
diff --git a/pypy/tool/pytest/objspace.py b/pypy/tool/pytest/objspace.py
--- a/pypy/tool/pytest/objspace.py
+++ b/pypy/tool/pytest/objspace.py
@@ -66,8 +66,11 @@
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()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit