![]() * don't use hasttr() to check if a lazy SQLAlchemy is loaded or not: use the obj_attr_is_set() method instead. On Python 3, hasattr() pass through SQLAlchemy exceptions which is unexpected. * Replace a/b with a//b to use integer division, not float division. * Replace filter() with list-comprehension using an if. * Replace file() with open() and open /dev/null in binary mode (not text mode, so Unicode on Python 3). * test_volume require "import cinder.volume.targets.tgt" on Python 3 * Use a key function to sort a list of dictionaries. Dictionaries are no more comparable on Python 3. * tox.ini: add the following tests to Python 3.4. - cinder.tests.unit.keymgr.test_mock_key_mgr - cinder.tests.unit.test_volume Note: test_list_availability_zones_enabled_service() of test_volume was broken, the test checked that the result of .sort() is None... Blueprint cinder-python3 Change-Id: If1a26acc0138db9bda7fde1cb1f40093d9b3c494 |
||
---|---|---|
.. | ||
__init__.py | ||
fake.py | ||
mock_key_mgr.py | ||
test_barbican.py | ||
test_conf_key_mgr.py | ||
test_key.py | ||
test_key_mgr.py | ||
test_mock_key_mgr.py | ||
test_not_implemented_key_mgr.py |