From 3e0efb6f8d8d6e9730355bbb5c43cf33ea714e65 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 7 Jan 2018 18:21:37 +0100 Subject: [PATCH] pytest: Avoid leaking stdout fds --- tests/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/utils.py b/tests/utils.py index 016b880a5..3f21c8e73 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -100,6 +100,7 @@ class TailableProc(object): logging.debug("%s: %s", self.prefix, line.decode().rstrip()) self.logs_cond.notifyAll() self.running = False + self.proc.stdout.close() def is_in_log(self, regex): """Look for `regex` in the logs."""