bt2: field.py: raise ValueError when setting out of range value to Integer
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 23 Sep 2019 19:25:36 +0000 (15:25 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 14:45:10 +0000 (10:45 -0400)
commitcc80c640af9dae4b46f88523af75664afecd252e
treea8f08d2e516a742baee29a6e74081dd07f471c97
parent06bb716cf95043fe6135e5bbed292ed1f9560e9e
bt2: field.py: raise ValueError when setting out of range value to Integer

This commit removes the use of `utils._check_int64()` and
`utils._check_uint64()` methods as the validity of the value is now
checked using the _check_range() method and the existing field class'
`_field_value_range` setter property.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Ib5b33ae5becc9f71b20b17ae0244b6e676b89f75
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2081
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/field.py
tests/bindings/python/bt2/test_field.py
This page took 0.024391 seconds and 4 git commands to generate.