diff options
| author | Tim Graham <timograham@gmail.com> | 2017-05-09 10:04:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-09 10:04:58 -0400 |
| commit | 4841fafb4421a215e854f68daebde2d4cfccfc3f (patch) | |
| tree | f5bd9bd2eb68cbb3c0f8c66baeea870a96c22cbe /tests | |
| parent | 38e116906703540379fd7e72d5404e7a9b123b1d (diff) | |
[1.11.x] Refs #28160 -- Skipped a GeoManager test if not using a GIS database backend.
The test errors if GDAL isn't installed.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/managers_regress/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/managers_regress/tests.py b/tests/managers_regress/tests.py index 1ff34dede3..c9e9f07188 100644 --- a/tests/managers_regress/tests.py +++ b/tests/managers_regress/tests.py @@ -5,7 +5,7 @@ import warnings from django.db import models from django.db.utils import DatabaseError from django.template import Context, Template -from django.test import TestCase, override_settings +from django.test import TestCase, override_settings, skipUnlessDBFeature from django.test.utils import isolate_apps from django.utils.deprecation import RemovedInDjango20Warning from django.utils.encoding import force_text @@ -305,6 +305,7 @@ class TestManagerInheritance(TestCase): @isolate_apps('managers_regress') class TestManagerDeprecations(TestCase): + @skipUnlessDBFeature('gis_enabled') def test_use_for_related_fields_on_geomanager(self): from django.contrib.gis.db.models import GeoManager |
