From b623143327868cafaa22f3e426d752c2bfb9c088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= <sybren@stuvel.eu> Date: Thu, 16 Mar 2017 14:57:24 +0100 Subject: [PATCH] Explicitly clean up temporary directory after tests. --- tests/test_commands_merge_exr.py | 2 +- tests/test_commands_move_out_of_way.py | 2 +- tests/test_commands_move_to_final.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_commands_merge_exr.py b/tests/test_commands_merge_exr.py index faf53345..f40bb9fb 100644 --- a/tests/test_commands_merge_exr.py +++ b/tests/test_commands_merge_exr.py @@ -21,7 +21,7 @@ class MergeProgressiveRendersCommandTest(AbstractCommandTest): def tearDown(self): super().tearDown() - del self.tmpdir + self.tmpdir.cleanup() def test_happy_flow(self): output = Path(self.tmpdir.name) / 'merged.exr' diff --git a/tests/test_commands_move_out_of_way.py b/tests/test_commands_move_out_of_way.py index 655d7c6a..fce01100 100644 --- a/tests/test_commands_move_out_of_way.py +++ b/tests/test_commands_move_out_of_way.py @@ -20,7 +20,7 @@ class MoveOutOfWayTest(AbstractCommandTest): def tearDown(self): super().tearDown() - del self.tmpdir + self.tmpdir.cleanup() def test_nonexistant_source(self): src = Path(self.tmpdir.name) / 'nonexistant-dir' diff --git a/tests/test_commands_move_to_final.py b/tests/test_commands_move_to_final.py index d50d7fac..8b9976b8 100644 --- a/tests/test_commands_move_to_final.py +++ b/tests/test_commands_move_to_final.py @@ -23,7 +23,7 @@ class MoveToFinalTest(AbstractCommandTest): def tearDown(self): super().tearDown() - del self.tmpdir + self.tmpdir.cleanup() def test_nonexistant_source(self): src = self.tmppath / 'nonexistant-dir' -- GitLab