mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
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.
(cherry picked from commit 760ec8940a)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
9a2fe42b11
commit
a29b1f8b4b
9 changed files with 30 additions and 0 deletions
|
|
@ -664,6 +664,7 @@ def id(self):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue