Skip to content

Commit

Permalink
Avoid unclosed file warning in test
Browse files Browse the repository at this point in the history
Maybe will help with test fragility
  • Loading branch information
nyalldawson committed Dec 17, 2024
1 parent 0039239 commit 2e83b6b
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 2e83b6b

Please sign in to comment.