[issue25211] Error message formatting errors in int object unit-test script

Martin Panter report at bugs.python.org
Thu Sep 24 02:37:43 CEST 2015


Martin Panter added the comment:

I will commit your patch to 2.7.

Here is a my alternative proposal for 3.4+, dropping the Frm class and using subTest() instead. I kept some error messages where I thought they added clarity, but dropped most because I thought they were redundant with the test code and subTest() parameters.

The test file takes a bit longer to run as a consequence of my patch (was 6.3 s, now 7.3 s). However I think the simpler and more maintainable code outweighs this.

----------
nosy: +berker.peksag
Added file: http://bugs.python.org/file40559/subTest-long.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25211>
_______________________________________


More information about the Python-bugs-list mailing list