Skip to content

Commit

Permalink
Merge pull request #59931 from nyalldawson/fix_test_close
Browse files Browse the repository at this point in the history
Avoid unclosed file warning in test
  • Loading branch information
alexbruy authored Dec 17, 2024
2 parents 3e0b744 + 2e83b6b commit 98e89dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/python/test_provider_shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98e89dc

Please sign in to comment.