]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port image/glance.py to Python 3
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Jun 2015 14:06:28 +0000 (16:06 +0200)
committerVictor Stinner <vstinner@redhat.com>
Thu, 2 Jul 2015 11:33:28 +0000 (13:33 +0200)
commitc67d8b2d2ddbf62640443c29b2879019411e7564
treec14c890761c7124fb160adf4a98051c82787a120
parent85b0917570e895506938d12e0a9fc8b64449aa78
Port image/glance.py to Python 3

* Fix usage of six.reraise(): new_exc is the exception value, not the
  exception type
* Replace __builtin__ with six.moves.builtins.
* test_extracting_v2_boot_properties(): set config.glance_num_retries to
  fix the test on Python 3 (comparison between mock and int now raises
  a TypeError on Python 3).
* TestGlanceSerializer: use dictionaries with only one key to have a
  reliable output even if the hash is randomized (hash randomization is
  now enabled by default in Python 3).
* tox.ini: add cinder.tests.unit.image.test_glance to Python 3.4.

Blueprint cinder-python3
Change-Id: I33cd02e1b0666d7b5999b2fdaf469dc59fff1866
cinder/image/glance.py
cinder/tests/unit/image/test_glance.py
tox.ini