use six.StringIO everywhere
This commit is contained in:
parent
ce1bf266f3
commit
e040745181
2 changed files with 5 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import mock
|
||||
import StringIO
|
||||
import six
|
||||
import unittest
|
||||
|
||||
import koji
|
||||
|
|
@ -120,7 +120,7 @@ class TestSaveFailedTree(unittest.TestCase):
|
|||
poll_interval=options.poll_interval,
|
||||
quiet=options.quiet)
|
||||
|
||||
@mock.patch('sys.stdout', new_callable=StringIO.StringIO)
|
||||
@mock.patch('sys.stdout', new_callable=six.StringIO)
|
||||
def test_handle_save_failed_tree_errors(self, stdout):
|
||||
# koji save-failed-tree 123 456
|
||||
arguments = [123, 456]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue