Commit cb5e8e29 authored by Justin Bronn's avatar Justin Bronn
Browse files

Removed module-level imports from `django.test` -- this prevented running the...

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
parent 71055085
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
import sys, unittest
from django.test.simple import reorder_suite, TestCase
from django.utils.importlib import import_module

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.db import connection
    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

    # The `create_test_spatial_db` routine abstracts away all the steps needed