tests/run-tests.py: Skip repl tests when running windows underneath.

Some versions of Python (for instance: the mingw-w64 version which can be
installed on MSYS2) do include a pty module and claim to be posix-like
(os.name == 'posix'), yet the select.select call used in run-tests.py hangs
forever.  To be on the safe side just exclude anything which might be
running on windows.
This commit is contained in:
stijn 2022-02-17 10:51:17 +01:00 committed by Damien George
parent 5995fb5261
commit ff9c708507
1 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,10 @@ def run_micropython(pyb, args, test_file, is_special=False):
return b"SKIP\n"
import select
# Even though these might have the pty module, it's unlikely to function.
if sys.platform in ["win32", "msys", "cygwin"]:
return b"SKIP\n"
def get(required=False):
rv = b""
while True: