diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-30 19:00:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-30 19:00:08 (GMT) |
commit | beb652ccc1a7b1b1934012b8fdfdf592e780cbc1 (patch) | |
tree | e02130318b1c9a021561794618c2d25fd185f137 /Lib/test/pickletester.py | |
parent | 1ba01615dedd936625242724e19f6cf25e5aa0f3 (diff) | |
download | cpython-beb652ccc1a7b1b1934012b8fdfdf592e780cbc1.zip cpython-beb652ccc1a7b1b1934012b8fdfdf592e780cbc1.tar.gz cpython-beb652ccc1a7b1b1934012b8fdfdf592e780cbc1.tar.bz2 |
Make catched exception more specific and correct a comment.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r-- | Lib/test/pickletester.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index d3739ce..fba110b 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -1944,15 +1944,15 @@ class AbstractPickleTests(unittest.TestCase): # 5th item is not an iterator 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: try: self.dumps(C(), proto) - except (pickle.PickleError): + except pickle.PicklingError: pass try: self.dumps(D(), proto) - except (pickle.PickleError): + except pickle.PicklingError: pass def test_many_puts_and_gets(self): |