mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +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):
|
def test_time_value_error_sec_59_99(self):
|
||||||
from datetime import time
|
from datetime import time
|
||||||
s = psycopg2.TimeFromTicks(1273173119.99992)
|
s = psycopg2.TimeFromTicks(1273173119.99992)
|
||||||
self.assertEqual(s.adapted,
|
self.assertEqual(s.adapted.replace(hour=0),
|
||||||
time(20, 11, 59, 999920))
|
time(0, 11, 59, 999920))
|
||||||
|
|
||||||
|
|
||||||
def test_suite():
|
def test_suite():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user