summaryrefslogtreecommitdiff
path: root/Lib/test/datetimetester.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-18 14:52:15 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-09-18 14:52:15 +0200
commit5ebfe42cdf7ba4ba0a573e2990960fea460540b0 (patch)
tree948c6177fa7256ff3dd38158ec585dcac64cc67f /Lib/test/datetimetester.py
parent13c15ca9cf39d39a9426431f78fe408d61453f5a (diff)
downloadcpython-git-5ebfe42cdf7ba4ba0a573e2990960fea460540b0.tar.gz
Oops, fix test_microsecond_rounding()
Test self.theclass, not datetime. Regression introduced by manual tests.
Diffstat (limited to 'Lib/test/datetimetester.py')
-rw-r--r--Lib/test/datetimetester.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index 5d2df323a9..a6c742100d 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -1851,8 +1851,8 @@ class TestDateTime(TestDate):
18000 + 3600 + 2*60 + 3 + 4*1e-6)
def test_microsecond_rounding(self):
- for fts in (datetime.fromtimestamp,
- self.theclass.utcfromtimestamp):
+ for fts in [self.theclass.fromtimestamp,
+ self.theclass.utcfromtimestamp]:
zero = fts(0)
self.assertEqual(zero.second, 0)
self.assertEqual(zero.microsecond, 0)