From ab6a6968d20cb3192c58f43420ae51c3da21101c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 20 Nov 2019 17:55:49 -0500 Subject: [PATCH] bt2: fix error message in trace_class.py This error message was probably copied from trace.py. It should say "trace class" and "trace". Change-Id: Ib9fcae27102a90ffe5492e74906ca1a1d5205dfc Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2425 --- src/bindings/python/bt2/bt2/trace_class.py | 2 +- tests/bindings/python/bt2/test_trace_class.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/bt2/bt2/trace_class.py b/src/bindings/python/bt2/bt2/trace_class.py index 08d3e91f..dc9439eb 100644 --- a/src/bindings/python/bt2/bt2/trace_class.py +++ b/src/bindings/python/bt2/bt2/trace_class.py @@ -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: diff --git a/tests/bindings/python/bt2/test_trace_class.py b/tests/bindings/python/bt2/test_trace_class.py index 841aaf67..bd80586c 100644 --- a/tests/bindings/python/bt2/test_trace_class.py +++ b/tests/bindings/python/bt2/test_trace_class.py @@ -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) -- 2.34.1