diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-04 08:52:20 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-04 08:52:20 -0400 |
| commit | 8a780ec84721c1fc17433313bc024f34c9969e48 (patch) | |
| tree | 8e401c6a00b188785f7f173f56efa646254e8447 /tests | |
| parent | c92cd22d02349b73d169a3a2ff3b6fe7a54bfb0c (diff) | |
Fixed GeoIP test crash when dependencies not installed.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/test_geoip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gis_tests/test_geoip.py b/tests/gis_tests/test_geoip.py index 116f65b11d..4b283abf6b 100644 --- a/tests/gis_tests/test_geoip.py +++ b/tests/gis_tests/test_geoip.py @@ -8,7 +8,6 @@ from unittest import skipUnless from django.conf import settings from django.contrib.gis.geoip import HAS_GEOIP -from django.contrib.gis.geoip.prototypes import GeoIP_lib_version from django.contrib.gis.geos import HAS_GEOS, GEOSGeometry from django.test import ignore_warnings from django.utils import six @@ -17,6 +16,7 @@ from django.utils.encoding import force_text if HAS_GEOIP: from django.contrib.gis.geoip import GeoIP, GeoIPException + from django.contrib.gis.geoip.prototypes import GeoIP_lib_version # Note: Requires use of both the GeoIP country and city datasets. |
