Merge "Port test_quobyte to Python 3"
This commit is contained in:
commit
b85cbda2c4
@ -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:
|
||||||
|
1
tox.ini
1
tox.ini
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user