[pypy-svn] r74286 - in pypy/branch/py12/pypy: module/_demo/test tool/test

hpk at codespeak.net hpk at codespeak.net
Fri Apr 30 16:45:09 CEST 2010


Author: hpk
Date: Fri Apr 30 16:45:08 2010
New Revision: 74286

Added:
   pypy/branch/py12/pypy/module/_demo/test/__init__.py
Modified:
   pypy/branch/py12/pypy/tool/test/test_pytestsupport.py
Log:
fix missing init and wrong reinterpret call


Added: pypy/branch/py12/pypy/module/_demo/test/__init__.py
==============================================================================
--- (empty file)
+++ pypy/branch/py12/pypy/module/_demo/test/__init__.py	Fri Apr 30 16:45:08 2010
@@ -0,0 +1 @@
+#

Modified: pypy/branch/py12/pypy/tool/test/test_pytestsupport.py
==============================================================================
--- pypy/branch/py12/pypy/tool/test/test_pytestsupport.py	(original)
+++ pypy/branch/py12/pypy/tool/test/test_pytestsupport.py	Fri Apr 30 16:45:08 2010
@@ -22,8 +22,8 @@
     co = PyCode._from_code(space, somefunc.func_code)
     pyframe = PyFrame(space, co, space.newdict(), None)
     runner = AppFrame(space, pyframe)
-    py.code.reinterpret_old("f = lambda x: x+1", runner, should_fail=False)
-    msg = py.code.reinterpret_old("assert isinstance(f(2), float)", runner)
+    py.code._reinterpret_old("f = lambda x: x+1", runner, should_fail=False)
+    msg = py.code._reinterpret_old("assert isinstance(f(2), float)", runner)
     assert msg.startswith("assert isinstance(3, float)\n"
                           " +  where 3 = ")
 



More information about the Pypy-commit mailing list