Message272100
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. |
|
Date |
User |
Action |
Args |
2016-08-06 16:30:25 | cool-RR | set | recipients:
+ cool-RR, vinay.sajip, python-dev |
2016-08-06 16:30:25 | cool-RR | set | messageid: <1470501025.31.0.302594985965.issue27650@psf.upfronthosting.co.za> |
2016-08-06 16:30:25 | cool-RR | link | issue27650 messages |
2016-08-06 16:30:24 | cool-RR | create | |
|