mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Do not unconditionally add extra_tests when testing geodjango.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6974886435
commit
f0b9bb2ef9
@ -152,7 +152,7 @@ def django_tests(verbosity, interactive, failfast, test_labels):
|
||||
|
||||
# If GeoDjango is used, add it's tests that aren't a part of
|
||||
# an application (e.g., GEOS, GDAL, Distance objects).
|
||||
if geodjango(settings):
|
||||
if geodjango(settings) and (not test_labels or 'gis' in test_labels):
|
||||
from django.contrib.gis.tests import geodjango_suite
|
||||
extra_tests.append(geodjango_suite(apps=False))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user