mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-136327: Fix inconsistent `TypeError` messages regarding invalid values after * and ** (#136395)
This commit is contained in:
parent
b3c713a0af
commit
4f8e7b5ac5
4 changed files with 23 additions and 36 deletions
|
|
@ -1882,7 +1882,7 @@ def test_bad_newobj_ex_args(self):
|
|||
with self.assertRaises(TypeError) as cm:
|
||||
self.dumps(obj, proto)
|
||||
self.assertEqual(str(cm.exception),
|
||||
'functools.partial() argument after ** must be a mapping, not list')
|
||||
'Value after ** must be a mapping, not list')
|
||||
self.assertEqual(cm.exception.__notes__, [
|
||||
'when serializing test.pickletester.REX object'])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue