Merge "Port test_quobyte to Python 3"

This commit is contained in:
Jenkins 2015-10-06 21:55:34 +00:00 committed by Gerrit Code Review
commit b85cbda2c4
2 changed files with 4 additions and 3 deletions

View File

@ -102,9 +102,9 @@ class QuobyteDriverTestCase(test.TestCase):
callableObj(*args, **kwargs) callableObj(*args, **kwargs)
except Exception as exc: except Exception as exc:
caught = True caught = True
self.assertEqual(excClass, type(exc), self.assertIsInstance(exc, excClass,
'Wrong exception caught: %s Stacktrace: %s' % 'Wrong exception caught: %s Stacktrace: %s' %
(exc, traceback.format_exc())) (exc, traceback.format_exc()))
self.assertIn(msg, six.text_type(exc)) self.assertIn(msg, six.text_type(exc))
if not caught: if not caught:

View File

@ -86,6 +86,7 @@ commands =
cinder.tests.unit.test_nimble \ cinder.tests.unit.test_nimble \
cinder.tests.unit.test_pure \ cinder.tests.unit.test_pure \
cinder.tests.unit.test_qos_specs \ cinder.tests.unit.test_qos_specs \
cinder.tests.unit.test_quobyte \
cinder.tests.unit.test_quota \ cinder.tests.unit.test_quota \
cinder.tests.unit.test_rbd \ cinder.tests.unit.test_rbd \
cinder.tests.unit.test_remotefs \ cinder.tests.unit.test_remotefs \