summaryrefslogtreecommitdiffstatshomepage
path: root/tests/run-tests
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2014-11-19 10:44:31 -0500
committerblmorris <bryan.morrissey@gmail.com>2014-11-19 10:44:31 -0500
commit9d1ca65b59614c38674d0c8c4dc2e8da9618df69 (patch)
treead5390b7c05e0cded1d384e919131a29ad87baf7 /tests/run-tests
parent3bdb23d4d3f6321a0909c76477dad337ea1d602c (diff)
downloadmicropython-9d1ca65b59614c38674d0c8c4dc2e8da9618df69.tar.gz
micropython-9d1ca65b59614c38674d0c8c4dc2e8da9618df69.zip
Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython on
systems where another encoding is set in the locale
Diffstat (limited to 'tests/run-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)