summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/test/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/test/utils.py b/django/test/utils.py
index ba564062d2..6241d7c6b6 100644
--- a/django/test/utils.py
+++ b/django/test/utils.py
@@ -1,6 +1,6 @@
import sys, time
from django.conf import settings
-from django.db import connection, transaction, backend, get_creation_module
+from django.db import connection, backend, get_creation_module
from django.dispatch import dispatcher
from django.test import signals
from django.template import Template
@@ -46,7 +46,7 @@ def create_test_db(verbosity=1, autoclobber=False):
# If the database backend wants to create the test DB itself, let it
creation_module = get_creation_module()
if hasattr(creation_module, "create_test_db"):
- creation_module.create_test_db(verbosity, autoclobber)
+ creation_module.create_test_db(settings, connection, backend, verbosity, autoclobber)
if verbosity >= 1:
print "Creating test database..."
@@ -97,7 +97,7 @@ def destroy_test_db(old_database_name, verbosity=1):
# If the database wants to drop the test DB itself, let it
creation_module = get_creation_module()
if hasattr(creation_module, "destroy_test_db"):
- creation_module.destroy_test_db(old_database_name, verbosity=1)
+ creation_module.destroy_test_db(settings, connection, backend, old_database_name, verbosity)
# Unless we're using SQLite, remove the test database to clean up after
# ourselves. Connect to the previous database (not the test database)