]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port backup drivers to Python 3
authorVictor Stinner <vstinner@redhat.com>
Tue, 9 Feb 2016 10:47:31 +0000 (11:47 +0100)
committerVictor Stinner <vstinner@redhat.com>
Tue, 9 Feb 2016 10:52:42 +0000 (11:52 +0100)
commitfca244f117f9de2d956619482cba0147b0b7afa1
tree7b2aacc2fe48923d3186d0fa454387140fae3569
parent3f2fe6266ec48327b60c9ed73d2a30ae976beb83
Port backup drivers to Python 3

* PosixBackupDriver: open file in binary mode (to read/write).
  Update test_backup_posix.py for that.
* test_backup_nfs: buffer() doesn't exist and is no more needed on
  Python 3, only use buffer() on Python 2.
* tests-py3.txt: add cinder.tests.unit.backup

Partial-Implements: blueprint cinder-python3
Change-Id: I250d7378547df474f3c78024a737a3e2fa9bbaf4
cinder/backup/drivers/posix.py
cinder/tests/unit/backup/drivers/test_backup_nfs.py
cinder/tests/unit/backup/drivers/test_backup_posix.py
tests-py3.txt