commit | eeb271a21ef1bdcda060643b970ecff15c30b1a1 | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Tue May 30 20:26:01 2017 +0100 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Wed May 31 21:06:38 2017 +0100 |
tree | cb6c80394cfd120f87dd43c12ec8ce0196b607c8 | |
parent | a44dddf13a6973d35f7bd81c6c3ad0a2550a72b9 [diff] |
[Gate fix] Fix py35 gate due to incompatible import The py35 gate is failing due to the same issue for a few tests [0]: when creating an image with random bytes, six.moves.cStringIO is used, when the compatible way is instead six.StringIO. This commit also makes ``test_create_server_forced_host`` compatible with python3. Currently, the following error is thrown: TypeError: 'dict_keys' object does not support indexing This commit wraps keys() with list() before indexing to fix the error. [0] http://logs.openstack.org/51/462251/19/check/gate-tempest-dsvm-patrole-py35-member-ubuntu-xenial-nv/cdb7cdb/console.html Change-Id: I8728c2e68f99807b70bd566fd8e0b6b9caf871af Closes-Bug: #1689960