mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[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
This commit is contained in:
parent
a7a47017b9
commit
731e2e60cd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user