From 75bbf90db2e65e3f138af5504b46b3d8a69d3ed7 Mon Sep 17 00:00:00 2001 From: Omri Bahumi Date: Mon, 4 May 2015 14:26:16 +0300 Subject: [PATCH] Fix test_stdout_file --- sh.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sh.py b/sh.py index fb0f5fe7..06c34357 100644 --- a/sh.py +++ b/sh.py @@ -1854,6 +1854,9 @@ def finish(): if hasattr(handler, "flush"): handler.flush() + if hasattr(handler, "close"): + handler.close() + return process, finish def get_callback_chunk_consumer(handler, encoding, decode_errors):