From 0710f2760f7e21b8b29d6fdd6a58ecf8ac651217 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 21 Feb 2015 16:11:04 +0300 Subject: [PATCH] Open log as binary file for writing Child output is binary. --- tests/test_shells/run_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_shells/run_script.py b/tests/test_shells/run_script.py index f9b9248a..6c2b7ae6 100755 --- a/tests/test_shells/run_script.py +++ b/tests/test_shells/run_script.py @@ -98,7 +98,7 @@ def main(): child.wait() - with open(full_log_file_name, 'w') as LF: + with open(full_log_file_name, 'wb') as LF: LF.write(child.read()) check_call([