Skip to content

Commit

Permalink
remove microseconds from timestamp naive test
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Jan 17, 2025
1 parent c4b9a0b commit cdb02bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ def test_utcfromtimestamp(self):
def test_timestamp_naive(self):
t = self.theclass(1970, 1, 1)
self.assertEqual(t.timestamp(), 18000.0)
t = self.theclass(1970, 1, 1, 1, 2, 3, 4)
self.assertEqual(t.timestamp(), 18000.0 + 3600 + 2 * 60 + 3 + 4 * 1e-6)
t = self.theclass(1970, 1, 1, 1, 2, 3)
self.assertEqual(t.timestamp(), 18000.0 + 3600 + 2 * 60 + 3)
# Missing hour
t0 = self.theclass(2012, 3, 11, 2, 30)
t1 = t0.replace(fold=1)
Expand Down

0 comments on commit cdb02bf

Please sign in to comment.