rlib/test/test_rweakkeydict.py::test_rpython_RWeakKeyDictionary
def test_rpython_RWeakKeyDictionary():
> interpret(make_test(loop=12), [])
rlib/test/test_rweakkeydict.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rtyper/test/test_llinterp.py:102: in interpret
result = interp.eval_graph(graph, values)
rtyper/llinterp.py:102: in eval_graph
retval = llframe.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.rtyper.llinterp.LLFrame object at 0x09d827b0>
block = raise block[etype_0...] with 0 exits
def eval_block(self, block):
""" return (nextblock, values) tuple. If nextblock
is None, values is the concrete return value.
"""
self.curr_block = block
e = None
try:
for i, op in enumerate(block.operations):
self.curr_operation_index = i
self.eval_operation(op)
except LLException as e:
if op is not block.raising_op:
raise
except RuntimeError as e:
rstackovf.check_stack_overflow()
# xxx fish fish fish for proper etype and evalue to use
rtyper = self.llinterpreter.typer
bk = rtyper.annotator.bookkeeper
classdef = bk.getuniqueclassdef(rstackovf._StackOverflow)
exdata = rtyper.exceptiondata
evalue = exdata.get_standard_ll_exc_instance(rtyper, classdef)
etype = exdata.fn_type_of_exc_inst(evalue)
e = LLException(etype, evalue)
if op is not block.raising_op:
raise e
# determine nextblock and/or return value
if len(block.exits) == 0:
# return block
tracer = self.llinterpreter.tracer
if len(block.inputargs) == 2:
# exception
if tracer:
tracer.dump('raise')
etypevar, evaluevar = block.getvariables()
etype = self.getval(etypevar)
evalue = self.getval(evaluevar)
# watch out, these are _ptr's
> raise LLException(etype, evalue)
E LLException: <LLException 'AssertionError'>
rtyper/llinterp.py:353: LLException
---------- Captured stderr call ----------
[rtyper] specializing: 100 / 316 blocks (31%)
[rtyper] specializing: 200 / 318 blocks (62%)
[rtyper] specializing: 300 / 318 blocks (94%)
[rtyper] -=- specialized 318 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
builder: rpython-linux-x86-32 build #806*
test: rlib/test/test_rweakkeydict.py::test_rpython_RWeakKeyDictionary