]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix Python 3 issues in cmd
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Jun 2015 14:47:15 +0000 (16:47 +0200)
committerVictor Stinner <vstinner@redhat.com>
Thu, 2 Jul 2015 11:42:20 +0000 (13:42 +0200)
commit432c23dddbc1adc236f38b8c01c85783dee8c189
treeabb01970d315c21e9c95fca7b5ec703cbaabbedf
parent85b0917570e895506938d12e0a9fc8b64449aa78
Fix Python 3 issues in cmd

* Replace filter() with a list-comprehension using if to get a list on
  Python 3.
* Get the mock module from the stdlib unittest module on Python 3.3 and
  newer, or fallback to the third-party mock module.
* Replace __builtin__ with six.moves.builtins.
* tox.ini: add the following tests for Python 3.4

  - cinder.tests.unit.test_api
  - cinder.tests.unit.test_cmd

Blueprint cinder-python3
Change-Id: Iea516ae598e8eebfc1087663a9b3e0a00d0633d3
cinder/cmd/rtstool.py
cinder/tests/unit/test_cmd.py
tox.ini