MCPcopy Index your code
hub / github.com/RustPython/RustPython / create_data

Function create_data

Lib/test/pickletester.py:812–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

810
811
812def create_data():
813 c = C()
814 c.foo = 1
815 c.bar = 2
816 x = [0, 1, 2.0, 3.0+0j]
817 # Append some integer test cases at cPickle.c's internal size
818 # cutoffs.
819 uint1max = 0xff
820 uint2max = 0xffff
821 int4max = 0x7fffffff
822 x.extend([1, -1,
823 uint1max, -uint1max, -uint1max-1,
824 uint2max, -uint2max, -uint2max-1,
825 int4max, -int4max, -int4max-1])
826 y = ('abc', 'abc', c, c)
827 x.append(y)
828 x.append(y)
829 x.append(5)
830 return x
831
832
833class AbstractUnpickleTests:

Callers 2

pickletester.pyFile · 0.85

Calls 3

CClass · 0.70
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected