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)
except Exception as exc:
caught = True
self.assertEqual(excClass, type(exc),
'Wrong exception caught: %s Stacktrace: %s' %
(exc, traceback.format_exc()))
self.assertIsInstance(exc, excClass,
'Wrong exception caught: %s Stacktrace: %s' %
(exc, traceback.format_exc()))
self.assertIn(msg, six.text_type(exc))
if not caught:

View File

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