Tests: convert even more left-over type hint to type comment
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 2 May 2023 14:28:54 +0000 (10:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 2 May 2023 14:40:10 +0000 (10:40 -0400)
Use type comments to support older python3 interpreters that can't
handle type hints (such as 3.4).

Change-Id: I4f97bc3f1e18b8701cb04175d97deb295178883b
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/environment.py

index 6567467ebb19328f8208e32ab7e1d21a1807c1ad..42b0a61b9b35930d9474fa529390e9181382ff6f 100644 (file)
@@ -206,9 +206,9 @@ class TraceTestApplication:
 
         test_app_args = [str(binary_path)]
 
-        self._process: subprocess.Popen = subprocess.Popen(
+        self._process = subprocess.Popen(
             test_app_args, env=test_app_env
-        )
+        )  # type: subprocess.Popen
 
     def wait_for_exit(self):
         # type: () -> None
This page took 0.026115 seconds and 4 git commands to generate.