tests: remove _def_new_value fields from test_value.py
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 22 Nov 2023 20:49:52 +0000 (15:49 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Sat, 19 Oct 2024 11:12:09 +0000 (07:12 -0400)
These fields are only set, never read.  Remove them.

Change-Id: Id476dc5811656079cd1c917c2f131831305b4a67
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11412
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/bindings/python/bt2/test_value.py

index 4cf72b63ce7fdf68d573d95059344f614c676cdf..f58196e4c6f9327e7607dfb51213abc10e5de34a 100644 (file)
@@ -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
This page took 0.025673 seconds and 4 git commands to generate.