]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port vzstorage to Python 3
authorVictor Stinner <vstinner@redhat.com>
Sun, 8 Nov 2015 21:04:45 +0000 (22:04 +0100)
committerVictor Stinner <vstinner@redhat.com>
Sun, 8 Nov 2015 21:07:57 +0000 (22:07 +0100)
commit2c49f5ddfcb358c04bf581fc78662877c7d22738
tree7ecf17e5ce955b0e31ee71605da2f6b7d288b727
parent5bc425235b19715e9f835480a29cb2e17cbf64c7
Port vzstorage to Python 3

* vzstorage: replace a/b with a//b to use integer division on
  Python 3.
* fix os.path.exists mock: only override return for path /fake
  (shares config)
* tests-py3.txt: add cinder.tests.unit.test_vzstorage

Note: remove also spaces in parameters in two functions calls to
respect the PEP 8.

Partial-Implements: blueprint cinder-python3
Change-Id: I7cee7009d8bc87cd0294e90cb2967f4560276994
cinder/tests/unit/test_vzstorage.py
cinder/volume/drivers/vzstorage.py
tests-py3.txt