diff --git a/tests/test_commands_merge_exr.py b/tests/test_commands_merge_exr.py
index faf533454002dbb4992e4f23cce8a54ea5c7c86f..f40bb9fb2ce73f5ecfadeabb759df9ea783cc225 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 655d7c6a79fce842e0d893a8836a41bb08534d51..fce01100d1df7edf8e53ef25f97998ea2dab4cc0 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 d50d7facecee1dc42937265a081b35fb6a390001..8b9976b8a625d0b290698b7ca442fde58796fa50 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'