Skip to content

Commit

Permalink
Add ignore_cleanup_errors for TemporaryDirectory to supress occasiona…
Browse files Browse the repository at this point in the history
…l errors on Windows
  • Loading branch information
mlech-reef committed Nov 27, 2024
1 parent bf4b165 commit ac26896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def auto_change_account_info_dir(monkeysession) -> str:
monkeysession.delenv('B2_APPLICATION_KEY', raising=False)

# make b2sdk use temp dir for storing default & per-profile account information
with TemporaryDirectory() as temp_dir:
with TemporaryDirectory(ignore_cleanup_errors=True) as temp_dir:
monkeysession.setenv(B2_ACCOUNT_INFO_ENV_VAR, path.join(temp_dir, '.b2_account_info'))
monkeysession.setenv(XDG_CONFIG_HOME_ENV_VAR, temp_dir)
yield temp_dir
Expand Down

0 comments on commit ac26896

Please sign in to comment.