summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-03-17 17:44:42 +0000
committerClaude Paroz <claude@2xlibre.net>2012-03-17 17:44:42 +0000
commitf0b9bb2ef958052ab9c9b414dbcfa653eca7b83e (patch)
treedee6951c00031cf5cb13a3ff78eed52d5d6b4565 /tests
parent69748864359f6038edca18b9e99a34fcc4a5a36b (diff)
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index fb646219fb..f7db3411cd 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -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))