Commit beb652cc authored by Serhiy Storchaka's avatar Serhiy Storchaka

Make catched exception more specific and correct a comment.

parent 1ba01615
...@@ -1944,15 +1944,15 @@ class AbstractPickleTests(unittest.TestCase): ...@@ -1944,15 +1944,15 @@ class AbstractPickleTests(unittest.TestCase):
# 5th item is not an iterator # 5th item is not an iterator
return dict, (), None, None, [] return dict, (), None, None, []
# Protocol 0 is less strict and also accept iterables. # Python implementation is less strict and also accepts iterables.
for proto in protocols: for proto in protocols:
try: try:
self.dumps(C(), proto) self.dumps(C(), proto)
except (pickle.PickleError): except pickle.PicklingError:
pass pass
try: try:
self.dumps(D(), proto) self.dumps(D(), proto)
except (pickle.PickleError): except pickle.PicklingError:
pass pass
def test_many_puts_and_gets(self): def test_many_puts_and_gets(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment