From a78ac3c1253717f1f0f8f87f0c868e54f42af440 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 11 Jan 2018 08:52:03 +0900 Subject: [PATCH] Fixed test in asian time zones Fix #652 --- tests/test_dates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_dates.py b/tests/test_dates.py index 47ef41cb..74dfc9ab 100755 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -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