diff Lib/test/test_range.py @ 49574:bbab11cdb175

Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL. Reviewed by Benjamin Peterson.
author Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
date Thu, 23 Oct 2008 00:38:15 +0000
parents 33492c241dab
children 75c4d3bc6cc8 6492b6ece598
line wrap: on
line diff
--- a/Lib/test/test_range.py	Tue Oct 21 21:10:07 2008 +0000
+++ b/Lib/test/test_range.py	Thu Oct 23 00:38:15 2008 +0000
@@ -65,7 +65,7 @@
     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))),