summaryrefslogtreecommitdiff
path: root/django/test/utils.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-08-20 03:16:55 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-08-20 03:16:55 +0000
commitb3912d360991f0e34beb9f584a21c0c532f822ac (patch)
tree4c1a7a88aa9d713bc235a112d52c6c15f2cbe1cd /django/test/utils.py
parentf0decc18cf91f7b6666b6cdbe7864300b41ba1ad (diff)
Changed backend create_test_db() and destroy_test_db() hooks NOT to take the backend as an argument, as the backend as an object is going away
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/test/utils.py')
-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 79aaa6d2c4..6edd186b54 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, backend, get_creation_module
+from django.db import connection, get_creation_module
from django.core import mail
from django.core.management import call_command
from django.dispatch import dispatcher
@@ -97,7 +97,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(settings, connection, backend, verbosity, autoclobber)
+ creation_module.create_test_db(settings, connection, verbosity, autoclobber)
return
if verbosity >= 1:
@@ -165,7 +165,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(settings, connection, backend, old_database_name, verbosity)
+ creation_module.destroy_test_db(settings, connection, old_database_name, verbosity)
return
# Unless we're using SQLite, remove the test database to clean up after