From d0d0b65885a25aa3d33502ee9b0e6f26d11f4531 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Thu, 23 Oct 2008 00:38:15 +0000 Subject: Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL. Reviewed by Benjamin Peterson. --- Lib/test/test_range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_range.py') diff --git a/Lib/test/test_range.py b/Lib/test/test_range.py index b14a22b42e..43fadf01d1 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))), -- cgit v1.2.1