[pypy-svn] r65180 - pypy/branch/pyjitpl5/pypy/jit/backend/test
arigo at codespeak.net
arigo at codespeak.net
Sat May 9 10:55:38 CEST 2009
Author: arigo
Date: Sat May 9 10:55:36 2009
New Revision: 65180
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/test/test_random.py
Log:
Fix the test.
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 Sat May 9 10:55:36 2009
@@ -468,7 +468,9 @@
)
if (self.guard_op is not None and
self.guard_op.is_guard_exception()):
- assert cpu.get_exc_value()
+ if self.guard_op.opnum == rop.GUARD_NO_EXCEPTION:
+ assert cpu.get_exception()
+ assert cpu.get_exc_value()
cpu.clear_exception()
else:
assert not cpu.get_exception()
More information about the Pypy-commit
mailing list