Skip to content

Commit ff9c708

Browse files
stinosdpgeorge
authored andcommitted
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.
1 parent 5995fb5 commit ff9c708

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run-tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ def run_micropython(pyb, args, test_file, is_special=False):
109109
return b"SKIP\n"
110110
import select
111111

112+
# Even though these might have the pty module, it's unlikely to function.
113+
if sys.platform in ["win32", "msys", "cygwin"]:
114+
return b"SKIP\n"
115+
112116
def get(required=False):
113117
rv = b""
114118
while True:

0 commit comments

Comments
 (0)