mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40280: Detect missing threading on WASM platforms (GH-32352)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
5aee46b31b
commit
2b16a08bc7
33 changed files with 103 additions and 21 deletions
|
@ -123,15 +123,18 @@ class TestSupport(unittest.TestCase):
|
|||
os_helper.unlink(mod_filename)
|
||||
os_helper.rmtree('__pycache__')
|
||||
|
||||
@support.requires_working_socket()
|
||||
def test_HOST(self):
|
||||
s = socket.create_server((socket_helper.HOST, 0))
|
||||
s.close()
|
||||
|
||||
@support.requires_working_socket()
|
||||
def test_find_unused_port(self):
|
||||
port = socket_helper.find_unused_port()
|
||||
s = socket.create_server((socket_helper.HOST, port))
|
||||
s.close()
|
||||
|
||||
@support.requires_working_socket()
|
||||
def test_bind_port(self):
|
||||
s = socket.socket()
|
||||
socket_helper.bind_port(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue