summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xrange.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-10-23 00:37:33 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-10-23 00:37:33 (GMT)
commit592c2755677d77061ceb99607c10fa7d70e5c2dd (patch)
tree30dab41f3f1bf8b1166e478bb5fe5224016df407 /Lib/test/test_xrange.py
parentc18574c98e51cce9b16508db7cb1ea56ea1942ab (diff)
downloadcpython-592c2755677d77061ceb99607c10fa7d70e5c2dd.zip
cpython-592c2755677d77061ceb99607c10fa7d70e5c2dd.tar.gz
cpython-592c2755677d77061ceb99607c10fa7d70e5c2dd.tar.bz2
Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
Diffstat (limited to 'Lib/test/test_xrange.py')
-rw-r--r--Lib/test/test_xrange.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_xrange.py b/Lib/test/test_xrange.py
index 7a2eea5..7e2a1a3 100644
--- a/Lib/test/test_xrange.py
+++ b/Lib/test/test_xrange.py
@@ -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))),