commit f0ef5e50e4bda799d870a5694b01eae73a9f1a58
Author: Victor Stinner <email address hidden>
Date: Mon Feb 15 14:43:32 2016 +0100
Port test_emc_vnx to Python 3
* Configuration.__getattr__(): replace self.local_conf with
object.__getattribute__(self, 'local_conf') to avoid reentrant call
to __getattr__() in copy.copy(conf) on Python 3.
* test_emc_vnx: Don't compare directly provider_location strings but
set of provider_location items to support hash randomization. On
Python 3, hash randomization is enabled by default and so
dictionary items are rendered in an random order.
* test_emc_vnx: use assertIn() to check if the provider_location
contains 'type^smp' substring. Before, the test failed if the
substring was a the beginning of the string (position 0).
* tests-py3.txt: add cinder.tests.unit.test_emc_vnx
Reviewed: https:/ /review. openstack. org/280241 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=f0ef5e50e4b da799d870a5694b 01eae73a9f1a58
Committed: https:/
Submitter: Jenkins
Branch: master
commit f0ef5e50e4bda79 9d870a5694b01ea e73a9f1a58
Author: Victor Stinner <email address hidden>
Date: Mon Feb 15 14:43:32 2016 +0100
Port test_emc_vnx to Python 3
* Configuration. __getattr_ _(): replace self.local_conf with __getattribute_ _(self, 'local_conf') to avoid reentrant call tests.unit. test_emc_ vnx
object.
to __getattr__() in copy.copy(conf) on Python 3.
* test_emc_vnx: Don't compare directly provider_location strings but
set of provider_location items to support hash randomization. On
Python 3, hash randomization is enabled by default and so
dictionary items are rendered in an random order.
* test_emc_vnx: use assertIn() to check if the provider_location
contains 'type^smp' substring. Before, the test failed if the
substring was a the beginning of the string (position 0).
* tests-py3.txt: add cinder.
Partial- Implements: blueprint cinder-python3 d6f1a16ee993422 1f77e161686
Related-Bug: 1348818
Change-Id: If3be17ca6a1d14