summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests
index ca2c376659..fd41931d35 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)