mirror of
https://github.com/django/django.git
synced 2025-01-24 00:59:20 +00:00
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.core import serializers
|
||||||
from django.test import TestCase, skipUnlessDBFeature
|
from django.test import TestCase, skipUnlessDBFeature
|
||||||
|
|
||||||
from .models import City, MultiFields, PennsylvaniaCity
|
|
||||||
|
|
||||||
if HAS_GEOS:
|
if HAS_GEOS:
|
||||||
from django.contrib.gis.geos import LinearRing, Point, Polygon
|
from django.contrib.gis.geos import LinearRing, Point, Polygon
|
||||||
|
from .models import City, MultiFields, PennsylvaniaCity
|
||||||
|
|
||||||
|
|
||||||
@skipUnlessDBFeature("gis_enabled")
|
@skipUnlessDBFeature("gis_enabled")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user