summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-04-16 19:59:53 -0400
committerTim Graham <timograham@gmail.com>2015-04-16 20:01:30 -0400
commitd0b18542f740b358fb776e2b158ac69ff154896e (patch)
tree12f8895b077c29f2869db4abec26aa21ba2b3268
parent9e5e4914ef1c7dacb9e2c4581dbadc9e1e437d67 (diff)
[1.8.x] Fixed gis_tests when run without GIS dependencies.
Backport of ed336a1a5d3991acef2208b7aaf9fbe99af48a14 from master
-rw-r--r--tests/gis_tests/distapp/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/distapp/tests.py b/tests/gis_tests/distapp/tests.py
index 1889f2d9f9..bde78a8e06 100644
--- a/tests/gis_tests/distapp/tests.py
+++ b/tests/gis_tests/distapp/tests.py
@@ -1,6 +1,6 @@
from __future__ import unicode_literals
-from django.contrib.gis.geos import HAS_GEOS, Point
+from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.measure import D # alias for Distance
from django.db import connection
from django.db.models import Q
@@ -9,7 +9,7 @@ from django.test import TestCase, skipUnlessDBFeature
from ..utils import no_oracle, oracle, postgis, spatialite
if HAS_GEOS:
- from django.contrib.gis.geos import GEOSGeometry, LineString
+ from django.contrib.gis.geos import GEOSGeometry, LineString, Point
from .models import (AustraliaCity, Interstate, SouthTexasInterstate,
SouthTexasCity, SouthTexasCityFt, CensusZipcode, SouthTexasZipcode)