bt2: tests: Assert CC type, not if a subclass
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 6 Sep 2019 20:27:21 +0000 (16:27 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 10 Sep 2019 01:05:12 +0000 (21:05 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I807e3a2946741263e2cd3cf0b48c4cddbf281632
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2010
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
tests/bindings/python/bt2/test_component_class.py

index 100694285fcbbee4d8f5aee585b396f011793b33..2abf514808c9915810556a9f1d2d3398ecb9eaf0 100644 (file)
@@ -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
This page took 0.024717 seconds and 4 git commands to generate.