bt2: fix error message in trace_class.py
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 22:55:49 +0000 (17:55 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Nov 2019 15:57:56 +0000 (10:57 -0500)
This error message was probably copied from trace.py.  It should say
"trace class" and "trace".

Change-Id: Ib9fcae27102a90ffe5492e74906ca1a1d5205dfc
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2425

src/bindings/python/bt2/bt2/trace_class.py
tests/bindings/python/bt2/test_trace_class.py

index 08d3e91f400c79e812fe091a61f9c36261c85186..dc9439eb6aa424215d3ac883249699b115796852 100644 (file)
@@ -117,7 +117,7 @@ class _TraceClassConst(object._SharedObject, collections.abc.Mapping):
 
         if listener_handle._obj.addr != self.addr:
             raise ValueError(
-                'This trace class destruction listener does not match the trace object.'
+                'This trace class destruction listener does not match the trace class object.'
             )
 
         if listener_handle._listener_id is None:
index 841aaf67b3c9eb03d33eae6f55455f784f96136f..bd80586cfbc03393215fc98b2e7b4ff9f3884ddc 100644 (file)
@@ -226,7 +226,7 @@ class TraceClassTestCase(unittest.TestCase):
 
         with self.assertRaisesRegex(
             ValueError,
-            r'This trace class destruction listener does not match the trace object\.',
+            r'This trace class destruction listener does not match the trace class object\.',
         ):
             trace_class_2.remove_destruction_listener(handle1)
 
This page took 0.028926 seconds and 4 git commands to generate.