]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port targets test_iet_driver to Python 3
authorVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 15:14:54 +0000 (17:14 +0200)
committerVictor Stinner <vstinner@redhat.com>
Wed, 7 Oct 2015 15:20:56 +0000 (17:20 +0200)
commit7d849b5da48a4edb29db288c041b945cc34f667a
tree3ac7b3887e84cb4ac2aa792edec9d950e91c393a
parenta37618f55b44d8ffc5740632d251d8c53c348418
Port targets test_iet_driver to Python 3

* Replace StandardError with MemoryError: StandardError was removed
  in Python 3
* Replace __builtin__ with six.moves.builtins to mock open()
* Mock the logger in test_create_iscsi_target() because the test
  injects errors in open() and the logger uses open() to format the
  traceback
* tox.ini: add cinder.tests.unit.targets.test_iet_driver to Python 3.4

Partial-Implements: blueprint cinder-python3
Change-Id: I7c83da7374ef78cc98bd6c0c5596b7a7adb70303
cinder/tests/unit/targets/test_iet_driver.py
tests-py3.txt