From bb1f70ad0815f5289f8c9c70634298af9103642a Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 8 Dec 2023 10:59:44 +0000 Subject: [PATCH] Fix stubtest now that Python 3.12.1 is out (#11121) --- tests/stubtest_allowlists/darwin-py312.txt | 5 +++++ tests/stubtest_allowlists/py312.txt | 4 ---- tests/stubtest_allowlists/win32-py312.txt | 4 ---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/stubtest_allowlists/darwin-py312.txt b/tests/stubtest_allowlists/darwin-py312.txt index f31fcfe80..a21223ed2 100644 --- a/tests/stubtest_allowlists/darwin-py312.txt +++ b/tests/stubtest_allowlists/darwin-py312.txt @@ -1,3 +1,8 @@ +# TODO: fix +_curses.unget_wch +_curses.window.get_wch +curses.window.get_wch + # These entries looks like a `setup-python` bug: (dbm.gnu)? (_?locale.bind_textdomain_codeset)? diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index ad2cd800e..792f4a25d 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -14,10 +14,6 @@ enum.Enum.__init__ tkinter._VersionInfoType.__doc__ typing.NewType.__mro_entries__ -# These can be removed when the next patch release of 3.12 comes out: -io.__all__ -sre_parse.MAXWIDTH - # ========== # Related to positional-only arguments # ========== diff --git a/tests/stubtest_allowlists/win32-py312.txt b/tests/stubtest_allowlists/win32-py312.txt index 9e8b97881..4d170e27f 100644 --- a/tests/stubtest_allowlists/win32-py312.txt +++ b/tests/stubtest_allowlists/win32-py312.txt @@ -1,7 +1,3 @@ -# CPython bug; waiting on https://github.com/python/cpython/pull/109790 to be backported -ntpath.isdir -os.path.isdir - # Undocumented internal method, not really for public consumption. # (Hard to add types for unless we add stubs for the undocumented _overlapped module...) asyncio.IocpProactor.finish_socket_func