From 1be2c3fd060952d0bf4fa18f73626222e4e1bbc8 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Thu, 18 Dec 2025 14:07:55 +0000 Subject: [PATCH] Group temporary entries in allowlists (#15138) * Get rid of the ()? syntax in platform-version-specific since it was only justified in version-specific entries * Move ()? entries from version-specific to platform-version-specific to detect changes in CI instantly (already without ()? syntax) * Move all these entries to Temporary header * Sort entries by changed version to make deleting easier * Everything related to one version is now in one block nearby * Also, the headings indicating which versions have this problem seem of little use --- .../stubtest_allowlists/darwin-py310.txt | 71 +++++++++++-------- .../stubtest_allowlists/darwin-py311.txt | 60 ++++++++++------ .../stubtest_allowlists/darwin-py312.txt | 35 ++++++--- .../stubtest_allowlists/darwin-py39.txt | 69 +++++++++--------- .../stubtest_allowlists/linux-py310.txt | 9 ++- .../stubtest_allowlists/linux-py311.txt | 9 ++- .../stubtest_allowlists/linux-py312.txt | 9 ++- stdlib/@tests/stubtest_allowlists/py310.txt | 33 --------- stdlib/@tests/stubtest_allowlists/py311.txt | 33 --------- stdlib/@tests/stubtest_allowlists/py312.txt | 27 ------- stdlib/@tests/stubtest_allowlists/py39.txt | 24 ------- .../stubtest_allowlists/win32-py310.txt | 71 +++++++++++-------- .../stubtest_allowlists/win32-py311.txt | 48 ++++++++----- .../stubtest_allowlists/win32-py312.txt | 39 ++++++---- .../@tests/stubtest_allowlists/win32-py39.txt | 69 +++++++++--------- 15 files changed, 295 insertions(+), 311 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt index df6bf0af1..e2a10b3ed 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt @@ -2,34 +2,6 @@ # Temporary # ========= -# Added in Python 3.10.20 (parameter `scripting`) -html.parser.HTMLParser.__init__ - - -# ======= -# <= 3.12 -# ======= - -# Added in Python 3.10.18 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - -# ======= -# <= 3.11 -# ======= - -# Added in Python 3.10.15 -email._header_value_parser.NLSET -email._header_value_parser.SPECIALSNL -email.errors.HeaderWriteError -email.utils.getaddresses -email.utils.parseaddr - - -# ======= -# <= 3.10 -# ======= - # Incompatible changes introduced in Python 3.10.12 # (Remove once 3.10.12 becomes available for GitHub Actions) shutil.unpack_archive @@ -46,8 +18,8 @@ tarfile.data_filter tarfile.fully_trusted_filter tarfile.tar_filter -# Incompatible changes introduced in Python 3.9.14 -# (Remove once 3.9.14 becomes available for GitHub Actions) +# Incompatible changes introduced in Python 3.10.14 +# (Remove once 3.10.14 becomes available for GitHub Actions) pyexpat.XMLParserType.GetReparseDeferralEnabled pyexpat.XMLParserType.SetReparseDeferralEnabled xml.etree.ElementTree.XMLParser.flush @@ -59,6 +31,45 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled xml.sax.expatreader.ExpatParser.flush zipfile.ZipInfo.__slots__ +# Incompatible changes introduced in Python 3.10.15 +# (Remove once 3.10.15 becomes available for GitHub Actions) +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr + +# Incompatible changes introduced in Python 3.10.17 +# (Remove once 3.10.17 becomes available for GitHub Actions) +email._header_value_parser.get_encoded_word +email._header_value_parser.make_quoted_pairs + +# Incompatible changes introduced in Python 3.10.18 +# (Remove once 3.10.18 becomes available for GitHub Actions) +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter + +# Incompatible changes introduced in Python 3.10.20 +# (Remove once 3.10.20 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification + # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt index b389202ca..6cbfa8b22 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt @@ -2,8 +2,44 @@ # Temporary # ========= -# Added in Python 3.11.15 (parameter `scripting`) -html.parser.HTMLParser.__init__ +# Incompatible changes introduced in Python 3.11.10 +# (Remove once 3.11.10 becomes available for GitHub Actions) +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr + +# Incompatible changes introduced in Python 3.11.12 +# (Remove once 3.11.12 becomes available for GitHub Actions) +email._header_value_parser.get_encoded_word +email._header_value_parser.make_quoted_pairs + +# Incompatible changes introduced in Python 3.11.13 +# (Remove once 3.11.13 becomes available for GitHub Actions) +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter + +# Incompatible changes introduced in Python 3.11.15 +# (Remove once 3.11.15 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification # ============ @@ -16,26 +52,6 @@ fcntl.F_OFD_SETLK fcntl.F_OFD_SETLKW -# ======= -# <= 3.12 -# ======= - -# Added in Python 3.11.13 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - -# ======= -# <= 3.11 -# ======= - -# Added in Python 3.11.10 -email._header_value_parser.NLSET -email._header_value_parser.SPECIALSNL -email.errors.HeaderWriteError -email.utils.getaddresses -email.utils.parseaddr - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt index 77684961b..28e7411ab 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt @@ -2,8 +2,31 @@ # Temporary # ========= -# Added in Python 3.12.13 (parameter `scripting`) -html.parser.HTMLParser.__init__ +# Incompatible changes introduced in Python 3.12.11 +# (Remove once 3.12.11 becomes available for GitHub Actions) +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter + +# Incompatible changes introduced in Python 3.12.13 +# (Remove once 3.12.13 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification # ============ @@ -16,14 +39,6 @@ fcntl.F_OFD_SETLK fcntl.F_OFD_SETLKW -# ======= -# <= 3.12 -# ======= - -# Added in Python 3.12.11 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py39.txt b/stdlib/@tests/stubtest_allowlists/darwin-py39.txt index 6c94d5c20..0e55e7f25 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py39.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py39.txt @@ -2,43 +2,11 @@ # Temporary # ========= -# Added in Python 3.9.25 (parameter `scripting`) -html.parser.HTMLParser.__init__ - - -# ======= -# <= 3.12 -# ======= - -# Added in Python 3.9.23 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - -# ======= -# <= 3.11 -# ======= - -# Added in Python 3.9.20 -email._header_value_parser.NLSET -email._header_value_parser.SPECIALSNL -email.errors.HeaderWriteError -email.utils.getaddresses -email.utils.parseaddr - - -# ======== -# 3.9 only -# ======== - # Added in Python 3.9.14 +# (Remove once 3.9.14 becomes available for GitHub Actions) sys.set_int_max_str_digits sys.get_int_max_str_digits - -# ======= -# <= 3.10 -# ======= - # Incompatible changes introduced in Python 3.9.17 # (Remove once 3.9.17 becomes available for GitHub Actions) shutil.unpack_archive @@ -68,6 +36,41 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled xml.sax.expatreader.ExpatParser.flush zipfile.ZipInfo.__slots__ +# Incompatible changes introduced in Python 3.9.20 +# (Remove once 3.9.20 becomes available for GitHub Actions) +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr + +# Incompatible changes introduced in Python 3.9.22 +# (Remove once 3.9.22 becomes available for GitHub Actions) +email._header_value_parser.get_encoded_word + +# Incompatible changes introduced in Python 3.9.23 +# (Remove once 3.9.23 becomes available for GitHub Actions) +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +email._header_value_parser.make_quoted_pairs + +# Parameter `scripting` added in Python 3.9.25 +# (Remove once 3.9.25 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ + # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 diff --git a/stdlib/@tests/stubtest_allowlists/linux-py310.txt b/stdlib/@tests/stubtest_allowlists/linux-py310.txt index 7673e9c65..fd8e9b71c 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py310.txt @@ -2,8 +2,13 @@ # Temporary # ========= -# Added in Python 3.10.20 (parameter `scripting`) -html.parser.HTMLParser.__init__ +# Incompatible changes introduced in Python 3.10.20 +# (Remove once 3.10.20 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/linux-py311.txt b/stdlib/@tests/stubtest_allowlists/linux-py311.txt index 671201251..cff95b93c 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py311.txt @@ -2,8 +2,13 @@ # Temporary # ========= -# Added in Python 3.11.15 (parameter `scripting`) -html.parser.HTMLParser.__init__ +# Incompatible changes introduced in Python 3.11.15 +# (Remove once 3.11.15 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/linux-py312.txt b/stdlib/@tests/stubtest_allowlists/linux-py312.txt index 9ce8bbf9e..9d9984713 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py312.txt @@ -2,8 +2,13 @@ # Temporary # ========= -# Added in Python 3.12.13 (parameter `scripting`) -html.parser.HTMLParser.__init__ +# Incompatible changes introduced in Python 3.12.13 +# (Remove once 3.12.13 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/py310.txt b/stdlib/@tests/stubtest_allowlists/py310.txt index 37eb5d038..b11ea3c6c 100644 --- a/stdlib/@tests/stubtest_allowlists/py310.txt +++ b/stdlib/@tests/stubtest_allowlists/py310.txt @@ -1,15 +1,3 @@ -# ========= -# Temporary -# ========= - - -# Will be added in 3.10.20 -pyexpat.XMLParserType.SetAllocTrackerActivationThreshold -pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification -xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold -xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification - - # ========================= # New errors in Python 3.10 # ========================= @@ -268,11 +256,6 @@ typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__ unittest.test # Modules that exist at runtime, but shouldn't be added to typeshed unittest\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed -# Incompatible changes introduced in Python 3.10.17 -# (Remove once 3.10.17 becomes available for all platforms) -(email._header_value_parser.get_encoded_word)? -(email._header_value_parser.make_quoted_pairs)? - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 @@ -324,19 +307,3 @@ _pickle.Pickler.persistent_id _pickle.Unpickler.persistent_load pickle.Pickler.persistent_id pickle.Unpickler.persistent_load - -# Incompatible changes introduced in Python 3.10.18 -# (Remove once 3.10.18 becomes available for all platforms) -(genericpath.__all__)? -(genericpath.ALLOW_MISSING)? -(ntpath.__all__)? -(ntpath.ALLOW_MISSING)? -(os.path.__all__)? -(os.path.ALLOW_MISSING)? -(os.path.realpath)? -(posixpath.__all__)? -(posixpath.ALLOW_MISSING)? -(posixpath.realpath)? -(tarfile.LinkFallbackError)? -(tarfile.TarFile._extract_member)? -(tarfile.TarFile.makelink_with_filter)? diff --git a/stdlib/@tests/stubtest_allowlists/py311.txt b/stdlib/@tests/stubtest_allowlists/py311.txt index 1f36410de..e7ef0c7af 100644 --- a/stdlib/@tests/stubtest_allowlists/py311.txt +++ b/stdlib/@tests/stubtest_allowlists/py311.txt @@ -1,15 +1,3 @@ -# ========= -# Temporary -# ========= - - -# Will be added in 3.11.15 -pyexpat.XMLParserType.SetAllocTrackerActivationThreshold -pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification -xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold -xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification - - # ========================= # New errors in Python 3.11 # ========================= @@ -244,11 +232,6 @@ typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__ unittest.test # Modules that exist at runtime, but shouldn't be added to typeshed unittest\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed -# Incompatible changes introduced in Python 3.11.12 -# (Remove once 3.11.12 becomes available for all platforms) -(email._header_value_parser.get_encoded_word)? -(email._header_value_parser.make_quoted_pairs)? - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 @@ -300,19 +283,3 @@ _pickle.Pickler.persistent_id _pickle.Unpickler.persistent_load pickle.Pickler.persistent_id pickle.Unpickler.persistent_load - -# Incompatible changes introduced in Python 3.11.13 -# (Remove once 3.11.13 becomes available for all platforms) -(genericpath.__all__)? -(genericpath.ALLOW_MISSING)? -(ntpath.__all__)? -(ntpath.ALLOW_MISSING)? -(os.path.__all__)? -(os.path.ALLOW_MISSING)? -(os.path.realpath)? -(posixpath.__all__)? -(posixpath.ALLOW_MISSING)? -(posixpath.realpath)? -(tarfile.LinkFallbackError)? -(tarfile.TarFile._extract_member)? -(tarfile.TarFile.makelink_with_filter)? diff --git a/stdlib/@tests/stubtest_allowlists/py312.txt b/stdlib/@tests/stubtest_allowlists/py312.txt index d21fdfff4..24e1b1f80 100644 --- a/stdlib/@tests/stubtest_allowlists/py312.txt +++ b/stdlib/@tests/stubtest_allowlists/py312.txt @@ -1,14 +1,3 @@ -# ========= -# Temporary -# ========= - -# Will be added in 3.12.13 -pyexpat.XMLParserType.SetAllocTrackerActivationThreshold -pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification -xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold -xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification - - # ========================= # New errors in Python 3.12 # ========================= @@ -276,19 +265,3 @@ _pickle.Pickler.persistent_id _pickle.Unpickler.persistent_load pickle.Pickler.persistent_id pickle.Unpickler.persistent_load - -# Incompatible changes introduced in Python 3.12.11 -# (Remove once 3.12.11 becomes available for all platforms) -(genericpath.__all__)? -(genericpath.ALLOW_MISSING)? -(ntpath.__all__)? -(ntpath.ALLOW_MISSING)? -(os.path.__all__)? -(os.path.ALLOW_MISSING)? -(os.path.realpath)? -(posixpath.__all__)? -(posixpath.ALLOW_MISSING)? -(posixpath.realpath)? -(tarfile.LinkFallbackError)? -(tarfile.TarFile._extract_member)? -(tarfile.TarFile.makelink_with_filter)? diff --git a/stdlib/@tests/stubtest_allowlists/py39.txt b/stdlib/@tests/stubtest_allowlists/py39.txt index fb530e297..76ee91c4c 100644 --- a/stdlib/@tests/stubtest_allowlists/py39.txt +++ b/stdlib/@tests/stubtest_allowlists/py39.txt @@ -204,14 +204,6 @@ typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__ unittest.test # Modules that exist at runtime, but shouldn't be added to typeshed unittest\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed -# Incompatible changes introduced in Python 3.9.22 -# (Remove once 3.9.22 becomes available for all platforms) -(email._header_value_parser.get_encoded_word)? - -# Incompatible changes introduced in Python 3.9.23 -# (Remove once 3.9.23 becomes available for all platforms) -(email._header_value_parser.make_quoted_pairs)? - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 @@ -263,19 +255,3 @@ _pickle.Pickler.persistent_id _pickle.Unpickler.persistent_load pickle.Pickler.persistent_id pickle.Unpickler.persistent_load - -# Incompatible changes introduced in Python 3.9.23 -# (Remove once 3.9.23 becomes available for all platforms) -(genericpath.__all__)? -(genericpath.ALLOW_MISSING)? -(ntpath.__all__)? -(ntpath.ALLOW_MISSING)? -(os.path.__all__)? -(os.path.ALLOW_MISSING)? -(os.path.realpath)? -(posixpath.__all__)? -(posixpath.ALLOW_MISSING)? -(posixpath.realpath)? -(tarfile.LinkFallbackError)? -(tarfile.TarFile._extract_member)? -(tarfile.TarFile.makelink_with_filter)? diff --git a/stdlib/@tests/stubtest_allowlists/win32-py310.txt b/stdlib/@tests/stubtest_allowlists/win32-py310.txt index 1c26b320d..f067989f1 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py310.txt @@ -2,30 +2,6 @@ # Temporary # ========= -# Added in Python 3.10.20 (parameter `scripting`) -html.parser.HTMLParser.__init__ - -# Added in Python 3.10.18 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - -# ======= -# <= 3.11 -# ======= - -# Incompatible changes introduced in Python 3.10.15 -# (Remove once 3.10.15 becomes available for Windows) -email._header_value_parser.NLSET -email._header_value_parser.SPECIALSNL -email.errors.HeaderWriteError -email.utils.getaddresses -email.utils.parseaddr - - -# ======= -# <= 3.10 -# ======= - # Incompatible changes introduced in Python 3.10.12 # (Remove once 3.10.12 becomes available for GitHub Actions) shutil.unpack_archive @@ -42,8 +18,8 @@ tarfile.data_filter tarfile.fully_trusted_filter tarfile.tar_filter -# Incompatible changes introduced in Python 3.9.14 -# (Remove once 3.9.14 becomes available for GitHub Actions) +# Incompatible changes introduced in Python 3.10.14 +# (Remove once 3.10.14 becomes available for GitHub Actions) pyexpat.XMLParserType.GetReparseDeferralEnabled pyexpat.XMLParserType.SetReparseDeferralEnabled xml.etree.ElementTree.XMLParser.flush @@ -55,6 +31,45 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled xml.sax.expatreader.ExpatParser.flush zipfile.ZipInfo.__slots__ +# Incompatible changes introduced in Python 3.10.15 +# (Remove once 3.10.15 becomes available for GitHub Actions) +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr + +# Incompatible changes introduced in Python 3.10.17 +# (Remove once 3.10.17 becomes available for GitHub Actions) +email._header_value_parser.get_encoded_word +email._header_value_parser.make_quoted_pairs + +# Incompatible changes introduced in Python 3.10.18 +# (Remove once 3.10.18 becomes available for GitHub Actions) +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter + +# Incompatible changes introduced in Python 3.10.20 +# (Remove once 3.10.20 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification + # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 @@ -65,7 +80,3 @@ crypt nis ossaudiodev spwd - -# Incompatible changes introduced in Python 3.10.18 -# (Remove once 3.10.18 becomes available for Windows) -(ntpath.realpath)? diff --git a/stdlib/@tests/stubtest_allowlists/win32-py311.txt b/stdlib/@tests/stubtest_allowlists/win32-py311.txt index bcc6d7c17..902e308f0 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py311.txt @@ -2,25 +2,45 @@ # Temporary # ========= -# Added in Python 3.11.15 (parameter `scripting`) -html.parser.HTMLParser.__init__ - -# Added in Python 3.11.13 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - -# ======= -# <= 3.11 -# ======= - # Incompatible changes introduced in Python 3.11.10 -# (Remove once 3.11.10 becomes available for Windows) +# (Remove once 3.11.10 becomes available for GitHub Actions) email._header_value_parser.NLSET email._header_value_parser.SPECIALSNL email.errors.HeaderWriteError email.utils.getaddresses email.utils.parseaddr +# Incompatible changes introduced in Python 3.11.12 +# (Remove once 3.11.12 becomes available for GitHub Actions) +email._header_value_parser.get_encoded_word +email._header_value_parser.make_quoted_pairs + +# Incompatible changes introduced in Python 3.11.13 +# (Remove once 3.11.13 becomes available for GitHub Actions) +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter + +# Incompatible changes introduced in Python 3.11.15 +# (Remove once 3.11.15 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification + # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 @@ -31,7 +51,3 @@ crypt nis ossaudiodev spwd - -# Incompatible changes introduced in Python 3.11.13 -# (Remove once 3.11.18 becomes available for Windows) -(ntpath.realpath)? diff --git a/stdlib/@tests/stubtest_allowlists/win32-py312.txt b/stdlib/@tests/stubtest_allowlists/win32-py312.txt index c977d31f2..f0e828de2 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py312.txt @@ -2,8 +2,31 @@ # Temporary # ========= -# Added in Python 3.12.13 (parameter `scripting`) -html.parser.HTMLParser.__init__ +# Incompatible changes introduced in Python 3.12.11 +# (Remove once 3.12.11 becomes available for GitHub Actions) +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter + +# Incompatible changes introduced in Python 3.12.13 +# (Remove once 3.12.13 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ # parameter `scripting` +pyexpat.XMLParserType.SetAllocTrackerActivationThreshold +pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification +xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold +xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification # ======= @@ -24,14 +47,6 @@ _winapi.GetLongPathName _winapi.GetShortPathName -# ======= -# <= 3.12 -# ======= - -# Added in Python 3.12.11 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= @@ -41,7 +56,3 @@ crypt nis ossaudiodev spwd - -# Incompatible changes introduced in Python 3.12.11 -# (Remove once 3.12.11 becomes available for Windows) -(ntpath.realpath)? diff --git a/stdlib/@tests/stubtest_allowlists/win32-py39.txt b/stdlib/@tests/stubtest_allowlists/win32-py39.txt index 26af9746f..41a273d99 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py39.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py39.txt @@ -2,39 +2,11 @@ # Temporary # ========= -# Added in Python 3.9.25 (parameter `scripting`) -html.parser.HTMLParser.__init__ - -# Added in Python 3.9.23 (parameter `escapable`) -html.parser.HTMLParser.set_cdata_mode - - -# ======= -# <= 3.11 -# ======= - -# Incompatible changes introduced in Python 3.9.20 -# (Remove once 3.9.20 becomes available for Windows) -email._header_value_parser.NLSET -email._header_value_parser.SPECIALSNL -email.errors.HeaderWriteError -email.utils.getaddresses -email.utils.parseaddr - - -# ======== -# 3.9 only -# ======== - # Added in Python 3.9.14 +# (Remove once 3.9.14 becomes available for GitHub Actions) sys.set_int_max_str_digits sys.get_int_max_str_digits - -# ======= -# <= 3.10 -# ======= - # Incompatible changes introduced in Python 3.9.17 # (Remove once 3.9.17 becomes available for GitHub Actions) shutil.unpack_archive @@ -64,6 +36,41 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled xml.sax.expatreader.ExpatParser.flush zipfile.ZipInfo.__slots__ +# Incompatible changes introduced in Python 3.9.20 +# (Remove once 3.9.20 becomes available for GitHub Actions) +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr + +# Incompatible changes introduced in Python 3.9.22 +# (Remove once 3.9.22 becomes available for GitHub Actions) +email._header_value_parser.get_encoded_word + +# Incompatible changes introduced in Python 3.9.23 +# (Remove once 3.9.23 becomes available for GitHub Actions) +genericpath.__all__ +genericpath.ALLOW_MISSING +(ntpath.__all__)? +(ntpath.ALLOW_MISSING)? +(ntpath.realpath)? +(os.path.__all__)? +(os.path.ALLOW_MISSING)? +(os.path.realpath)? +(posixpath.__all__)? +(posixpath.ALLOW_MISSING)? +(posixpath.realpath)? +tarfile.LinkFallbackError +tarfile.TarFile._extract_member +tarfile.TarFile.makelink_with_filter +html.parser.HTMLParser.set_cdata_mode # parameter `escapable` +email._header_value_parser.make_quoted_pairs + +# Parameter `scripting` added in Python 3.9.25 +# (Remove once 3.9.25 becomes available for GitHub Actions) +html.parser.HTMLParser.__init__ + # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 @@ -74,7 +81,3 @@ crypt nis ossaudiodev spwd - -# Incompatible changes introduced in Python 3.9.23 -# (Remove once 3.9.23 becomes available for Windows) -(ntpath.realpath)?