Skip to content

Commit

Permalink
Do not unconditionally add extra_tests when testing geodjango.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
claudep committed Mar 17, 2012
1 parent 6974886 commit f0b9bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/runtests.py
Expand Up @@ -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))

Expand Down

0 comments on commit f0b9bb2

Please sign in to comment.