summaryrefslogtreecommitdiff
path: root/scripts/test/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test/support.py')
-rw-r--r--scripts/test/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test/support.py b/scripts/test/support.py
index 6eee79910..8e4ef85e8 100644
--- a/scripts/test/support.py
+++ b/scripts/test/support.py
@@ -169,7 +169,7 @@ def run_command(cmd, expected_status=0, stderr=None,
"Can't redirect stderr if using expected_err"
stderr = subprocess.PIPE
print('executing: ', ' '.join(cmd))
- proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=stderr, universal_newlines=True)
+ proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=stderr, universal_newlines=True, encoding='UTF-8')
out, err = proc.communicate()
code = proc.returncode
if expected_status is not None and code != expected_status: