summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-23 08:39:57 (GMT)
committerGitHub <noreply@github.com>2022-05-23 08:39:57 (GMT)
commit760ec8940aabd6a7fc471bd913ea1ac501cc604b (patch)
treeee95f9ffb3214de69ea0e220c577a05c65d1e4e0 /Lib/test/test_support.py
parent88f0d0c1e8fdda036f3f64b0048911ba28ce7f06 (diff)
downloadcpython-760ec8940aabd6a7fc471bd913ea1ac501cc604b.zip
cpython-760ec8940aabd6a7fc471bd913ea1ac501cc604b.tar.gz
cpython-760ec8940aabd6a7fc471bd913ea1ac501cc604b.tar.bz2
gh-90473: WASI: skip gethostname tests (GH-93092)
- WASI's ``gethostname()`` is a stub that always fails with OSError ``ENOTSUP`` - skip mailcap ``test`` if subprocess is not available - WASI process_time clock does not work.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 7a8b681..23bccee 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -664,6 +664,7 @@ class TestSupport(unittest.TestCase):
self.assertTrue(support.match_test(test_chdir))
@unittest.skipIf(support.is_emscripten, "Unstable in Emscripten")
+ @unittest.skipIf(support.is_wasi, "Unavailable on WASI")
def test_fd_count(self):
# We cannot test the absolute value of fd_count(): on old Linux
# kernel or glibc versions, os.urandom() keeps a FD open on