Removed module-level imports from `django.test` -- this prevented running the GEOS, GDAL tests from outside a Django environment (e.g., when there's no `settings.py`).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2009-05-02 16:17:36 +00:00
parent 71055085a3
commit cb5e8e29f0
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import sys, unittest import sys, unittest
from django.test.simple import reorder_suite, TestCase
from django.utils.importlib import import_module from django.utils.importlib import import_module
def geo_suite(): def geo_suite():
@ -120,7 +119,7 @@ def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[], suite=
from django.conf import settings from django.conf import settings
from django.db import connection from django.db import connection
from django.db.models import get_app, get_apps from django.db.models import get_app, get_apps
from django.test.simple import build_suite, build_test from django.test.simple import build_suite, build_test, reorder_suite, TestCase
from django.test.utils import setup_test_environment, teardown_test_environment from django.test.utils import setup_test_environment, teardown_test_environment
# The `create_test_spatial_db` routine abstracts away all the steps needed # The `create_test_spatial_db` routine abstracts away all the steps needed