avoid leaving stray temp files
This commit is contained in:
parent
8d8274a35e
commit
6002373ff9
8 changed files with 82 additions and 60 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue