mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed GIS tests to again skip without error when GEOS is not installed.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user