From aae4cdd13963d9bd3caf9d2ae27ff6b6ad4c2b92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 1 May 2023 13:45:27 -0400 Subject: [PATCH] Tests: ust_constructor: convert left-over type hint to type comment 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). Python 3.4 reports the following error: File "./ust/ust-constructor/test_ust_constructor.py", line 176 client: lttngtest.Controller = lttngtest.LTTngClient(test_env, log=tap.diagnostic) ^ SyntaxError: invalid syntax ERROR: ust/ust-constructor/test_ust_constructor.py - missing test plan ERROR: ust/ust-constructor/test_ust_constructor.py - exited with status 1 Signed-off-by: Jérémie Galarneau Change-Id: Ic0ead4b9bedfca56e8999bf4012e103801794655 --- tests/regression/ust/ust-constructor/test_ust_constructor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/ust/ust-constructor/test_ust_constructor.py b/tests/regression/ust/ust-constructor/test_ust_constructor.py index ea6a125d0..1682071e2 100755 --- a/tests/regression/ust/ust-constructor/test_ust_constructor.py +++ b/tests/regression/ust/ust-constructor/test_ust_constructor.py @@ -173,7 +173,7 @@ def capture_trace(tap, test_env): test_env.create_temporary_directory("trace") ) - client: lttngtest.Controller = lttngtest.LTTngClient(test_env, log=tap.diagnostic) + client = lttngtest.LTTngClient(test_env, log=tap.diagnostic) with tap.case("Create a session") as test_case: session = client.create_session(output=session_output_location) -- 2.34.1