summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-16 14:02:37 (GMT)
committerGitHub <noreply@github.com>2022-05-16 14:02:37 (GMT)
commit9b50585e0225a80f9e383edacc7d73f1b5c8008b (patch)
tree5d3e7e1517143062aa8b7883202d5fe509244e7c /Lib/test/test_pydoc.py
parentfa2b8b75eb2b8a0193d587e02b488a73579118fc (diff)
downloadcpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.zip
cpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.tar.gz
cpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.tar.bz2
gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846)
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index 13c77b6..ac181ef 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -27,7 +27,8 @@ from test.support import os_helper
from test.support.script_helper import assert_python_ok, assert_python_failure
from test.support import threading_helper
from test.support import (reap_children, captured_output, captured_stdout,
- captured_stderr, is_emscripten, requires_docstrings)
+ captured_stderr, is_emscripten, is_wasi,
+ requires_docstrings)
from test.support.os_helper import (TESTFN, rmtree, unlink)
from test import pydoc_mod
@@ -1356,7 +1357,10 @@ foo
)
-@unittest.skipIf(is_emscripten, "Socket server not available on Emscripten.")
+@unittest.skipIf(
+ is_emscripten or is_wasi,
+ "Socket server not available on Emscripten/WASI."
+)
class PydocServerTest(unittest.TestCase):
"""Tests for pydoc._start_server"""