mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Oops, fix test_microsecond_rounding()
Test self.theclass, not datetime. Regression introduced by manual tests.
This commit is contained in:
parent
13c15ca9cf
commit
5ebfe42cdf
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue