From 6b689a505c7a89d497e2e8af690fdf5a00780a2d Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 6 Feb 2016 09:21:05 -0500 Subject: [1.9.x] Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False. Backport of 97eb3356b2a7488c8d0ca0e47ef3e538852d44a2 from master --- tests/backends/tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 460b522079..1bb019bb55 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -826,6 +826,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: -- cgit v1.3