summaryrefslogtreecommitdiffstats
path: root/Lib/test/datetimetester.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-08 23:09:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-08 23:09:21 (GMT)
commitcd5d765b0ee861509b14a1f21b630b8fb6eb258f (patch)
tree417002424af5283e17745db9ec5f6187578fff87 /Lib/test/datetimetester.py
parent7667f58151d5efbbae4f0b1d7178f99dad0d74c0 (diff)
downloadcpython-cd5d765b0ee861509b14a1f21b630b8fb6eb258f.zip
cpython-cd5d765b0ee861509b14a1f21b630b8fb6eb258f.tar.gz
cpython-cd5d765b0ee861509b14a1f21b630b8fb6eb258f.tar.bz2
cleanup datetime code
remove scories of round half up code and debug code.
Diffstat (limited to 'Lib/test/datetimetester.py')
-rw-r--r--Lib/test/datetimetester.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index 467fbe2..5d2df32 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -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))