]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix Python 3 issues in targets unit tests
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Jun 2015 14:14:09 +0000 (16:14 +0200)
committerVictor Stinner <vstinner@redhat.com>
Tue, 30 Jun 2015 14:23:13 +0000 (16:23 +0200)
commite97b10d15a9e14b4d6fed1cfd37e0088100b8200
treebed7b9d44fe03388d98a06e1204978bb09c5fc75
parent87016e624b8dd5574d0c678e5869510b1358a7da
Fix Python 3 issues in targets unit tests

* Replace StandardError with ZeroDivisionError: StandardError was
  removed in Python 3.
* Replace __builtin__ with six.moves.builtins.
* Open text mode with "w" mode (instead of "wb").
* tox.ini: add targets unit tests to Python 3.4

Note: cinder.tests.unit.targets.test_iet_driver still fails on Python 3,
it will be fixed in a different change.

Blueprint cinder-python3
Change-Id: Ie0f5d2dfaf2ffdeab29fe40f692a2f09fb5a7aba
cinder/tests/unit/targets/test_cxt_driver.py
cinder/tests/unit/targets/test_tgt_driver.py
tox.ini