From e52807b86812de0e3c84a0228be7bce3bc8ab478 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 23 Jul 2023 10:31:59 -0300 Subject: [PATCH] cleanup --- tests/test_commands.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 20787ccc9..706755ed9 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -25,10 +25,7 @@ class TestCommands(TestCase): def tearDown(self): os.chdir(self.original_cwd) - try: - shutil.rmtree(self.tempdir) - except OSError: - pass # Ignore errors (Windows) + shutil.rmtree(self.tempdir, ignore_errors=True) def test_cmd_add(self): # Initialize the Commands and InputOutput objects