summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-04-07 07:22:47 (GMT)
committerGitHub <noreply@github.com>2022-04-07 07:22:47 (GMT)
commit2b16a08bc77475917dd5c96417aef4c5210b45ac (patch)
tree6188ad8008760a8710ba6692c44c25157c69d981 /Lib/test/test_support.py
parent5aee46b31ba37d65cdf4d5a96cabb8835c508deb (diff)
downloadcpython-2b16a08bc77475917dd5c96417aef4c5210b45ac.zip
cpython-2b16a08bc77475917dd5c96417aef4c5210b45ac.tar.gz
cpython-2b16a08bc77475917dd5c96417aef4c5210b45ac.tar.bz2
bpo-40280: Detect missing threading on WASM platforms (GH-32352)
Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 2cff377..90e971d 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -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)