summaryrefslogtreecommitdiff
path: root/tests/gis_tests/test_data.py
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2017-01-19 02:39:46 -0500
committerClaude Paroz <claude@2xlibre.net>2017-01-19 08:39:46 +0100
commitcecc079168e8669138728d31611ff3a1e7eb3a9f (patch)
tree2415083d44f84c6f206930fc689a8c0e50a98caa /tests/gis_tests/test_data.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'tests/gis_tests/test_data.py')
-rw-r--r--tests/gis_tests/test_data.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gis_tests/test_data.py b/tests/gis_tests/test_data.py
index 9e31b5a599..23df42c007 100644
--- a/tests/gis_tests/test_data.py
+++ b/tests/gis_tests/test_data.py
@@ -31,7 +31,7 @@ def get_ds_file(name, ext):
)
-class TestObj(object):
+class TestObj:
"""
Base testing object, turns keyword args into attributes.
"""
@@ -76,7 +76,7 @@ class TestGeom(TestObj):
super(TestGeom, self).__init__(**kwargs)
-class TestGeomSet(object):
+class TestGeomSet:
"""
Each attribute of this object is a list of `TestGeom` instances.
"""
@@ -85,7 +85,7 @@ class TestGeomSet(object):
setattr(self, key, [TestGeom(**strconvert(kw)) for kw in value])
-class TestDataMixin(object):
+class TestDataMixin:
"""
Mixin used for GEOS/GDAL test cases that defines a `geometries`
property, which returns and/or loads the reference geometry data.