Author: mattip <[email protected]>
Branch: 
Changeset: r59383:68d481ef4ccb
Date: 2012-12-10 21:35 +0200
http://bitbucket.org/pypy/pypy/changeset/68d481ef4ccb/

Log:    cleanup (@Alex_Gaynor, amaury)

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
@@ -69,8 +69,8 @@
         for name in ('int', 'long', 'str', 'unicode', 'None', 'ValueError',
                 'OverflowError'):
             setattr(self, 'w_' + name, eval(name))
-        self.builtin = self
-        self.__import__ = __import__
+        import __builtin__ as __builtin__
+        self.builtin = __builtin__
 
     def appexec(self, args, body):
         body = body.lstrip()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to