From 731e2e60cdf378b43ad0c5b76008e14482c6484d Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sat, 4 Nov 2006 22:51:28 +0000 Subject: [PATCH] [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 --- django/test/utils.py | 2 ++ 1 file changed, 2 insertions(+) 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)