[gdal-dev] os.remove and os.unlink in the testsuite

Ben Elliston ben.elliston at anu.edu.au
Mon Apr 16 02:33:33 PDT 2018


Hi Even

What do you think about adding some convenience functions to the
gdaltest module like "try_remove" and "try_unlink" that never throw an
exception if the file doesn't exist?  This would remove a lot of lines
like these from the test cases:

try:
  os.unlink('some file')
except OSError:
  pass

Cheers, Ben


More information about the gdal-dev mailing list