From 6bccaa958248dd80eab6bb4eeb31ddb51a4faf4a Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 4 Aug 2022 16:52:09 +0200 Subject: Use tempfile.TemporaryDirectory() instead of the old mkdtemp --- tests/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_commands.py') diff --git a/tests/test_commands.py b/tests/test_commands.py index 83f5c5e..9cd5c88 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -57,7 +57,7 @@ class testCommandsSimple(unittest.TestCase, CommandsMixin): self._run_command(command.Index(), args) def tearDown(self): - pass + self.tmpdir.cleanup() def test_init(self): args = { @@ -216,7 +216,7 @@ class testCommandsComplex(unittest.TestCase, CommandsMixin): self._run_command(command.Index(), args) def tearDown(self): - pass + self.tmpdir.cleanup() def test_get_values_from_list(self): args = { -- cgit v1.2.3