Fixed test in asian time zones

Fix #652
This commit is contained in:
Daniele Varrazzo 2018-01-11 08:52:03 +09:00
parent 7be099bd80
commit f3685fe5ac

View File

@ -638,7 +638,8 @@ class FromTicksTestCase(unittest.TestCase):
def test_date_value_error_sec_59_99(self):
from datetime import date
s = psycopg2.DateFromTicks(1273173119.99992)
self.assertEqual(s.adapted, date(2010, 5, 6))
# The returned date is local
self.assert_(s.adapted in [date(2010, 5, 6), date(2010, 5, 7)])
def test_time_value_error_sec_59_99(self):
from datetime import time