From accb3c79a4a6fd49479aa262b501e55380dbd9cc Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 22 Nov 2023 15:49:52 -0500 Subject: [PATCH] tests: remove _def_new_value fields from test_value.py These fields are only set, never read. Remove them. Change-Id: Id476dc5811656079cd1c917c2f131831305b4a67 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/11412 Reviewed-by: Philippe Proulx Tested-by: jenkins --- tests/bindings/python/bt2/test_value.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/bindings/python/bt2/test_value.py b/tests/bindings/python/bt2/test_value.py index 4cf72b63..f58196e4 100644 --- a/tests/bindings/python/bt2/test_value.py +++ b/tests/bindings/python/bt2/test_value.py @@ -1102,7 +1102,6 @@ class BoolValueTestCase(_TestNumericValue, unittest.TestCase): self._t = bt2.BoolValue(True) self._def = self._f self._def_value = False - self._def_new_value = True def tearDown(self): del self._f @@ -1201,7 +1200,6 @@ class _TestIntegerValue(_TestNumericValue): self._pos_val = self._CLS(self._pos_raw_val) self._def = self._pos_val self._def_value = self._pos_raw_val - self._def_new_value = 101 def tearDown(self): del self._pos_val @@ -1279,7 +1277,6 @@ class SignedIntegerValueTestCase(_TestIntegerValue, unittest.TestCase): super().setUp() self._neg_raw_val = -52 self._neg_val = self._CLS(self._neg_raw_val) - self._def_new_value = -101 def tearDown(self): super().tearDown() @@ -1335,7 +1332,6 @@ class RealValueTestCase(_TestNumericValue, unittest.TestCase): self._neg_val = bt2.RealValue(self._neg_raw_val) self._def = self._pos_val self._def_value = self._pos_raw_val - self._def_new_value = -101.88 def tearDown(self): del self._pos_val @@ -1454,7 +1450,6 @@ class StringValueTestCase(_TestCopySimple, unittest.TestCase): self._def_value = "Hello, World!" self._def = bt2.StringValue(self._def_value) self._def_const = _create_const_value(self._def_value) - self._def_new_value = "Yes!" def tearDown(self): del self._def -- 2.34.1