mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 13:21:11 +08:00
Make stubtest work better on macOS (#10263)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)?
|
||||
|
||||
@@ -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)?
|
||||
|
||||
@@ -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_]+)?
|
||||
|
||||
Reference in New Issue
Block a user