Browse files

Removed module-level imports from `django.test` -- this prevented run…

…ning 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
  • Loading branch information...
1 parent 7105508 commit cb5e8e29f062ac92397a3ce8c5454693bf9845ab @jbronn jbronn committed May 2, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 django/contrib/gis/tests/__init__.py
View
3 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

0 comments on commit cb5e8e2

Please sign in to comment.