Skip to content

Commit 9d1ca65

Browse files
committed
Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython on
systems where another encoding is set in the locale
1 parent 3bdb23d commit 9d1ca65

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/run-tests

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ else:
1717
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')
1818
MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../unix/micropython')
1919

20+
# Set PYTHONIOENCODING so that CPython will use utf-8 on systems which set another encoding in the locale
21+
os.environ['PYTHONIOENCODING']='utf-8'
22+
2023
def rm_f(fname):
2124
if os.path.exists(fname):
2225
os.remove(fname)

0 commit comments

Comments
 (0)