From deff74ea0cc38794cd10a1a3866904c227c986f7 Mon Sep 17 00:00:00 2001
From: Shai Berger <shai@platonix.com>
Date: Sun, 9 Mar 2014 12:24:23 +0200
Subject: [PATCH] Fixed the last fix for database test settings to work with
 Python3.

---
 django/db/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django/db/utils.py b/django/db/utils.py
index b884cc57b1..7f19256425 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -209,7 +209,7 @@ 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():
+        for key in list(conn.keys()):
             if key.startswith('TEST_'):
                 del conn[key]
         # Check that they didn't just use the old name with 'TEST_' removed