From: Serhiy Storchaka Date: Wed, 30 Dec 2015 19:00:08 +0000 (+0200) Subject: Make catched exception more specific and correct a comment. X-Git-Tag: v3.6.0a1~837^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=beb652ccc1a7b1b1934012b8fdfdf592e780cbc1;p=thirdparty%2FPython%2Fcpython.git Make catched exception more specific and correct a comment. --- diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index d3739ce1aa3c..fba110b14af2 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):