from pypy.module.marshal import interp_marshal from pypy.interpreter.error import OperationError from pypy.objspace.std.intobject import W_IntObject import sys def test_long_more(space): import marshal, struct class FakeM: # NOTE: marshal is platform independent, running this test must assume # that self.seen gets values from the endianess of the marshal module. # (which is little endian!) version = 2 def __init__(self): self.seen = [] def start(self, code): self.seen.append(code) def put_int(self, value): self.seen.append(struct.pack("