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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 3 Jul 2019 01:31:27 +0000 (21:31 -0400)
commitad24a7ac5282522ce2676e399212d311926e956d
tree0eeb208ed9b06fa212bfadabb71885f2b8dc1b71
parent21368027963fcb93c2b5c7587fc9e47922f4cb45
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.025423 seconds and 4 git commands to generate.