mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
Fix writing out 64-bit size fields on 32-bit builds
This commit is contained in:
parent
b3d3ee4fef
commit
8f2ee6e407
2 changed files with 25 additions and 14 deletions
|
@ -353,9 +353,10 @@ class RangeTest(unittest.TestCase):
|
|||
(13, 21, 3), (-2, 2, 2), (2**65, 2**65+2)]
|
||||
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
|
||||
for t in testcases:
|
||||
r = range(*t)
|
||||
self.assertEqual(list(pickle.loads(pickle.dumps(r, proto))),
|
||||
list(r))
|
||||
with self.subTest(proto=proto, test=t):
|
||||
r = range(*t)
|
||||
self.assertEqual(list(pickle.loads(pickle.dumps(r, proto))),
|
||||
list(r))
|
||||
|
||||
def test_iterator_pickling(self):
|
||||
testcases = [(13,), (0, 11), (-22, 10), (20, 3, -1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue