test_value.py: _inject_numeric_testing_methods(): remove `has_neg`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 29 Jun 2019 15:41:36 +0000 (11:41 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:33 +0000 (11:53 -0400)
commita4a14cd06ed9bce219ed1e225e7c59d628effffa
tree3f690a16ee3d21751aabfc274be08c659b6687af
parentd1198f869fdd48d328a3290b373c1ca23a2473be
test_value.py: _inject_numeric_testing_methods(): remove `has_neg`

This was only required for "self", __i*__() operators, which needed to
modify the value object. For example, you couldn't do:

    u = bt2.UnsignedIntegerValue(34)
    u -= 100

because the assignment in __isub__() had an invalid value.

Now the __i*__() operators do not exist anymore, so all RHS negative
values work.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ib2217150bd5c90b2ab72e5ed3b02c5d5206a22c3
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1585
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
tests/bindings/python/bt2/test_value.py
This page took 0.02471 seconds and 4 git commands to generate.