Skip to content

Commit

Permalink
restore the import_module("fcntl") thing to avoid crashing on wasm32
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead authored Feb 12, 2023
1 parent 4ae71ad commit aaff7ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_pty.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from test.support import verbose, reap_children
from test.support.import_helper import import_module

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

import errno
import os
Expand Down

0 comments on commit aaff7ce

Please sign in to comment.