summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2011-04-06 14:41:42 +0800
committerSenthil Kumaran <orsenthil@gmail.com>2011-04-06 14:41:42 +0800
commitbb4e470dcd0fa5cf52e3217dab55c353c8ae923f (patch)
tree3089d1ff2b1702a8bc6498e975687c5ae180f217 /Lib/test
parent792eb5dc84b1a7d4652994ca970923bec0573614 (diff)
parent07019bcaab87114bc2312f2b916f929c99f3c48b (diff)
downloadcpython-git-bb4e470dcd0fa5cf52e3217dab55c353c8ae923f.tar.gz
hg pull/merge - Changes to accomodate.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_datetime.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 1a86353076..d246d60797 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -231,6 +231,13 @@ class TestTimeDelta(HarmlessMixedComparison, unittest.TestCase):
eq(a//10, td(0, 7*24*360))
eq(a//3600000, td(0, 0, 7*24*1000))
+ # Issue #11576
+ eq(td(999999999, 86399, 999999) - td(999999999, 86399, 999998),
+ td(0, 0, 1))
+ eq(td(999999999, 1, 1) - td(999999999, 1, 0),
+ td(0, 0, 1))
+
+
def test_disallowed_computations(self):
a = timedelta(42)