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:
Miss Islington (bot) 2022-05-23 08:21:45 -07:00 committed by GitHub
parent 9a2fe42b11
commit a29b1f8b4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 0 deletions

View file

@ -4,6 +4,11 @@ import socket
import tempfile
import urllib.response
import unittest
from test import support
if support.is_wasi:
raise unittest.SkipTest("Cannot create socket on WASI")
class TestResponse(unittest.TestCase):