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_packet.py
diff --git
a/tests/bindings/python/bt2/test_packet.py
b/tests/bindings/python/bt2/test_packet.py
index aa1c2d6a619cf989b382a93316921291180dcb92..196c9fbeaebdab4b2febf87be83cfc9d03bdf35c 100644
(file)
--- a/
tests/bindings/python/bt2/test_packet.py
+++ b/
tests/bindings/python/bt2/test_packet.py
@@
-108,3
+108,7
@@
class PacketTestCase(unittest.TestCase):
def test_no_context_field(self):
packet, _, _ = self._create_packet(with_pc=False)
self.assertIsNone(packet.context_field)
+
+
+if __name__ == '__main__':
+ unittest.main()
This page took
0.023632 seconds
and
4
git commands to generate.