1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #28569 -- Corrected get_layer_by_name prototype to skip error checking.

All other get_*_by_name functions have errcheck=False. This makes it
return None for an invalid name instead of raising a GDALException.
This commit is contained in:
Nick Pope
2017-09-03 23:00:07 +01:00
committed by Tim Graham
parent c9b22707b0
commit 0d9e1163e8
2 changed files with 4 additions and 1 deletions

View File

@@ -86,6 +86,9 @@ class DataSourceTest(unittest.TestCase):
with self.assertRaises(IndexError):
ds[len(ds)]
with self.assertRaises(IndexError):
ds['invalid']
def test02_invalid_shp(self):
"Testing invalid SHP files for the Data Source."
for source in bad_ds: