rlib/test/test_rzipfile.py::TestRZipFile::()::test_rzipfile
self = <rpython.rlib.test.test_rzipfile.TestRZipFile object at 0xf5aba32c>
def test_rzipfile(self):
zipname = self.zipname
year = self.year
compression = self.compression
def one():
rzip = RZipFile(zipname, "r", compression)
info = rzip.getinfo('one')
return (info.date_time[0] == year and
rzip.read('one') == 'stuff\n' and
rzip.read('three') == 'hello, world')
assert one()
> assert self.interpret(one, [])
rlib/test/test_rzipfile.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rtyper/test/tool.py:16: in interpret
return interpret(fn, args, **kwds)
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)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:714: in op_indirect_call
return self.op_direct_call(f, *args)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:714: in op_indirect_call
return self.op_direct_call(f, *args)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
rtyper/llinterp.py:702: in op_direct_call
return self.perform_call(f, FTYPE.ARGS, args)
rtyper/llinterp.py:698: in perform_call
return frame.eval()
rtyper/llinterp.py:300: in eval
nextblock, args = self.eval_block(nextblock)
rtyper/llinterp.py:329: in eval_block
rstackovf.check_stack_overflow()
rtyper/llinterp.py:324: in eval_block
self.eval_operation(op)
rtyper/llinterp.py:427: in eval_operation
retval = ophandler(*vals)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.rtyper.llinterp.LLFrame object at 0xf4e67bcc>, obj = 11
def op_gc_get_stats(self, obj):
> raise NotImplementedError("gc_get_stats")
E NotImplementedError: gc_get_stats
rtyper/llinterp.py:764: NotImplementedError
---------- Captured stderr call ----------
[rtyper] specializing: 200 / 2177 blocks (9%)
[rtyper] specializing: 400 / 2196 blocks (18%)
[rtyper] specializing: 600 / 2196 blocks (27%)
[rtyper] specializing: 1100 / 3297 blocks (33%)
[rtyper] specializing: 1300 / 3323 blocks (39%)
[rtyper] specializing: 1800 / 3909 blocks (46%)
[rtyper] specializing: 2000 / 3909 blocks (51%)
[rtyper] specializing: 2100 / 3909 blocks (53%)
[rtyper] specializing: 2300 / 3920 blocks (58%)
[rtyper] specializing: 2500 / 3920 blocks (63%)
[rtyper] specializing: 2700 / 3926 blocks (68%)
[rtyper] specializing: 2900 / 3926 blocks (73%)
[rtyper] specializing: 3100 / 3940 blocks (78%)
[rtyper] specializing: 3300 / 3940 blocks (83%)
[rtyper] specializing: 3500 / 3945 blocks (88%)
[rtyper] specializing: 3700 / 3947 blocks (93%)
[rtyper] specializing: 4000 / 4030 blocks (99%)
[rtyper] -=- specialized 4030 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
builder: rpython-linux-x86-32 build #874+
test: rlib/test/test_rzipfile.py::TestRZipFile::()::test_rzipfile