diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-12-04 02:34:06 -0800 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2019-12-04 11:34:06 +0100 |
| commit | 2540c5f08c8ca616e8549d8c4ce4bf0e938818cf (patch) | |
| tree | 7bf0d32c629c7e8f774f39202878ce0e29277985 | |
| parent | 95ae1a9f8caf9c63c14c1a7c3e15594d3181b3ca (diff) | |
Removed unnecessary dict.get() call in favor of direct indexing.
The 'TEST' key is always set to a dictionary in ConnectionHandler.
| -rw-r--r-- | django/test/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index 819e423326..4dc1eac733 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -170,7 +170,7 @@ def setup_databases(verbosity, interactive, keepdb=False, debug_sql=False, paral verbosity=verbosity, autoclobber=not interactive, keepdb=keepdb, - serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True), + serialize=connection.settings_dict['TEST'].get('SERIALIZE', True), ) if parallel > 1: for index in range(parallel): |
