Author: mtredinnick
Date: 2007-09-14 07:48:10 -0500 (Fri, 14 Sep 2007)
New Revision: 6186

Modified:
   django/trunk/tests/runtests.py
Log:
Fixed #5453 -- Fixed TEST_DATABASE_NAME handling to match documentation. 
Thanks, Matt Croydon.


Modified: django/trunk/tests/runtests.py
===================================================================
--- django/trunk/tests/runtests.py      2007-09-14 12:39:03 UTC (rev 6185)
+++ django/trunk/tests/runtests.py      2007-09-14 12:48:10 UTC (rev 6186)
@@ -15,7 +15,6 @@
 MODEL_TESTS_DIR_NAME = 'modeltests'
 REGRESSION_TESTS_DIR_NAME = 'regressiontests'
 
-TEST_DATABASE_NAME = 'django_test_db'
 TEST_TEMPLATE_DIR = 'templates'
 
 CONTRIB_DIR = os.path.dirname(contrib.__file__)
@@ -97,7 +96,6 @@
     old_middleware_classes = settings.MIDDLEWARE_CLASSES
 
     # Redirect some settings for the duration of these tests.
-    settings.TEST_DATABASE_NAME = TEST_DATABASE_NAME
     settings.INSTALLED_APPS = ALWAYS_INSTALLED_APPS
     settings.ROOT_URLCONF = 'urls'
     settings.TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 
TEST_TEMPLATE_DIR),)
@@ -150,7 +148,6 @@
 
     # Restore the old settings.
     settings.INSTALLED_APPS = old_installed_apps
-    settings.TESTS_DATABASE_NAME = old_test_database_name
     settings.ROOT_URLCONF = old_root_urlconf
     settings.TEMPLATE_DIRS = old_template_dirs
     settings.USE_I18N = old_use_i18n


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to