mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Fixed time test to be independent from the TZ it runs.
This commit is contained in:
parent
c46a1dad63
commit
a35498532a
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user