Race condition: collection error when directory is deleted before scandir()
runs
#13083
Labels
good first issue
easy issue that is friendly to new contributor
type: bug
problem that needs to be addressed
Our
scandir()
function crashes if the directory to scan does not exist, which can happen if e.g. a tempory directory is deleted during collection (as in HypothesisWorks/hypothesis#4200). I therefore propose catching the directory-not-found error and returning[]
in this case:The text was updated successfully, but these errors were encountered: