Skip to content

Commit aaff7ce

Browse files
authored
restore the import_module("fcntl") thing to avoid crashing on wasm32
1 parent 4ae71ad commit aaff7ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_pty.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
from test.support import verbose, reap_children
22
from test.support.import_helper import import_module
33

4-
# Skip these tests if termios is not available
4+
# Skip these tests if termios or fcntl are not available
55
import_module('termios')
6+
# fcntl is a proxy for not being one of the wasm32 platforms even though we
7+
# don't use this module... a proper check for what crashes those is needed.
8+
import_module("fcntl")
69

710
import errno
811
import os

0 commit comments

Comments
 (0)