Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.

This commit is contained in:
Hirokazu Yamamoto 2008-10-23 00:37:33 +00:00
parent c18574c98e
commit 592c275567
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ class XrangeTest(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 = xrange(*t)
self.assertEquals(list(pickle.loads(pickle.dumps(r, proto))),