summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2006-11-04 22:51:28 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2006-11-04 22:51:28 +0000
commit731e2e60cdf378b43ad0c5b76008e14482c6484d (patch)
tree4ba07b68f7698459c05b66628ade7bbb5099e2fc
parenta7a47017b901a9ffbb19ff84ed4c1e9fb8c818c1 (diff)
[boulder-oracle-sprint] added two stupidly missing "return" statements to create/destroy test DB functions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@3995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/test/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/test/utils.py b/django/test/utils.py
index 6241d7c6b6..8548303dea 100644
--- a/django/test/utils.py
+++ b/django/test/utils.py
@@ -47,6 +47,7 @@ def create_test_db(verbosity=1, autoclobber=False):
creation_module = get_creation_module()
if hasattr(creation_module, "create_test_db"):
creation_module.create_test_db(settings, connection, backend, verbosity, autoclobber)
+ return
if verbosity >= 1:
print "Creating test database..."
@@ -98,6 +99,7 @@ def destroy_test_db(old_database_name, verbosity=1):
creation_module = get_creation_module()
if hasattr(creation_module, "destroy_test_db"):
creation_module.destroy_test_db(settings, connection, backend, old_database_name, verbosity)
+ return
# Unless we're using SQLite, remove the test database to clean up after
# ourselves. Connect to the previous database (not the test database)