From dc3fa8a78ab77e439941f6a389540e2bc4ea0020 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 1 Jun 2020 18:18:34 +0100 Subject: [PATCH] tests/relocatable-install.py: Silence a mypy warning Signed-off-by: Simon McVittie <smcv@collabora.com> --- tests/relocatable-install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/relocatable-install.py b/tests/relocatable-install.py index 04897a368..2829b243d 100755 --- a/tests/relocatable-install.py +++ b/tests/relocatable-install.py @@ -122,8 +122,10 @@ def check_dependencies(test, relocatable_install, path, is_wrapper=False): stdout=subprocess.PIPE, universal_newlines=True, ) + stdout = subproc.stdout + assert stdout is not None # for mypy - for line in subproc.stdout: + for line in stdout: line = line.strip() if ( -- GitLab