Fixed GIS tests to again skip without error when GEOS is not installed.

This commit is contained in:
Carl Meyer 2014-11-19 14:29:05 -07:00
parent 5bcd292098
commit 4932a7b8e0
1 changed files with 1 additions and 2 deletions

View File

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