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)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 24 Sep 2019 17:26:06 +0000 (13:26 -0400)
commit1198c63595288e43f354d8cce6db1e69a38d3a20
tree831b2c34654e57061e706561c235f02e89643dc2
parent9494fc18a57a8c7696d67e9deb783d61c4ee2cfd
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.024679 seconds and 4 git commands to generate.