diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-02-05 21:15:47 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-02-05 21:17:01 +0100 |
| commit | a0fc7fa5df1545b34e1d31312aebc7ca31db6ef3 (patch) | |
| tree | 410a4003ca79b5dbd4603b30bb70a50e93a4eaec | |
| parent | f265c1ef13e6eaa75c8e1cfdaade527a1505bb5e (diff) | |
Fixed ImportError when running contrib.gis tests without libgeos installed.
| -rw-r--r-- | django/contrib/gis/tests/maps/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/gis/tests/maps/tests.py b/django/contrib/gis/tests/maps/tests.py index a2a7cd4cc2..a37fc55d97 100644 --- a/django/contrib/gis/tests/maps/tests.py +++ b/django/contrib/gis/tests/maps/tests.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from unittest import skipUnless -from django.contrib.gis.geos import HAS_GEOS, Point +from django.contrib.gis.geos import HAS_GEOS from django.test import TestCase from django.test.utils import override_settings @@ -30,6 +30,7 @@ class GoogleMapsTest(TestCase): """ Test that GoogleMap doesn't crash with non-ascii content. """ + from django.contrib.gis.geos import Point from django.contrib.gis.maps.google.gmap import GoogleMap, GMarker center = Point(6.146805, 46.227574) |
