[1.11.x] Refs #28160 -- Skipped a GeoManager test if not using a GIS database backend.

The test errors if GDAL isn't installed.
This commit is contained in:
Tim Graham 2017-05-09 10:04:58 -04:00 committed by GitHub
parent 38e1169067
commit 4841fafb44
1 changed files with 2 additions and 1 deletions

View File

@ -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