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_error.py
diff --git
a/tests/bindings/python/bt2/test_error.py
b/tests/bindings/python/bt2/test_error.py
index 2a2703b6f591aa4fc46a2795999d67b4581ef9e6..821d30f5a25b485edfbc1b58c43d6b44f1cde620 100644
(file)
--- a/
tests/bindings/python/bt2/test_error.py
+++ b/
tests/bindings/python/bt2/test_error.py
@@
-204,3
+204,7
@@
class ErrorTestCase(unittest.TestCase):
self.assertEqual(cause.component_class_type, bt2.ComponentClassType.SOURCE)
self.assertEqual(cause.component_class_name, 'SourceWithFailingIter')
self.assertIsNone(cause.plugin_name)
+
+
+if __name__ == '__main__':
+ unittest.main()
This page took
0.024074 seconds
and
4
git commands to generate.