Ram Rachum added the comment:

Okay, but consider that if there are no tests, this code will never be run 
during testing. Consider that if there's a bug in that code that causes an 
exception to be raised (unlikely, I know, but maybe from the call to 
getLevelName) it won't be discovered until a release of Python is made and some 
user runs it and sees an exception. Maybe someone in the future will want to 
add more code into the __repr__ and that code will raise an exception. Having 
tests that run these methods ensures this will be caught before release.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to