Fix stubtest errors on macOS / Python 3.11 (#8743)

This commit is contained in:
Alex Waygood
2022-09-15 23:27:42 +01:00
committed by GitHub
parent 5a3595a5d6
commit 20bc8fa4e3
4 changed files with 18 additions and 13 deletions

View File

@@ -3,3 +3,11 @@ xxlimited.Xxo.x_exports
# Exists at runtime, missing from stub
socket.TCP_CONNECTION_INFO
(dbm.gnu)?
(locale.bind_textdomain_codeset)?
(locale.bindtextdomain)?
(locale.dcgettext)
(locale.dgettext)?
(locale.gettext)?
(locale.textdomain)?

View File

@@ -12,10 +12,14 @@ select.KQ_FILTER_NETDEV # system dependent
select.kqueue.__init__ # default C signature is wrong
select.POLLMSG # system dependent
# Sometimes this exists on darwin, sometimes not
# Sometimes these seem to exist on darwin, sometimes not
(_socket.MSG_NOSIGNAL)?
(socket.MsgFlag.MSG_NOSIGNAL)?
(socket.MSG_NOSIGNAL)?
(os.preadv)?
(os.pwritev)?
(posix.preadv)?
(posix.pwritev)?
# Exists at runtime, but missing from stubs
distutils.msvccompiler.MSVCCompiler.get_msvc_paths