New submission from Stefan Behnel: I'm seeing doctest failures in Cython's test suite with Py3.7 due to the change of an error message:
Failed example: func1(arg=None) Expected: Traceback (most recent call last): ... TypeError: func1() takes no keyword arguments Got: Traceback (most recent call last): File "/opt/python/3.7-dev/lib/python3.7/doctest.py", line 1329, in __run compileflags, 1), test.globs) File "<doctest always_allow_keywords_T295.func1[2]>", line 1, in <module> func1(arg=None) TypeError: func1() takes exactly one argument (0 given) I'd normally just adapt the doctest and move on, but this seems like the error message is worse than before, so I thought I'd bring it up here. func1() is implemented as a METH_O C function. Suggesting that it does not accept keyword arguments seems better than saying that it expects "exactly one argument" instead of the exactly one argument that was passed. ---------- components: Interpreter Core messages: 294906 nosy: scoder priority: normal severity: normal status: open title: error message for incorrect call degraded in 3.7 type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30534> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com