summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-02-28 09:50:18 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-02-28 09:50:18 +0000
commit4b641b78fa1e9cf774d1c0339ef07a854c35e011 (patch)
tree6384bd5af48583071f4264ff2fcca60d828e8916
parentabf2d4295f0ec52fdafdda956ad3e5bc59e63d63 (diff)
Fixed #17786 -- Exception when running the tests under Oracle, during the destruction of the test database.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/backends/oracle/creation.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/django/db/backends/oracle/creation.py b/django/db/backends/oracle/creation.py
index 44f8d914fa..c6b04da57f 100644
--- a/django/db/backends/oracle/creation.py
+++ b/django/db/backends/oracle/creation.py
@@ -40,8 +40,12 @@ class DatabaseCreation(BaseDatabaseCreation):
'URLField': 'VARCHAR2(%(max_length)s)',
}
+ # This dictionary stores the original values of user and passwd, which are
+ # changed during the tests. It's stored at the class level because the
+ # test database is created and destroyed by different connections (#17786).
+ remember = {}
+
def __init__(self, connection):
- self.remember = {}
super(DatabaseCreation, self).__init__(connection)
def _create_test_db(self, verbosity=1, autoclobber=False):