[pypy-svn] r77392 - pypy/branch/fast-forward/pypy

afa at codespeak.net afa at codespeak.net
Sun Sep 26 22:22:39 CEST 2010


Author: afa
Date: Sun Sep 26 22:22:38 2010
New Revision: 77392

Modified:
   pypy/branch/fast-forward/pypy/conftest.py
Log:
Fill the TinyObjSpace with a few builtin types.
This fixes AppDirect tests in test_newformat.py.


Modified: pypy/branch/fast-forward/pypy/conftest.py
==============================================================================
--- pypy/branch/fast-forward/pypy/conftest.py	(original)
+++ pypy/branch/fast-forward/pypy/conftest.py	Sun Sep 26 22:22:38 2010
@@ -132,6 +132,10 @@
                 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'):
+            setattr(self, 'w_' + name, eval(name))
+        
+
     def appexec(self, args, body):
         body = body.lstrip()
         assert body.startswith('(')



More information about the Pypy-commit mailing list