[issue9441] increase logging handlers test coverage

Alexander Belopolsky report at bugs.python.org
Sun Aug 1 17:36:40 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I noticed that you use timedelta.total_seconds in secs which returns a float while no test covers fractional number of seconds.  While not a problem with your choice of tests, equality comparison of floating point values commonly leads to fragile tests.  I would suggest that you use delta//timedelta(seconds=1) instead of total_seconds().

----------
components: +Tests -Library (Lib)
nosy: +belopolsky

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


More information about the Python-bugs-list mailing list