From 817dfeaf4c1c76bc8e9d856c67fadd05f6cae1a9 Mon Sep 17 00:00:00 2001 From: donbarbos Date: Wed, 4 Mar 2026 07:28:24 +0400 Subject: [PATCH 1/4] Update stubtests for Python on linux --- stdlib/@tests/stubtest_allowlists/linux-py310.txt | 13 ------------- stdlib/@tests/stubtest_allowlists/linux-py311.txt | 13 ------------- stdlib/@tests/stubtest_allowlists/linux-py312.txt | 13 ------------- 3 files changed, 39 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/linux-py310.txt b/stdlib/@tests/stubtest_allowlists/linux-py310.txt index fd8e9b71c7c2..a4083aa22ed7 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py310.txt @@ -1,16 +1,3 @@ -# ========= -# Temporary -# ========= - -# 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/linux-py311.txt b/stdlib/@tests/stubtest_allowlists/linux-py311.txt index cff95b93c0fb..a4083aa22ed7 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py311.txt @@ -1,16 +1,3 @@ -# ========= -# Temporary -# ========= - -# 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 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/linux-py312.txt b/stdlib/@tests/stubtest_allowlists/linux-py312.txt index 9d9984713dcb..a4083aa22ed7 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py312.txt @@ -1,16 +1,3 @@ -# ========= -# Temporary -# ========= - -# 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 - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= From a30656dae58d6a95a7f353159be61a1fb24a208a Mon Sep 17 00:00:00 2001 From: donbarbos Date: Wed, 4 Mar 2026 07:34:14 +0400 Subject: [PATCH 2/4] update email --- stdlib/email/_header_value_parser.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/email/_header_value_parser.pyi b/stdlib/email/_header_value_parser.pyi index 32caf83bd022..a6d7c48d69cd 100644 --- a/stdlib/email/_header_value_parser.pyi +++ b/stdlib/email/_header_value_parser.pyi @@ -26,8 +26,8 @@ SPECIALSNL: Final[set[str]] def make_quoted_pairs(value: Any) -> str: ... def quote_string(value: Any) -> str: ... -if sys.version_info >= (3, 13): - # Added in Python 3.13.12, 3.14.3 +if sys.version_info >= (3, 10): + # Added in Python 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 def make_parenthesis_pairs(value: Any) -> str: ... rfc2047_matcher: Final[Pattern[str]] From 9bdcc14445f1a4517bb82e720a4ce51deb49b55d Mon Sep 17 00:00:00 2001 From: donbarbos Date: Wed, 4 Mar 2026 07:36:34 +0400 Subject: [PATCH 3/4] last update --- stdlib/@tests/stubtest_allowlists/darwin-py310.txt | 1 + stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 1 + stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 1 + stdlib/@tests/stubtest_allowlists/win32-py310.txt | 1 + stdlib/@tests/stubtest_allowlists/win32-py311.txt | 1 + stdlib/@tests/stubtest_allowlists/win32-py312.txt | 1 + 6 files changed, 6 insertions(+) diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt index e2a10b3ed34f..f5913215d1d5 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt @@ -65,6 +65,7 @@ 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` +email._header_value_parser.make_parenthesis_pairs pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt index 6cbfa8b22c53..9349bbee4b08 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt @@ -36,6 +36,7 @@ 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` +email._header_value_parser.make_parenthesis_pairs pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt index 28e7411ab886..883dbd04015e 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt @@ -23,6 +23,7 @@ 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` +email._header_value_parser.make_parenthesis_pairs pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/win32-py310.txt b/stdlib/@tests/stubtest_allowlists/win32-py310.txt index f067989f1418..a063dd0b8573 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py310.txt @@ -65,6 +65,7 @@ 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` +email._header_value_parser.make_parenthesis_pairs pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/win32-py311.txt b/stdlib/@tests/stubtest_allowlists/win32-py311.txt index 902e308f05c7..4c5f249f1310 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py311.txt @@ -36,6 +36,7 @@ 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` +email._header_value_parser.make_parenthesis_pairs pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/win32-py312.txt b/stdlib/@tests/stubtest_allowlists/win32-py312.txt index f0e828de25f6..7587b5005e4f 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py312.txt @@ -23,6 +23,7 @@ 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` +email._header_value_parser.make_parenthesis_pairs pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold From 675b79f30c9e02fb97737cdd4d120a2b949c81ce Mon Sep 17 00:00:00 2001 From: donbarbos Date: Wed, 4 Mar 2026 07:46:17 +0400 Subject: [PATCH 4/4] update order --- stdlib/@tests/stubtest_allowlists/darwin-py310.txt | 2 +- stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 2 +- stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 2 +- stdlib/@tests/stubtest_allowlists/win32-py310.txt | 2 +- stdlib/@tests/stubtest_allowlists/win32-py311.txt | 2 +- stdlib/@tests/stubtest_allowlists/win32-py312.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt index f5913215d1d5..64485b83320b 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt @@ -64,8 +64,8 @@ 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` email._header_value_parser.make_parenthesis_pairs +html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt index 9349bbee4b08..733310806748 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt @@ -35,8 +35,8 @@ 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` email._header_value_parser.make_parenthesis_pairs +html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt index 883dbd04015e..844a224585df 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt @@ -22,8 +22,8 @@ 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` email._header_value_parser.make_parenthesis_pairs +html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/win32-py310.txt b/stdlib/@tests/stubtest_allowlists/win32-py310.txt index a063dd0b8573..68a5eb0e4e74 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py310.txt @@ -64,8 +64,8 @@ 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` email._header_value_parser.make_parenthesis_pairs +html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/win32-py311.txt b/stdlib/@tests/stubtest_allowlists/win32-py311.txt index 4c5f249f1310..502a9fc3133a 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py311.txt @@ -35,8 +35,8 @@ 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` email._header_value_parser.make_parenthesis_pairs +html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold diff --git a/stdlib/@tests/stubtest_allowlists/win32-py312.txt b/stdlib/@tests/stubtest_allowlists/win32-py312.txt index 7587b5005e4f..8c71d5940361 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py312.txt @@ -22,8 +22,8 @@ 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` email._header_value_parser.make_parenthesis_pairs +html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold