Update tmpdir.py

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

View File

@ -308,7 +308,7 @@ def pytest_sessionfinish(session, exitstatus: Union[int, ExitCode]):
if basetemp.exists():
# 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)
rmtree(basetemp, ignore_errors=True)
return
# Remove dead symlinks.