diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-11-23 20:05:08 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-11-23 20:05:08 (GMT) |
commit | 8f2ee6e407fe38375095f488b18d2c8c0cbab631 (patch) | |
tree | 960405e690e6fdc8dedce7e87416c91803ecbe50 /Lib/test/test_range.py | |
parent | b3d3ee4fef6d1beb547671d12c514c86657b9223 (diff) | |
download | cpython-8f2ee6e407fe38375095f488b18d2c8c0cbab631.zip cpython-8f2ee6e407fe38375095f488b18d2c8c0cbab631.tar.gz cpython-8f2ee6e407fe38375095f488b18d2c8c0cbab631.tar.bz2 |
Fix writing out 64-bit size fields on 32-bit builds
Diffstat (limited to 'Lib/test/test_range.py')
-rw-r--r-- | Lib/test/test_range.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_range.py b/Lib/test/test_range.py index f088387..d9d4cf8 100644 --- a/Lib/test/test_range.py +++ b/Lib/test/test_range.py @@ -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), |