mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Issue #4740: Use HIGHEST_PROTOCOL in pickle test.
(There is no behavior difference in 2.x because HIGHEST_PROTOCOL == 2)
This commit is contained in:
parent
1e551b47d3
commit
0fc0747586
3 changed files with 6 additions and 6 deletions
|
@ -221,7 +221,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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue