mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Add workflow stubtests for macos (#5384)
* Add macos to stubtest * Add general darwin stubtest exception file * Adding exceptions and platform ifs
This commit is contained in:
4
tests/stubtest_whitelists/darwin-py36.txt
Normal file
4
tests/stubtest_whitelists/darwin-py36.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
ctypes.wintypes
|
||||
pwd.getpwnam
|
||||
ssl.PROTOCOL_SSLv3 # Depends on openssl compilation
|
||||
ssl.RAND_egd # Depends on openssl compilation
|
||||
4
tests/stubtest_whitelists/darwin-py37.txt
Normal file
4
tests/stubtest_whitelists/darwin-py37.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
ctypes.wintypes
|
||||
pwd.getpwnam
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
2
tests/stubtest_whitelists/darwin-py38.txt
Normal file
2
tests/stubtest_whitelists/darwin-py38.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
52
tests/stubtest_whitelists/darwin.txt
Normal file
52
tests/stubtest_whitelists/darwin.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
_posixsubprocess.cloexec_pipe
|
||||
_?curses.ACS_.* # ACS codes are initialized only after initscr call.
|
||||
_?curses.A_ITALIC # System dependent
|
||||
curses.COLORS # Initialized after start_color
|
||||
curses.COLOR_PAIRS # Initialized after start_color
|
||||
curses.COLS # Initialized only after initscr call.
|
||||
curses.LINES # Initialized only after initscr call.
|
||||
distutils.command.bdist_msi # msi is only available on windows
|
||||
grp.getgrgid
|
||||
grp.struct_group._asdict
|
||||
grp.struct_group._make
|
||||
grp.struct_group._replace
|
||||
os.EX_NOTFOUND
|
||||
os.SF_MNOWAIT
|
||||
os.SF_NODISKIO
|
||||
os.SF_SYNC
|
||||
posix.sched_param # system dependent. Unclear if macos has it.
|
||||
posix.EX_NOTFOUND
|
||||
posix.XATTR.* # Value seems to be in docs but not defined in github macos
|
||||
readline.append_history_file # not defined in macos
|
||||
select.kqueue.__init__ # default C signature is wrong
|
||||
select.KQ_FILTER_NETDEV # system dependent
|
||||
select.POLLMSG # system dependent
|
||||
socket.socketpair
|
||||
time.CLOCK_HIGHRES
|
||||
|
||||
# ==========
|
||||
# Whitelist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
# Modules that do not exist on macos systems
|
||||
_msi
|
||||
_winapi
|
||||
asyncio.windows_events
|
||||
asyncio.windows_utils
|
||||
msilib(.[a-z]+)?
|
||||
msvcrt
|
||||
winreg
|
||||
winsound
|
||||
ossaudiodev
|
||||
spwd
|
||||
|
||||
# NamedTuple like, but not actually NamedTuples
|
||||
posix.[a-z]+_(param|result)._(asdict|make|replace)
|
||||
|
||||
# Platform differences that cannot be captured by the type system
|
||||
fcntl.[A-Z0-9_]+
|
||||
os.SCHED_[A-Z_]+
|
||||
|
||||
# Loadable SQLite extensions are disabled on GitHub runners
|
||||
(sqlite3(.dbapi2)?.Connection.enable_load_extension)?
|
||||
(sqlite3(.dbapi2)?.Connection.load_extension)?
|
||||
@@ -1,2 +0,0 @@
|
||||
locale.nl_langinfo
|
||||
posixpath.realpath
|
||||
|
||||
@@ -3,7 +3,6 @@ locale.[A-Z0-9_]+ # Constants that should be moved to _locale and re-exported c
|
||||
locale.nl_langinfo # Function that should be moved to _locale and re-exported conditionally
|
||||
os.path.join # Parameter name mismatch
|
||||
posixpath.altsep # Type mismatch
|
||||
posixpath.realpath # Parameter name mismatch
|
||||
urllib.request.pathname2url # Parameter name mismatch
|
||||
urllib.request.url2pathname # Same
|
||||
|
||||
|
||||
Reference in New Issue
Block a user