Fix: _EventConst.__getitem__(): check if event has a packet
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 7 Apr 2020 13:41:55 +0000 (09:41 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 8 Apr 2020 17:04:40 +0000 (13:04 -0400)
I'm also adding a test to check this. Without this patch and an invalid
key, __getitem__() throws `AttributeError` instead of the expected
`KeyError`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ie6258a2354ece8aee6c8530587c900ea08e45fe8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3350
Tested-by: jenkins <jenkins@lttng.org>

No differences found
This page took 0.02922 seconds and 4 git commands to generate.