Author: Maciej Fijalkowski <fij...@gmail.com> Branch: share-guard-info Changeset: r79891:ee21249ebd92 Date: 2015-09-29 11:26 +0200 http://bitbucket.org/pypy/pypy/changeset/ee21249ebd92/
Log: half-heartedly fix the overflow changes in test_random diff --git a/rpython/jit/backend/test/test_random.py b/rpython/jit/backend/test/test_random.py --- a/rpython/jit/backend/test/test_random.py +++ b/rpython/jit/backend/test/test_random.py @@ -22,6 +22,8 @@ self.operations = subops class FakeMetaInterp(object): + ovf_flag = False + def execute_raised(self, exc, constant=False): self._got_exc = exc @@ -366,8 +368,7 @@ fail_subset = builder.subset_of_intvars(r) original_intvars = builder.intvars[:] super(AbstractOvfOperation, self).produce_into(builder, r) - if builder.fakemetainterp._got_exc: # overflow detected - assert isinstance(builder.fakemetainterp._got_exc, OverflowError) + if builder.fakemetainterp.ovf_flag: # overflow detected op = ResOperation(rop.GUARD_OVERFLOW, []) # the overflowed result should not be used any more, but can # be used on the failure path: recompute fail_subset including _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit