From: Francis Deslauriers Date: Fri, 6 Sep 2019 20:27:21 +0000 (-0400) Subject: bt2: tests: Assert CC type, not if a subclass X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=242b863f9fd99369c0928eb36ec81f9b871023a4 bt2: tests: Assert CC type, not if a subclass Signed-off-by: Francis Deslauriers Change-Id: I807e3a2946741263e2cd3cf0b48c4cddbf281632 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2010 Tested-by: jenkins Reviewed-by: Simon Marchi --- diff --git a/tests/bindings/python/bt2/test_component_class.py b/tests/bindings/python/bt2/test_component_class.py index 10069428..2abf5148 100644 --- a/tests/bindings/python/bt2/test_component_class.py +++ b/tests/bindings/python/bt2/test_component_class.py @@ -326,7 +326,7 @@ class ComponentClassTestCase(unittest.TestCase): graph = bt2.Graph() comp = graph.add_component(MySink, 'salut') self._comp_cls = comp.cls - self.assertTrue(issubclass(type(self._comp_cls), bt2._SinkComponentClassConst)) + self.assertIs(type(self._comp_cls), bt2._SinkComponentClassConst) def tearDown(self): del self._py_comp_cls