From cb5e8e29f062ac92397a3ce8c5454693bf9845ab Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Sat, 2 May 2009 16:17:36 +0000 Subject: [PATCH] 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 --- django/contrib/gis/tests/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/contrib/gis/tests/__init__.py b/django/contrib/gis/tests/__init__.py index e5b56cdac8..75b8fc9d0d 100644 --- a/django/contrib/gis/tests/__init__.py +++ b/django/contrib/gis/tests/__init__.py @@ -1,5 +1,4 @@ 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