avoid leaving stray temp files

This commit is contained in:
Mike McLean 2024-07-11 16:57:33 -04:00 committed by Tomas Kopecek
parent 8d8274a35e
commit 6002373ff9
8 changed files with 82 additions and 60 deletions

View file

@ -3,6 +3,7 @@ from __future__ import absolute_import
import unittest
import mock
import shutil
import six
import tempfile
@ -45,6 +46,7 @@ class TestRepoinfo(utils.CliTestCase):
def tearDown(self):
mock.patch.stopall()
shutil.rmtree(self.tempdir)
@mock.patch('koji.formatTimeLong', return_value='Thu, 01 Jan 2000')
@mock.patch('sys.stderr', new_callable=six.StringIO)