Skip to content

Commit

Permalink
Resolve 3.13 issues for ctypes._endian (#12372)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed Aug 3, 2024
1 parent 0bc7b4f commit 0fd6cd2
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 17 deletions.
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/py310.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,8 @@ types.SimpleNamespace.__init__ # class doesn't accept positional arguments but h
# These enums derive from (str, Enum)
pstats.SortKey.__new__
tkinter.EventType.__new__

# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL
ctypes._endian.RTLD_LOCAL
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/py311.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,8 @@ asynchat.async_chat.use_encoding
asynchat.find_prefix_at_end
pkgutil.ImpImporter\..*
pkgutil.ImpLoader\..*

# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL
ctypes._endian.RTLD_LOCAL
6 changes: 6 additions & 0 deletions stdlib/@tests/stubtest_allowlists/py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,9 @@ typing.SupportsAbs.__type_params__
typing.SupportsRound.__type_params__
typing_extensions.SupportsAbs.__type_params__
typing_extensions.SupportsRound.__type_params__

# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL
ctypes._endian.RTLD_LOCAL
ctypes._endian.SIZEOF_TIME_T
7 changes: 0 additions & 7 deletions stdlib/@tests/stubtest_allowlists/py313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ _thread.interrupt_main
_thread.lock
_thread.start_joinable_thread
_tkinter.create
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL
ctypes._endian.RTLD_LOCAL
ctypes._endian.SIZEOF_TIME_T
ctypes._endian.cdll
ctypes._endian.pydll
ctypes._endian.pythonapi
doctest.TestResults.__doc__
doctest.TestResults.__new__
filecmp.dircmp.__init__
Expand Down
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,8 @@ unittest\.test\..+
# These enums derive from (str, Enum)
pstats.SortKey.__new__
tkinter.EventType.__new__

# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL
ctypes._endian.RTLD_LOCAL
5 changes: 5 additions & 0 deletions stdlib/@tests/stubtest_allowlists/py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,8 @@ types.SimpleNamespace.__init__ # class doesn't accept positional arguments but
# These enums derive from (str, Enum)
pstats.SortKey.__new__
tkinter.EventType.__new__

# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL
ctypes._endian.RTLD_LOCAL
2 changes: 0 additions & 2 deletions stdlib/@tests/stubtest_allowlists/win32-py313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ _winapi.STARTF_USEHOTKEY
_winapi.STARTF_USEPOSITION
_winapi.STARTF_USESIZE
_winapi.SetEvent
ctypes._endian.oledll
ctypes._endian.windll
nt.fchmod
nt.lchmod
ntpath.exists
Expand Down
9 changes: 1 addition & 8 deletions stdlib/ctypes/_endian.pyi