projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: tests: Assert CC type, not if a subclass
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_component_class.py
diff --git
a/tests/bindings/python/bt2/test_component_class.py
b/tests/bindings/python/bt2/test_component_class.py
index 100694285fcbbee4d8f5aee585b396f011793b33..2abf514808c9915810556a9f1d2d3398ecb9eaf0 100644
(file)
--- 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
graph = bt2.Graph()
comp = graph.add_component(MySink, 'salut')
self._comp_cls = comp.cls
- self.assert
True(issubclass(type(self._comp_cls), bt2._SinkComponentClassConst)
)
+ self.assert
Is(type(self._comp_cls), bt2._SinkComponentClassConst
)
def tearDown(self):
del self._py_comp_cls
def tearDown(self):
del self._py_comp_cls
This page took
0.024436 seconds
and
4
git commands to generate.