summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_range.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-10-23 00:38:15 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-10-23 00:38:15 (GMT)
commitd0d0b65885a25aa3d33502ee9b0e6f26d11f4531 (patch)
tree9db9f8377d5866533449c30088676dde55e1359a /Lib/test/test_range.py
parentffc9479a41cdacb65937efbc1b60f39f6306c362 (diff)
downloadcpython-d0d0b65885a25aa3d33502ee9b0e6f26d11f4531.zip
cpython-d0d0b65885a25aa3d33502ee9b0e6f26d11f4531.tar.gz
cpython-d0d0b65885a25aa3d33502ee9b0e6f26d11f4531.tar.bz2
Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
Reviewed by Benjamin Peterson.
Diffstat (limited to 'Lib/test/test_range.py')
-rw-r--r--Lib/test/test_range.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_range.py b/Lib/test/test_range.py
index b14a22b..43fadf0 100644
--- a/Lib/test/test_range.py
+++ b/Lib/test/test_range.py
@@ -65,7 +65,7 @@ class RangeTest(unittest.TestCase):
def test_pickling(self):
testcases = [(13,), (0, 11), (-22, 10), (20, 3, -1),
(13, 21, 3), (-2, 2, 2)]
- for proto in range(pickle.HIGHEST_PROTOCOL):
+ for proto in range(pickle.HIGHEST_PROTOCOL + 1):
for t in testcases:
r = range(*t)
self.assertEquals(list(pickle.loads(pickle.dumps(r, proto))),