Update tmpdir.py

This commit is contained in:
Bruno Oliveira 2023-04-14 12:37:50 -03:00 committed by GitHub
parent 1063022efe
commit 821ed6f552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ def pytest_sessionfinish(session, exitstatus: Union[int, ExitCode]):
# We do a "best effort" to remove files, but it might not be possible due to some leaked resource,
# permissions, etc, in which case we ignore it.
rmtree(passed_dir, ignore_errors=True)
return
# Remove dead symlinks.
cleanup_dead_symlinks(basetemp)