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