summaryrefslogtreecommitdiff
path: root/django/db/utils.py
diff options
context:
space:
mode:
authorShai Berger <shai@platonix.com>2014-03-09 10:23:47 +0200
committerShai Berger <shai@platonix.com>2014-03-09 10:23:47 +0200
commit84c137490bad9043279278524bf958da8fb69fae (patch)
tree8eb9dd742c844f3134b56a6d175956e532caa32f /django/db/utils.py
parent0615eaf24ad42e22873915bf8c1f5aca824d62c4 (diff)
Fixed test breakage following test-settings enhancements
Diffstat (limited to 'django/db/utils.py')
-rw-r--r--django/db/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/utils.py b/django/db/utils.py
index b114577a7f..b884cc57b1 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -209,6 +209,9 @@ class ConnectionHandler(object):
"to a %s entry in the TEST setting" % (key, new_key),
RemovedInDjango19Warning, stacklevel=2)
test_settings[new_key] = value
+ for key in conn.keys():
+ if key.startswith('TEST_'):
+ del conn[key]
# Check that they didn't just use the old name with 'TEST_' removed
for key, new_key in six.iteritems(self.TEST_SETTING_RENAMES):
if key in test_settings: