From: Johannes 'josch' Schauer Date: Tue, 12 Feb 2019 06:53:19 +0100 Subject: add patch that fixes a race condition in tests (closes: #906335) Forwarded: https://github.com/pazz/alot/issues/1382 --- tests/commands/utils_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/commands/utils_tests.py b/tests/commands/utils_tests.py index 722f961..b1d0a2e 100644 --- a/tests/commands/utils_tests.py +++ b/tests/commands/utils_tests.py @@ -48,7 +48,7 @@ MOD_CLEAN.add_cleanup(DEVNULL.close) @MOD_CLEAN.wrap_setup def setUpModule(): home = tempfile.mkdtemp() - MOD_CLEAN.add_cleanup(shutil.rmtree, home) + MOD_CLEAN.add_cleanup(shutil.rmtree, home, ignore_errors=True) mock_home = mock.patch.dict(os.environ, {'GNUPGHOME': home}) mock_home.start() MOD_CLEAN.add_cleanup(mock_home.stop)