From d2455527078ecb1963372d67323a32e9be02cda2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 1 May 2023 11:57:48 -0400 Subject: [PATCH] Tests: ust_constructor: convert type hints to type comments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use type comments to support older python3 interpreters that can't handle type hints (such as 3.4). Signed-off-by: Jérémie Galarneau Change-Id: Id8b040fb36a4f243a3af0d731843028ad2f4388d --- .../ust/ust-constructor/test_ust_constructor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/regression/ust/ust-constructor/test_ust_constructor.py b/tests/regression/ust/ust-constructor/test_ust_constructor.py index 5e6523c76..ea6a125d0 100755 --- a/tests/regression/ust/ust-constructor/test_ust_constructor.py +++ b/tests/regression/ust/ust-constructor/test_ust_constructor.py @@ -163,9 +163,8 @@ expected_events = [ ] -def capture_trace( - tap: lttngtest.TapGenerator, test_env: lttngtest._Environment -) -> lttngtest.LocalSessionOutputLocation: +def capture_trace(tap, test_env): + # type: (lttngtest.TapGenerator, lttngtest._Environment) -> lttngtest.LocalSessionOutputLocation tap.diagnostic( "Capture trace from application with instrumented C/C++ constructors/destructors" ) @@ -197,7 +196,8 @@ def capture_trace( return session_output_location -def validate_trace(trace_location: pathlib.Path, tap: lttngtest.TapGenerator) -> bool: +def validate_trace(trace_location, tap) -> bool: + # type: (pathlib.Path, lttngtest.TapGenerator) -> bool success = True unknown_event_count = 0 -- 2.34.1