use six.StringIO everywhere

This commit is contained in:
Tomas Kopecek 2017-11-07 13:37:20 +01:00 committed by Mike McLean
parent ce1bf266f3
commit e040745181
2 changed files with 5 additions and 5 deletions

View file

@ -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]