()
| 810 | |
| 811 | |
| 812 | def 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 | |
| 833 | class AbstractUnpickleTests: |
no test coverage detected