ctypes.GetLastError  # Is actually a pointer
locale.[A-Z0-9_]+  # Constants that should be moved to _locale and re-exported conditionally
locale.nl_langinfo  # Function that should be moved to _locale and re-exported conditionally
mmap.PAGESIZE
# alias for a class defined elsewhere,
# mypy infers the variable has type `(*args) -> DupHandle` but stubtest infers the runtime type as <class DupHandle>
multiprocessing.reduction.AbstractReducer.DupHandle
msilib.text.dirname
msvcrt.CRT_ASSEMBLY_VERSION
selectors.KqueueSelector
signal.SIGEMT
signal.SIGINFO
winsound.SND_APPLICATION

# Exists at runtime, but missing from stubs
_msi.MSIError
msvcrt.SetErrorMode
ssl.SSLSocket.recvmsg
ssl.SSLSocket.recvmsg_into
ssl.SSLSocket.sendmsg
winreg.HKEYType.handle
_ctypes.FreeLibrary
_ctypes.LoadLibrary


# ==========
# Allowlist entries that cannot or should not be fixed
# ==========

# Modules that do not exist on Windows systems
_curses
_posixsubprocess
asyncio.unix_events
crypt
dbm.gnu
dbm.ndbm
fcntl
grp
nis
ossaudiodev
posix
pwd
readline
resource
spwd
syslog
termios
xxlimited

# multiprocessing.popen_fork, popen_forkserver, and popen_spawn_posix exist on Windows but fail to import
multiprocessing.popen_fork
multiprocessing.popen_forkserver
multiprocessing.popen_spawn_posix

# Modules that rely on _curses
curses
curses.ascii
curses.has_key
curses.panel
curses.textpad

# Modules that rely on termios
pty
tty

# pathlib functions that rely on modules that don't exist on Windows
pathlib.Path.owner
pathlib.Path.group

# Added in a patch release, backported to all security branches,
# but have yet to find their way to all GitHub Actions images
(sys.get_int_max_str_digits)?
(sys.set_int_max_str_digits)?
