mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-15 05:26:37 +03:00
parent
7be099bd80
commit
f3685fe5ac
|
@ -638,7 +638,8 @@ class FromTicksTestCase(unittest.TestCase):
|
||||||
def test_date_value_error_sec_59_99(self):
|
def test_date_value_error_sec_59_99(self):
|
||||||
from datetime import date
|
from datetime import date
|
||||||
s = psycopg2.DateFromTicks(1273173119.99992)
|
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):
|
def test_time_value_error_sec_59_99(self):
|
||||||
from datetime import time
|
from datetime import time
|
||||||
|
|
Loading…
Reference in New Issue
Block a user