mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[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:
parent
38e1169067
commit
4841fafb44
@ -5,7 +5,7 @@ import warnings
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
from django.db.utils import DatabaseError
|
from django.db.utils import DatabaseError
|
||||||
from django.template import Context, Template
|
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.test.utils import isolate_apps
|
||||||
from django.utils.deprecation import RemovedInDjango20Warning
|
from django.utils.deprecation import RemovedInDjango20Warning
|
||||||
from django.utils.encoding import force_text
|
from django.utils.encoding import force_text
|
||||||
@ -305,6 +305,7 @@ class TestManagerInheritance(TestCase):
|
|||||||
|
|
||||||
@isolate_apps('managers_regress')
|
@isolate_apps('managers_regress')
|
||||||
class TestManagerDeprecations(TestCase):
|
class TestManagerDeprecations(TestCase):
|
||||||
|
@skipUnlessDBFeature('gis_enabled')
|
||||||
def test_use_for_related_fields_on_geomanager(self):
|
def test_use_for_related_fields_on_geomanager(self):
|
||||||
from django.contrib.gis.db.models import GeoManager
|
from django.contrib.gis.db.models import GeoManager
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user