diff options
| author | Tim Graham <timograham@gmail.com> | 2016-02-06 09:21:05 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-08 07:41:56 -0500 |
| commit | 6b689a505c7a89d497e2e8af690fdf5a00780a2d (patch) | |
| tree | 3db8baf1b64c28d5e3264387a14e2493dd0499ec /tests | |
| parent | 530f0adcf3aab3b3eabdc37a5ea6e8943e8135c4 (diff) | |
[1.9.x] Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
Backport of 97eb3356b2a7488c8d0ca0e47ef3e538852d44a2 from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/backends/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |
