diff --git a/tests/test_dates.py b/tests/test_dates.py index 08636d76..be0c8571 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -496,8 +496,8 @@ class FromTicksTestCase(unittest.TestCase): def test_time_value_error_sec_59_99(self): from datetime import time s = psycopg2.TimeFromTicks(1273173119.99992) - self.assertEqual(s.adapted, - time(20, 11, 59, 999920)) + self.assertEqual(s.adapted.replace(hour=0), + time(0, 11, 59, 999920)) def test_suite():