mirror of https://github.com/django/django.git
Fixed GIS tests to again skip without error when GEOS is not installed.
This commit is contained in:
parent
5bcd292098
commit
4932a7b8e0
|
@ -6,10 +6,9 @@ from django.contrib.gis.geos import HAS_GEOS
|
|||
from django.core import serializers
|
||||
from django.test import TestCase, skipUnlessDBFeature
|
||||
|
||||
from .models import City, MultiFields, PennsylvaniaCity
|
||||
|
||||
if HAS_GEOS:
|
||||
from django.contrib.gis.geos import LinearRing, Point, Polygon
|
||||
from .models import City, MultiFields, PennsylvaniaCity
|
||||
|
||||
|
||||
@skipUnlessDBFeature("gis_enabled")
|
||||
|
|
Loading…
Reference in New Issue