(self)
| 847 | self.assert_is_copy(X(*args), self.loads(pickle2)) |
| 848 | |
| 849 | def test_maxint64(self): |
| 850 | maxint64 = (1 << 63) - 1 |
| 851 | data = b'I' + str(maxint64).encode("ascii") + b'\n.' |
| 852 | got = self.loads(data) |
| 853 | self.assert_is_copy(maxint64, got) |
| 854 | |
| 855 | # Try too with a bogus literal. |
| 856 | data = b'I' + str(maxint64).encode("ascii") + b'JUNK\n.' |
| 857 | self.check_unpickling_error(ValueError, data) |
| 858 | |
| 859 | def test_unpickle_from_2x(self): |
| 860 | # Unpickle non-trivial data from Python 2.x. |
nothing calls this directly
no test coverage detected