From 7cce13656266d90431133ccb4de5ccf086f4aa82 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Thu, 5 Sep 2024 14:32:03 +0200 Subject: [PATCH] qa: test proc stderr isn't None before closing it --- tests/test_framework/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_framework/utils.py b/tests/test_framework/utils.py index 7f961038b..37f588e3f 100644 --- a/tests/test_framework/utils.py +++ b/tests/test_framework/utils.py @@ -360,7 +360,8 @@ def tail(self): self.logs_cond.notifyAll() self.running = False self.proc.stdout.close() - self.proc.stderr.close() + if self.proc.stderr is not None: + self.proc.stderr.close() def is_in_log(self, regex, start=0): """Look for `regex` in the logs."""