Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed some breakages in the test database handling from r10026.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6c6edb9d043db0d0c753b8c9be98d01444188f25 1 parent 315145f
@malcolmt malcolmt authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/db/backends/creation.py
View
3  django/db/backends/creation.py
@@ -321,7 +321,9 @@ def create_test_db(self, verbosity=1, autoclobber=False):
self.connection.close()
settings.DATABASE_NAME = test_database_name
+ self.connection.settings_dict["DATABASE_NAME"] = test_database_name
settings.DATABASE_SUPPORTS_TRANSACTIONS = self._rollback_works()
+ self.connection.settings_dict["DATABASE_SUPPORTS_TRANSACTIONS"] = self._rollback_works()
call_command('syncdb', verbosity=verbosity, interactive=False)
@@ -397,6 +399,7 @@ def destroy_test_db(self, old_database_name, verbosity=1):
self.connection.close()
test_database_name = settings.DATABASE_NAME
settings.DATABASE_NAME = old_database_name
+ self.connection.settings_dict["DATABASE_NAME"] = old_database_name
self._destroy_test_db(test_database_name, verbosity)
Please sign in to comment.
Something went wrong with that request. Please try again.