diff options
Diffstat (limited to 'tools/patman/test.py')
-rw-r--r-- | tools/patman/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/test.py b/tools/patman/test.py index cc61c20606e..889e186606e 100644 --- a/tools/patman/test.py +++ b/tools/patman/test.py @@ -72,12 +72,12 @@ Signed-off-by: Simon Glass <sjg@chromium.org> ''' out = '' inhandle, inname = tempfile.mkstemp() - infd = os.fdopen(inhandle, 'w') + infd = os.fdopen(inhandle, 'w', encoding='utf-8') infd.write(data) infd.close() exphandle, expname = tempfile.mkstemp() - expfd = os.fdopen(exphandle, 'w') + expfd = os.fdopen(exphandle, 'w', encoding='utf-8') expfd.write(expected) expfd.close() |