Fixed test in asian time zones

Fix #652
This commit is contained in:
Daniele Varrazzo 2018-01-11 08:52:03 +09:00
parent 04f1f06b9f
commit a78ac3c125

View File

@ -639,7 +639,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