From 658562d14351e5afc96b87c76b38239deb342ee1 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 17 Dec 2024 18:23:28 +1000 Subject: [PATCH] Avoid unclosed file warning in test Maybe will help with test fragility --- tests/src/python/test_provider_shapefile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/python/test_provider_shapefile.py b/tests/src/python/test_provider_shapefile.py index ab1291a54a4a..952145239259 100644 --- a/tests/src/python/test_provider_shapefile.py +++ b/tests/src/python/test_provider_shapefile.py @@ -605,8 +605,11 @@ def testRepackUnderFileLocks(self): vl = None + f_shp.close() del f_shp + f_shx.close() del f_shx + f_dbf.close() del f_dbf # Test repacking has been done