mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +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.
This commit is contained in:
parent
88f0d0c1e8
commit
760ec8940a
9 changed files with 30 additions and 0 deletions
|
@ -10,12 +10,17 @@ import io
|
|||
import tempfile
|
||||
from test import support
|
||||
from test.support import os_helper
|
||||
from test.support import socket_helper
|
||||
import unittest
|
||||
import textwrap
|
||||
import mailbox
|
||||
import glob
|
||||
|
||||
|
||||
if not socket_helper.has_gethostname:
|
||||
raise unittest.SkipTest("test requires gethostname()")
|
||||
|
||||
|
||||
class TestBase:
|
||||
|
||||
all_mailbox_types = (mailbox.Message, mailbox.MaildirMessage,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue