Skip to content

Commit a7752a4

Browse files
committed
run-tests: Elaborate python3 command override capabilities.
1 parent e8208a7 commit a7752a4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/run-tests

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import subprocess
55
import sys
66
from glob import glob
77

8+
# Tests require at least CPython 3.3. If your default python3 executable
9+
# is of lower version, you can point MICROPY_CPYTHON3 environment var
10+
# to the correct executable.
811
if os.name == 'nt':
9-
CPYTHON3 = 'python3.exe'
12+
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3.exe')
1013
MP_PY = '../windows/micropython.exe'
1114
else:
1215
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')

0 commit comments

Comments
 (0)