Fixed time test to be independent from the TZ it runs.

This commit is contained in:
Daniele Varrazzo 2010-05-07 19:05:59 +01:00
parent c46a1dad63
commit a35498532a

View File

@ -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():