Alexander Belopolsky <belopol...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue9441> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com