Skip to content

Commit cdb02bf

Browse files
committed
remove microseconds from timestamp naive test
1 parent c4b9a0b commit cdb02bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_datetime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ def test_utcfromtimestamp(self):
527527
def test_timestamp_naive(self):
528528
t = self.theclass(1970, 1, 1)
529529
self.assertEqual(t.timestamp(), 18000.0)
530-
t = self.theclass(1970, 1, 1, 1, 2, 3, 4)
531-
self.assertEqual(t.timestamp(), 18000.0 + 3600 + 2 * 60 + 3 + 4 * 1e-6)
530+
t = self.theclass(1970, 1, 1, 1, 2, 3)
531+
self.assertEqual(t.timestamp(), 18000.0 + 3600 + 2 * 60 + 3)
532532
# Missing hour
533533
t0 = self.theclass(2012, 3, 11, 2, 30)
534534
t1 = t0.replace(fold=1)

0 commit comments

Comments
 (0)