rlib/test/test_rzipfile.py::TestRZipFileCompressed::()::test_rzipfile
self = <rpython.rlib.test.test_rzipfile.TestRZipFileCompressed object at 0xf519292c>
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 0xf42eb36c>, 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 / 2403 blocks (8%)
[rtyper] specializing: 400 / 2452 blocks (16%)
[rtyper] specializing: 600 / 2544 blocks (23%)
[rtyper] specializing: 1100 / 3643 blocks (30%)
[rtyper] specializing: 1400 / 3866 blocks (36%)
[rtyper] specializing: 1600 / 3891 blocks (41%)
[rtyper] specializing: 1800 / 3895 blocks (46%)
[rtyper] specializing: 2000 / 3909 blocks (51%)
[rtyper] specializing: 2100 / 3911 blocks (53%)
[rtyper] specializing: 2300 / 3913 blocks (58%)
[rtyper] specializing: 2600 / 4019 blocks (64%)
[rtyper] specializing: 2800 / 4019 blocks (69%)
[rtyper] specializing: 3000 / 4023 blocks (74%)
[rtyper] specializing: 3200 / 4028 blocks (79%)
[rtyper] specializing: 3400 / 4028 blocks (84%)
[rtyper] specializing: 3600 / 4028 blocks (89%)
[rtyper] specializing: 3800 / 4028 blocks (94%)
[rtyper] specializing: 4000 / 4030 blocks (99%)
[rtyper] -=- specialized 4030 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
(somefailed=True in rlib/test/test_rzipfile.py)
builder: rpython-linux-x86-32 build #874+
test: rlib/test/test_rzipfile.py::TestRZipFileCompressed::()::test_rzipfile