]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix Python 3 issues in Hitachi HNAS tests
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Jun 2015 14:59:21 +0000 (16:59 +0200)
committerVictor Stinner <vstinner@redhat.com>
Sat, 25 Jul 2015 01:10:31 +0000 (03:10 +0200)
commitd24d07524253e31748bd436b9c1be76d18490c3d
tree48f5d0eead0bc1860d13ac36fc9e101470c40b41
parentba1ae4ada027901888e22ac4a70ed9f5242c6c0a
Fix Python 3 issues in Hitachi HNAS tests

* Replace __builtin__ with six.moves.builtins.
* Replace tempfile.mkstemp() with tempfile.NamedTemporaryFile() to get a
  text file instead of a binary file.
* tox.ini: add the following tests to Python 3.4

  - cinder.tests.unit.test_hitachi_hnas_backend
  - cinder.tests.unit.test_hitachi_hnas_iscsi
  - cinder.tests.unit.test_hitachi_hnas_nfs

Blueprint cinder-python3
Change-Id: I9a26b4e67033a443271e8f13bcaea5e122ec865a
cinder/tests/unit/test_hitachi_hnas_backend.py
cinder/tests/unit/test_hitachi_hnas_iscsi.py
cinder/tests/unit/test_hitachi_hnas_nfs.py
tox.ini