cStringIO is not offered by python3, so avoid using using this module.
this file does not exist in master anymore, so this change is not
cherry-picked from master.
Signed-off-by: Kefu Chai <kchai@redhat.com>
"""
Test Swift API
"""
-from cStringIO import StringIO
+from io import BytesIO
from configobj import ConfigObj
import base64
import contextlib
assert isinstance(config, dict)
log.info('Configuring testswift...')
testdir = teuthology.get_testdir(ctx)
- for client, testswift_conf in config.iteritems():
+ for client, testswift_conf in config.items():
(remote,) = ctx.cluster.only(client).remotes.keys()
remote.run(
args=[
'./bootstrap',
],
)
- conf_fp = StringIO()
+ conf_fp = BytesIO()
testswift_conf.write(conf_fp)
teuthology.write_file(
remote=remote,