summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-02-06 09:21:05 -0500
committerTim Graham <timograham@gmail.com>2016-02-08 07:21:54 -0500
commit97eb3356b2a7488c8d0ca0e47ef3e538852d44a2 (patch)
tree7e5a9a9ead57d7ff351c8a71c54454be6a324c00 /tests
parente000ca23d206e1c615d1d87af24d940239d6c3ca (diff)
Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index 00d44cf881..1d27dcab87 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -825,6 +825,11 @@ class BackendTestCase(TransactionTestCase):
BaseDatabaseWrapper.queries_limit = old_queries_limit
new_connection.close()
+ def test_timezone_none_use_tz_false(self):
+ connection.ensure_connection()
+ with self.settings(TIME_ZONE=None, USE_TZ=False):
+ connection.init_connection_state()
+
# We don't make these tests conditional because that means we would need to
# check and differentiate between: