From: Simon Marchi Date: Tue, 14 May 2019 19:38:58 +0000 (-0400) Subject: bt2: Adapt test_packet.py and make it pass X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=838a5a5273dc2296b0e08d20e2e0f24183e68b5e;hp=838a5a5273dc2296b0e08d20e2e0f24183e68b5e;p=babeltrace.git bt2: Adapt test_packet.py and make it pass This patch updates test_packet.py and packet.py to work with the current API. In both files, everything about equality, copy, deep copy and header fields is removed. The setter for context_field is also removed. One side-effect change (required for the test) is in the Field.field_class property. Previously, when creating a Field object wrapping a bt_field pointer, we would create the corresponding FieldClass object and store it in Field._field_class. Instead, we can compute it as needed in the Field.field_class property, I don't really see any problem with that. Change-Id: I509b3bd272fb323ed6df7de47d21c31b8aedc72f Signed-off-by: Simon Marchi Signed-off-by: Francis Deslauriers Reviewed-on: https://review.lttng.org/c/babeltrace/+/1301 Tested-by: jenkins Reviewed-by: Philippe Proulx ---