pytest: Avoid leaking stdout fds

This commit is contained in:
Christian Decker 2018-01-07 18:21:37 +01:00
parent b13a972929
commit 3e0efb6f8d

View File

@ -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."""