mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
Fixed GIS tests to again skip without error when GEOS is not installed.
This commit is contained in:
parent
5bcd292098
commit
4932a7b8e0
1 changed files with 1 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue