projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: add `if __name__ == '__main__'` snippet to all tests
[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 2abf514808c9915810556a9f1d2d3398ecb9eaf0..92d051f7ee8a1224a1474caf6d2deb750a6f4de1 100644
(file)
--- a/
tests/bindings/python/bt2/test_component_class.py
+++ b/
tests/bindings/python/bt2/test_component_class.py
@@
-358,3
+358,7
@@
class ComponentClassTestCase(unittest.TestCase):
).query()
expected = ['an object', {'yes': 'no', 'book': -17}, 23]
self.assertEqual(res, expected)
).query()
expected = ['an object', {'yes': 'no', 'book': -17}, 23]
self.assertEqual(res, expected)
+
+
+if __name__ == '__main__':
+ unittest.main()
This page took
0.027141 seconds
and
4
git commands to generate.