summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-07-24 14:20:52 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-07-24 14:23:36 +0100
commit775de754cf9bace67bb1dbd1f064886ee835e663 (patch)
treedebf14baee5497d990a0cbe9fd611be02d38087e /tests
parentb7bd5eceed4d76e438ad8b077a7ff48234631fd8 (diff)
downloadpsycopg2-775de754cf9bace67bb1dbd1f064886ee835e663.tar.gz
Added back timestamptz[] default castfix-578
It was registered as side effect of an excessive definition that got cleaned up in 338dbe70a6c78c7edddea985e2386ebd864378c6. Looking at other removed redundant type oids, this was the only one missing from the `string_types` map. Close #578.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_dates.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py
index 0b790d0..9ce74d8 100755
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -317,6 +317,11 @@ class DatetimeTests(ConnectingTestCase, CommonDatetimeTestsMixin):
from datetime import datetime
self._test_type_roundtrip_array(datetime(2010, 5, 3, 10, 20, 30))
+ def test_type_roundtrip_datetimetz_array(self):
+ from datetime import datetime
+ self._test_type_roundtrip_array(
+ datetime(2010, 5, 3, 10, 20, 30, tzinfo=FixedOffsetTimezone(0)))
+
def test_type_roundtrip_time_array(self):
from datetime import time
self._test_type_roundtrip_array(time(10, 20, 30))