summaryrefslogtreecommitdiff
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-12-27 04:21:44 +0000
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-12-27 04:21:44 +0000
commit801f9d3888f4e2f44fe5aa7e9e46f8620a60702f (patch)
tree2f03e47c1ac595cb6db3fdeb1c5354753b2d0307 /Lib/test/test_set.py
parent81d90a220f2cea407e261a3c884d388a084d2d1e (diff)
downloadcpython-git-801f9d3888f4e2f44fe5aa7e9e46f8620a60702f.tar.gz
Issue #4740: Use HIGHEST_PROTOCOL in pickle test. This enables test for protocol 3
(== HIGHEST_PROTOCOL in 3.x)
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 07319fc20d..da3ed0f53a 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -219,7 +219,7 @@ class TestJointOps(unittest.TestCase):
self.failIf(set('cbs').issuperset('a'))
def test_pickling(self):
- for i in (0, 1, 2):
+ for i in range(pickle.HIGHEST_PROTOCOL + 1):
p = pickle.dumps(self.s, i)
dup = pickle.loads(p)
self.assertEqual(self.s, dup, "%s != %s" % (self.s, dup))