Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/test/test_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_varargs14_kw(self):
itertools.product, 0, repeat=1, foo=2)

def test_varargs15_kw(self):
msg = r"^ImportError\(\) takes at most 3 keyword arguments \(4 given\)$"
msg = r"^ImportError\(\) got an unexpected keyword argument 'foo'$"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a news entry for the change in the error message

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a NEWS for the speedup, vectorcall support, and error string change.

self.assertRaisesRegex(TypeError, msg,
ImportError, 0, name=1, path=2, name_from=3, foo=3)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Speed up :exc:`AttributeError`, :exc:`ImportError` and
:exc:`NameError` by enabling :ref:`vectorcall`. Unexpected
keyword arguments are now reported by name.
329 changes: 328 additions & 1 deletion Objects/clinic/exceptions.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading