Skip to content

Commit 02eca6c

Browse files
committed
Added more relative imports in contrib.gis.
1 parent d04f72f commit 02eca6c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

django/contrib/gis/gdal/tests/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
Module for executing all of the GDAL tests. None
33
of these tests require the use of the database.
44
"""
5+
from __future__ import absolute_import
6+
57
from django.utils.unittest import TestSuite, TextTestRunner
68

79
# Importing the GDAL test modules.
8-
import test_driver, test_ds, test_envelope, test_geom, test_srs
10+
from . import test_driver, test_ds, test_envelope, test_geom, test_srs
911

1012
test_suites = [test_driver.suite(),
1113
test_ds.suite(),

django/contrib/gis/geoip/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
Grab GeoIP.dat.gz and GeoLiteCity.dat.gz, and unzip them in the directory
1212
corresponding to settings.GEOIP_PATH.
1313
"""
14+
from __future__ import absolute_import
15+
1416
try:
15-
from django.contrib.gis.geoip.base import GeoIP, GeoIPException
17+
from .base import GeoIP, GeoIPException
1618
HAS_GEOIP = True
1719
except:
1820
HAS_GEOIP = False

django/contrib/gis/geos/tests/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""
22
GEOS Testing module.
33
"""
4+
from __future__ import absolute_import
5+
46
from django.utils.unittest import TestSuite, TextTestRunner
5-
import test_geos, test_io, test_geos_mutation, test_mutable_list
7+
from . import test_geos, test_io, test_geos_mutation, test_mutable_list
68

79
test_suites = [
810
test_geos.suite(),

0 commit comments

Comments
 (0)