summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-30 19:00:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-30 19:00:29 (GMT)
commit58f8833e4cbb8ee434de616a70e85220f0e48031 (patch)
tree7faad3ac82fcbfeadbbd1b4923a808d9ae3e5118 /Lib/test/pickletester.py
parentb5c7fc7a8e9baabcf2fee828083724548a11bf94 (diff)
parentbeb652ccc1a7b1b1934012b8fdfdf592e780cbc1 (diff)
downloadcpython-58f8833e4cbb8ee434de616a70e85220f0e48031.zip
cpython-58f8833e4cbb8ee434de616a70e85220f0e48031.tar.gz
cpython-58f8833e4cbb8ee434de616a70e85220f0e48031.tar.bz2
Make catched exception more specific and correct a comment.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r--Lib/test/pickletester.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 217aa3d..d38276e 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -1942,15 +1942,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):