From 9d1ca65b59614c38674d0c8c4dc2e8da9618df69 Mon Sep 17 00:00:00 2001 From: blmorris <bryan.morrissey@gmail.com> Date: Wed, 19 Nov 2014 10:44:31 -0500 Subject: [PATCH] Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython on systems where another encoding is set in the locale --- tests/run-tests | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run-tests b/tests/run-tests index ca2c37665..fd41931d3 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -17,6 +17,9 @@ else: CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3') MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../unix/micropython') +# Set PYTHONIOENCODING so that CPython will use utf-8 on systems which set another encoding in the locale +os.environ['PYTHONIOENCODING']='utf-8' + def rm_f(fname): if os.path.exists(fname): os.remove(fname) -- GitLab