Skip to content

Commit

Permalink
autotest: check_no_file_leaks(): hack to make it pass with 'Alpine, g…
Browse files Browse the repository at this point in the history
…cc' config
  • Loading branch information
rouault committed Oct 15, 2024
1 parent a96d6ae commit d68039a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autotest/gdrivers/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def check_no_file_leaks():
yield

diff = len(gdaltest.get_opened_files()) - num_files
assert diff == 0, "Leak of file handles: %d leaked" % diff
# For some weird reason, we sometimes get less files opened than at the
# start. Cf https://github.com/OSGeo/gdal/actions/runs/11349015748/job/31564138716?pr=10896
assert diff <= 0, "Leak of file handles: %d leaked" % diff


###############################################################################
Expand Down

0 comments on commit d68039a

Please sign in to comment.