magic-removal: Changed runtests.py to fix import-order error in overriding settings.INSTALLED_APPS

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-14 03:50:46 +00:00
parent 8d4f9f73c8
commit 710d865b9d
1 changed files with 3 additions and 2 deletions

View File

@ -64,12 +64,13 @@ class TestRunner:
def run_tests(self):
from django.conf import settings
from django.core.db import db
from django.core import management, meta
# Manually set INSTALLED_APPS to point to the test models.
settings.INSTALLED_APPS = [MODEL_TESTS_DIR_NAME + '.' + a for a in get_test_models()]
from django.core.db import db
from django.core import management, meta
# Determine which models we're going to test.
test_models = get_test_models()
if self.which_tests: