mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
cleanup datetime code
remove scories of round half up code and debug code.
This commit is contained in:
parent
7667f58151
commit
cd5d765b0e
2 changed files with 1 additions and 8 deletions
|
@ -679,7 +679,7 @@ class TestTimeDelta(HarmlessMixedComparison, unittest.TestCase):
|
|||
us_per_day = us_per_hour * 24
|
||||
eq(td(days=.4/us_per_day), td(0))
|
||||
eq(td(hours=.2/us_per_hour), td(0))
|
||||
eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1), td)
|
||||
eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))
|
||||
|
||||
eq(td(days=-.4/us_per_day), td(0))
|
||||
eq(td(hours=-.2/us_per_hour), td(0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue