[pypy-svn] r75020 - pypy/branch/blackhole-improvement/pypy/jit/backend/test
arigo at codespeak.net
arigo at codespeak.net
Wed Jun 2 17:27:50 CEST 2010
Author: arigo
Date: Wed Jun 2 17:27:48 2010
New Revision: 75020
Modified:
pypy/branch/blackhole-improvement/pypy/jit/backend/test/test_random.py
Log:
Fix.
Modified: pypy/branch/blackhole-improvement/pypy/jit/backend/test/test_random.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/backend/test/test_random.py (original)
+++ pypy/branch/blackhole-improvement/pypy/jit/backend/test/test_random.py Wed Jun 2 17:27:48 2010
@@ -20,8 +20,6 @@
class FakeMetaInterp(object):
def execute_raised(self, exc, constant=False):
self._got_exc = exc
- def execute_did_not_raise(self):
- self._got_exc = None
class OperationBuilder(object):
def __init__(self, cpu, loop, vars):
@@ -47,6 +45,7 @@
return fork
def do(self, opnum, argboxes, descr=None):
+ self.fakemetainterp._got_exc = None
v_result = execute_nonspec(self.cpu, self.fakemetainterp,
opnum, argboxes, descr)
if isinstance(v_result, Const):
@@ -285,7 +284,6 @@
builder.intvars[:] = original_intvars
else:
op = ResOperation(rop.GUARD_NO_OVERFLOW, [], None)
- del builder.fakemetainterp._got_exc
op.descr = BasicFailDescr()
op.fail_args = fail_subset
builder.loop.operations.append(op)
More information about the Pypy-commit
mailing list