diff options
| author | Mads Jensen <mje@inducks.org> | 2017-10-21 15:42:25 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-21 09:42:25 -0400 |
| commit | 45d5d2dcaa72aa60a2ad2b8d7f0f299b8410b314 (patch) | |
| tree | 659d883a25ecafa33673dc45052518ff6054cbbe /tests/gis_tests | |
| parent | 0f722d865ee556816c36ae6c6bf229904b5142dd (diff) | |
Removed unnecessary tuple()/list() calls.
Diffstat (limited to 'tests/gis_tests')
| -rw-r--r-- | tests/gis_tests/rasterapp/test_rasterfield.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gis_tests/rasterapp/test_rasterfield.py b/tests/gis_tests/rasterapp/test_rasterfield.py index 710305fe62..cf64e8a82c 100644 --- a/tests/gis_tests/rasterapp/test_rasterfield.py +++ b/tests/gis_tests/rasterapp/test_rasterfield.py @@ -127,11 +127,11 @@ class RasterFieldTest(TransactionTestCase): stx_pnt = GEOSGeometry('POINT (-95.370401017314293 29.704867409475465)', 4326) stx_pnt.transform(3086) - lookups = list( + lookups = [ (name, lookup) for name, lookup in BaseSpatialField.get_lookups().items() if issubclass(lookup, GISLookup) - ) + ] self.assertNotEqual(lookups, [], 'No lookups found') # Loop through all the GIS lookups. for name, lookup in lookups: @@ -185,7 +185,7 @@ class RasterFieldTest(TransactionTestCase): len(combo_values), 'Number of lookup names and values should be the same', ) - combos = list(x for x in zip(combo_keys, combo_values) if x[1]) + combos = [x for x in zip(combo_keys, combo_values) if x[1]] self.assertEqual( [(n, x) for n, x in enumerate(combos) if x in combos[:n]], [], |
