diff options
| author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
| commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
| tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/gis_tests | |
| parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/gis_tests')
| -rw-r--r-- | tests/gis_tests/geoapp/models.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/geoapp/test_sitemaps.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/geos_tests/test_geos.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/geos_tests/test_mutable_list.py | 2 | ||||
| -rw-r--r-- | tests/gis_tests/gis_migrations/test_operations.py | 4 | ||||
| -rw-r--r-- | tests/gis_tests/test_data.py | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/tests/gis_tests/geoapp/models.py b/tests/gis_tests/geoapp/models.py index 83e3242043..363f3deaf0 100644 --- a/tests/gis_tests/geoapp/models.py +++ b/tests/gis_tests/geoapp/models.py @@ -94,7 +94,7 @@ class NonConcreteField(models.IntegerField): return None def get_attname_column(self): - attname, column = super(NonConcreteField, self).get_attname_column() + attname, column = super().get_attname_column() return attname, None diff --git a/tests/gis_tests/geoapp/test_sitemaps.py b/tests/gis_tests/geoapp/test_sitemaps.py index 61e06df728..09df326bc6 100644 --- a/tests/gis_tests/geoapp/test_sitemaps.py +++ b/tests/gis_tests/geoapp/test_sitemaps.py @@ -17,7 +17,7 @@ from .models import City, Country class GeoSitemapTest(TestCase): def setUp(self): - super(GeoSitemapTest, self).setUp() + super().setUp() Site(id=settings.SITE_ID, domain="example.com", name="example.com").save() def assertChildNodes(self, elem, expected): diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index b74d3ab708..c90927c5cc 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -1260,7 +1260,7 @@ class GEOSTest(SimpleTestCase, TestDataMixin): class ExtendedPolygon(Polygon): def __init__(self, *args, **kwargs): data = kwargs.pop('data', 0) - super(ExtendedPolygon, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self._data = data def __str__(self): diff --git a/tests/gis_tests/geos_tests/test_mutable_list.py b/tests/gis_tests/geos_tests/test_mutable_list.py index 26bdeb8045..4e6a44223d 100644 --- a/tests/gis_tests/geos_tests/test_mutable_list.py +++ b/tests/gis_tests/geos_tests/test_mutable_list.py @@ -14,7 +14,7 @@ class UserListA(ListMixin): def __init__(self, i_list, *args, **kwargs): self._list = self._mytype(i_list) - super(UserListA, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) def __len__(self): return len(self._list) diff --git a/tests/gis_tests/gis_migrations/test_operations.py b/tests/gis_tests/gis_migrations/test_operations.py index 0c8853a9f3..31301ad4ca 100644 --- a/tests/gis_tests/gis_migrations/test_operations.py +++ b/tests/gis_tests/gis_migrations/test_operations.py @@ -28,7 +28,7 @@ class OperationTestCase(TransactionTestCase): # Delete table after testing if hasattr(self, 'current_state'): self.apply_operations('gis', self.current_state, [migrations.DeleteModel('Neighborhood')]) - super(OperationTestCase, self).tearDown() + super().tearDown() @property def has_spatial_indexes(self): @@ -103,7 +103,7 @@ class OperationTestCase(TransactionTestCase): class OperationTests(OperationTestCase): def setUp(self): - super(OperationTests, self).setUp() + super().setUp() self.set_up_test_model() def test_add_geom_field(self): diff --git a/tests/gis_tests/test_data.py b/tests/gis_tests/test_data.py index 4bec3c677e..adcd57b48b 100644 --- a/tests/gis_tests/test_data.py +++ b/tests/gis_tests/test_data.py @@ -47,7 +47,7 @@ class TestDS(TestObj): # Shapefile is default extension, unless specified otherwise. ext = kwargs.pop('ext', 'shp') self.ds = get_ds_file(name, ext) - super(TestDS, self).__init__(**kwargs) + super().__init__(**kwargs) class TestGeom(TestObj): @@ -72,7 +72,7 @@ class TestGeom(TestObj): ext_ring_cs = tuplize(ext_ring_cs) self.ext_ring_cs = ext_ring_cs - super(TestGeom, self).__init__(**kwargs) + super().__init__(**kwargs) class TestGeomSet: |
