Fix: invalid syntax with python 3.5 in test_ust.py
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 22 Mar 2023 14:28:14 +0000 (10:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Mar 2023 18:54:57 +0000 (14:54 -0400)
The following error was encountered while running the test suite with
python 3.5 :

  File "./tools/context/test_ust.py", line 99
    client: lttngtest.Controller = lttngtest.LTTngClient(test_env, log=tap.diagnostic)
          ^
  SyntaxError: invalid syntax

Remove the type hint.

Change-Id: I2d8c39d092b8a1659208b89aaca1cf11ca53866a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/context/test_ust.py

index d3215f0f43475f6192b9c282c12b135e2bcf015b..ab2e743e3570d94b89371514d9372ff9bf6c2b2e 100755 (executable)
@@ -96,7 +96,7 @@ def test_static_context(
         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)
This page took 0.025314 seconds and 4 git commands to generate.