summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-05-07 19:05:59 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-05-15 14:27:24 +0100
commita35498532a31e7bf01ba06bf7b3d38b9612463a7 (patch)
tree7abe7a983d0b2917512ec692e6db059b12da4ea5
parentc46a1dad630b108892dcc282c882a27c1d5deafa (diff)
downloadpsycopg2-a35498532a31e7bf01ba06bf7b3d38b9612463a7.tar.gz
Fixed time test to be independent from the TZ it runs.
-rw-r--r--tests/test_dates.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py
index 08636d7..be0c857 100644
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -496,8 +496,8 @@ class FromTicksTestCase(unittest.TestCase):
def test_time_value_error_sec_59_99(self):
from datetime import time
s = psycopg2.TimeFromTicks(1273173119.99992)
- self.assertEqual(s.adapted,
- time(20, 11, 59, 999920))
+ self.assertEqual(s.adapted.replace(hour=0),
+ time(0, 11, 59, 999920))
def test_suite():