STINNER Victor <vstin...@redhat.com> added the comment:
> Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion) It's not a typo: it's that my change now requires the last argument of formatwarning() to be a keyword argument called 'line'. The error comes from numpy. But I'm fine to now require that the last formatwarning() argument is called 'line' and pass its value as an positional argument, not as a keyword argument. In that case, I would like to see an unit test to check that replacing warnings.formatwarning() with a new function and the last parameter of this function is not called 'line' still works. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35178> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com