diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2019-02-05 11:22:08 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-06 13:48:39 -0500 |
| commit | 24b82cd201e21060fbc02117dc16d1702877a1f3 (patch) | |
| tree | 7d36db9251700d0abf8fbf69399c8abc7fd9026a /django/test | |
| parent | 21bb71ef0dcb86798edb0d8b21138bcc4b947590 (diff) | |
Fixed #30159 -- Removed unneeded use of OrderedDict.
Dicts preserve order since Python 3.6.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index 419180eed3..8bdcea77d7 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -1,4 +1,3 @@ -import collections import logging import re import sys @@ -280,8 +279,7 @@ def get_unique_databases_and_mirrors(aliases=None): if alias != DEFAULT_DB_ALIAS and connection.creation.test_db_signature() != default_sig: dependencies[alias] = test_settings.get('DEPENDENCIES', [DEFAULT_DB_ALIAS]) - test_databases = dependency_ordered(test_databases.items(), dependencies) - test_databases = collections.OrderedDict(test_databases) + test_databases = dict(dependency_ordered(test_databases.items(), dependencies)) return test_databases, mirrored_aliases |
