Re:3 percent of Python codebases we checked had silently fai...
by charcircuit on Wednesday February 16, 2022 @07:42AM
(#30359278)
Does unittest cause an exception when the second argument isn't a string? That would catch some of these I'd imagine.
[ Parent
| on HN ]
Re:3 percent of Python codebases we checked had silently fai...
by lozenge on Wednesday February 16, 2022 @09:28AM
(#30360365)
They should make `msg` a keyword-only argument on all the TestCase.assert* statements. It wouldn't be the first breaking change of this type.
Searching for announced breaking changes about arguments to Python included functions...
https://bugs.python.org/issue25628
https://bugs.python.org/issue29193