Use six.StringIO instead of io.StringIO

Closes-Bug: 1613573
Change-Id: I14d72c514cff515652dc9424862873fe49e6615b
(cherry picked from commit 36abd2809a)
This commit is contained in:
tivaliy 2016-08-16 09:50:27 +03:00 committed by Vitalii Kulanov
parent b5cfe0ddfc
commit 4785bbc2c7

View File

@ -14,13 +14,14 @@
# License for the specific language governing permissions and limitations
# under the License.
import io
import json
import mock
import six
import yaml
from six import StringIO
from fuelclient import main as main_mod
from fuelclient.tests.unit.v2.cli import test_engine
from fuelclient.tests.utils import fake_node
@ -119,7 +120,7 @@ node-4 ansible_host=10.20.0.5
'''
args = 'node ansible-inventory --env 1'
with mock.patch('sys.stdout', new=io.StringIO()) as mstdout:
with mock.patch('sys.stdout', new=StringIO()) as mstdout:
rv = self.exec_command(args)
actual_output = mstdout.getvalue()