[pypy-svn] r64957 - pypy/branch/pyjitpl5/pypy/jit/backend/test

fijal at codespeak.net fijal at codespeak.net
Fri May 1 21:55:43 CEST 2009


Author: fijal
Date: Fri May  1 21:55:31 2009
New Revision: 64957

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py
Log:
I think this assert was here before. I'm not sure though, assert
that op is actually the same as expected


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py	Fri May  1 21:55:31 2009
@@ -335,6 +335,8 @@
         cpu.set_future_value_int(i, v.value)
     op = cpu.execute_operations(loop)
     assert op.args == endvars
+    if builder.should_fail_by is not None:
+        assert op is builder.should_fail_by
 
     for i, v in enumerate(endvars):
         value = cpu.get_latest_value_int(i)



More information about the Pypy-commit mailing list