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

arigo at codespeak.net arigo at codespeak.net
Wed May 6 14:15:23 CEST 2009


Author: arigo
Date: Wed May  6 14:15:22 2009
New Revision: 65087

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py
Log:
Need to call clear_exception() too.


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py	Wed May  6 14:15:22 2009
@@ -233,6 +233,12 @@
                     assert op is ops[-1]
                 if z != boom:
                     assert self.cpu.get_latest_value_int(0) == z
+                ovferror = self.cpu.get_exception()
+                if ovferror:
+                    assert z == boom
+                    self.cpu.clear_exception()
+                else:
+                    assert z != boom
 
     def test_ovf_operations_reversed(self):
         self.test_ovf_operations(reversed=True)



More information about the Pypy-commit mailing list