[issue13349] Non-informative error message in index() and remove() functions

Ezio Melotti report at bugs.python.org
Sun Nov 4 18:48:01 CET 2012


Ezio Melotti added the comment:

You should use assertRaises/assertRaisesRegex to check the error message and add more tests to cover all the changes.  I also noticed an inconsistence between 'element not in container' and 'element is not in container' (note the extra 'is').  FWIW I prefer the version without 'is'.

----------
stage: needs patch -> patch review

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


More information about the Python-bugs-list mailing list