Make stubtest work better on macOS (#10263)

This commit is contained in:
Shantanu
2023-06-04 16:10:15 -07:00
committed by GitHub
parent f8dfacb851
commit a770216434
4 changed files with 8 additions and 5 deletions

View File

@@ -20,6 +20,9 @@ if sys.platform != "win32":
F_SETOWN: int
F_UNLCK: int
F_WRLCK: int
F_GETLEASE: int
F_SETLEASE: int
if sys.platform == "darwin":
F_FULLFSYNC: int
F_NOCACHE: int
@@ -30,11 +33,9 @@ if sys.platform != "win32":
F_SETSIG: int
F_SHLCK: int
F_SETLK64: int
F_SETLEASE: int
F_GETSIG: int
F_NOTIFY: int
F_EXLCK: int
F_GETLEASE: int
F_GETLK64: int
if sys.version_info >= (3, 8):
F_ADD_SEALS: int

View File

@@ -7,7 +7,7 @@ socket.TCP_CONNECTION_INFO
(dbm.gnu)?
(locale.bind_textdomain_codeset)?
(locale.bindtextdomain)?
(locale.dcgettext)
(locale.dcgettext)?
(locale.dgettext)?
(locale.gettext)?
(locale.textdomain)?

View File

@@ -43,7 +43,7 @@ xxlimited.Xxo.x_exports
(dbm.gnu)?
(locale.bind_textdomain_codeset)?
(locale.bindtextdomain)?
(locale.dcgettext)
(locale.dcgettext)?
(locale.dgettext)?
(locale.gettext)?
(locale.textdomain)?

View File

@@ -7,7 +7,6 @@ os.SF_NODISKIO
os.SF_SYNC
(os|posix).sched_param # system dependent. Unclear if macos has it.
posix.EX_NOTFOUND
readline.append_history_file # not defined in macos
select.KQ_FILTER_NETDEV # system dependent
select.kqueue.__init__ # default C signature is wrong
select.POLLMSG # system dependent
@@ -20,6 +19,9 @@ select.POLLMSG # system dependent
(os.pwritev)?
(posix.preadv)?
(posix.pwritev)?
(readline.append_history_file)?
(fcntl.F_GETLEASE)?
(fcntl.F_SETLEASE)?
# Platform differences that cannot be captured by the type system
(posix.O_[A-Z_]+)?