From 4932a7b8e0a25c7447d7ad7ae8ae53a35d2541ac Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 19 Nov 2014 14:29:05 -0700 Subject: [PATCH] Fixed GIS tests to again skip without error when GEOS is not installed. --- django/contrib/gis/tests/geoapp/test_serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/contrib/gis/tests/geoapp/test_serializers.py b/django/contrib/gis/tests/geoapp/test_serializers.py index 18809264f8..5656ea6f4e 100644 --- a/django/contrib/gis/tests/geoapp/test_serializers.py +++ b/django/contrib/gis/tests/geoapp/test_serializers.py @@ -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")