[Python-Dev] unit tests for error messages

Ethan Furman ethan at stoneleaf.us
Wed Mar 19 18:53:31 CET 2014


I just made a change to some error messages [1] (really, just one):

old behavior:

   '%o' % 3.14
   'float' object cannot be interpreted as an integer

new behavior:

   '%o' % 3.14
   %o format: an integer is required, not float

Would we normally add a test for that?

--
~Ethan~

[1] Issue 19995:  http://bugs.python.org/issue19995


More information about the Python-Dev mailing list