Skip to content

Commit 1be2c3f

Browse files
authored
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
1 parent b58f832 commit 1be2c3f

File tree

15 files changed

+295
-311
lines changed

15 files changed

+295
-311
lines changed

stdlib/@tests/stubtest_allowlists/darwin-py310.txt

Lines changed: 41 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,6 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.10.20 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
7-
8-
9-
# =======
10-
# <= 3.12
11-
# =======
12-
13-
# Added in Python 3.10.18 (parameter `escapable`)
14-
html.parser.HTMLParser.set_cdata_mode
15-
16-
17-
# =======
18-
# <= 3.11
19-
# =======
20-
21-
# Added in Python 3.10.15
22-
email._header_value_parser.NLSET
23-
email._header_value_parser.SPECIALSNL
24-
email.errors.HeaderWriteError
25-
email.utils.getaddresses
26-
email.utils.parseaddr
27-
28-
29-
# =======
30-
# <= 3.10
31-
# =======
32-
335
# Incompatible changes introduced in Python 3.10.12
346
# (Remove once 3.10.12 becomes available for GitHub Actions)
357
shutil.unpack_archive
@@ -46,8 +18,8 @@ tarfile.data_filter
4618
tarfile.fully_trusted_filter
4719
tarfile.tar_filter
4820

49-
# Incompatible changes introduced in Python 3.9.14
50-
# (Remove once 3.9.14 becomes available for GitHub Actions)
21+
# Incompatible changes introduced in Python 3.10.14
22+
# (Remove once 3.10.14 becomes available for GitHub Actions)
5123
pyexpat.XMLParserType.GetReparseDeferralEnabled
5224
pyexpat.XMLParserType.SetReparseDeferralEnabled
5325
xml.etree.ElementTree.XMLParser.flush
@@ -59,6 +31,45 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
5931
xml.sax.expatreader.ExpatParser.flush
6032
zipfile.ZipInfo.__slots__
6133

34+
# Incompatible changes introduced in Python 3.10.15
35+
# (Remove once 3.10.15 becomes available for GitHub Actions)
36+
email._header_value_parser.NLSET
37+
email._header_value_parser.SPECIALSNL
38+
email.errors.HeaderWriteError
39+
email.utils.getaddresses
40+
email.utils.parseaddr
41+
42+
# Incompatible changes introduced in Python 3.10.17
43+
# (Remove once 3.10.17 becomes available for GitHub Actions)
44+
email._header_value_parser.get_encoded_word
45+
email._header_value_parser.make_quoted_pairs
46+
47+
# Incompatible changes introduced in Python 3.10.18
48+
# (Remove once 3.10.18 becomes available for GitHub Actions)
49+
html.parser.HTMLParser.set_cdata_mode # parameter `escapable`
50+
genericpath.__all__
51+
genericpath.ALLOW_MISSING
52+
(ntpath.__all__)?
53+
(ntpath.ALLOW_MISSING)?
54+
(ntpath.realpath)?
55+
(os.path.__all__)?
56+
(os.path.ALLOW_MISSING)?
57+
(os.path.realpath)?
58+
(posixpath.__all__)?
59+
(posixpath.ALLOW_MISSING)?
60+
(posixpath.realpath)?
61+
tarfile.LinkFallbackError
62+
tarfile.TarFile._extract_member
63+
tarfile.TarFile.makelink_with_filter
64+
65+
# Incompatible changes introduced in Python 3.10.20
66+
# (Remove once 3.10.20 becomes available for GitHub Actions)
67+
html.parser.HTMLParser.__init__ # parameter `scripting`
68+
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
69+
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
70+
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
71+
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
72+
6273

6374
# =============================================================
6475
# Allowlist entries that cannot or should not be fixed; <= 3.12

stdlib/@tests/stubtest_allowlists/darwin-py311.txt

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,44 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.11.15 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
5+
# Incompatible changes introduced in Python 3.11.10
6+
# (Remove once 3.11.10 becomes available for GitHub Actions)
7+
email._header_value_parser.NLSET
8+
email._header_value_parser.SPECIALSNL
9+
email.errors.HeaderWriteError
10+
email.utils.getaddresses
11+
email.utils.parseaddr
12+
13+
# Incompatible changes introduced in Python 3.11.12
14+
# (Remove once 3.11.12 becomes available for GitHub Actions)
15+
email._header_value_parser.get_encoded_word
16+
email._header_value_parser.make_quoted_pairs
17+
18+
# Incompatible changes introduced in Python 3.11.13
19+
# (Remove once 3.11.13 becomes available for GitHub Actions)
20+
html.parser.HTMLParser.set_cdata_mode # parameter `escapable`
21+
genericpath.__all__
22+
genericpath.ALLOW_MISSING
23+
(ntpath.__all__)?
24+
(ntpath.ALLOW_MISSING)?
25+
(ntpath.realpath)?
26+
(os.path.__all__)?
27+
(os.path.ALLOW_MISSING)?
28+
(os.path.realpath)?
29+
(posixpath.__all__)?
30+
(posixpath.ALLOW_MISSING)?
31+
(posixpath.realpath)?
32+
tarfile.LinkFallbackError
33+
tarfile.TarFile._extract_member
34+
tarfile.TarFile.makelink_with_filter
35+
36+
# Incompatible changes introduced in Python 3.11.15
37+
# (Remove once 3.11.15 becomes available for GitHub Actions)
38+
html.parser.HTMLParser.__init__ # parameter `scripting`
39+
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
40+
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
41+
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
42+
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
743

844

945
# ============
@@ -16,26 +52,6 @@ fcntl.F_OFD_SETLK
1652
fcntl.F_OFD_SETLKW
1753

1854

19-
# =======
20-
# <= 3.12
21-
# =======
22-
23-
# Added in Python 3.11.13 (parameter `escapable`)
24-
html.parser.HTMLParser.set_cdata_mode
25-
26-
27-
# =======
28-
# <= 3.11
29-
# =======
30-
31-
# Added in Python 3.11.10
32-
email._header_value_parser.NLSET
33-
email._header_value_parser.SPECIALSNL
34-
email.errors.HeaderWriteError
35-
email.utils.getaddresses
36-
email.utils.parseaddr
37-
38-
3955
# =============================================================
4056
# Allowlist entries that cannot or should not be fixed; <= 3.12
4157
# =============================================================

stdlib/@tests/stubtest_allowlists/darwin-py312.txt

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,31 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.12.13 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
5+
# Incompatible changes introduced in Python 3.12.11
6+
# (Remove once 3.12.11 becomes available for GitHub Actions)
7+
html.parser.HTMLParser.set_cdata_mode # parameter `escapable`
8+
genericpath.__all__
9+
genericpath.ALLOW_MISSING
10+
(ntpath.__all__)?
11+
(ntpath.ALLOW_MISSING)?
12+
(ntpath.realpath)?
13+
(os.path.__all__)?
14+
(os.path.ALLOW_MISSING)?
15+
(os.path.realpath)?
16+
(posixpath.__all__)?
17+
(posixpath.ALLOW_MISSING)?
18+
(posixpath.realpath)?
19+
tarfile.LinkFallbackError
20+
tarfile.TarFile._extract_member
21+
tarfile.TarFile.makelink_with_filter
22+
23+
# Incompatible changes introduced in Python 3.12.13
24+
# (Remove once 3.12.13 becomes available for GitHub Actions)
25+
html.parser.HTMLParser.__init__ # parameter `scripting`
26+
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
27+
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
28+
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
29+
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
730

831

932
# ============
@@ -16,14 +39,6 @@ fcntl.F_OFD_SETLK
1639
fcntl.F_OFD_SETLKW
1740

1841

19-
# =======
20-
# <= 3.12
21-
# =======
22-
23-
# Added in Python 3.12.11 (parameter `escapable`)
24-
html.parser.HTMLParser.set_cdata_mode
25-
26-
2742
# =============================================================
2843
# Allowlist entries that cannot or should not be fixed; <= 3.12
2944
# =============================================================

stdlib/@tests/stubtest_allowlists/darwin-py39.txt

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,11 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.9.25 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
7-
8-
9-
# =======
10-
# <= 3.12
11-
# =======
12-
13-
# Added in Python 3.9.23 (parameter `escapable`)
14-
html.parser.HTMLParser.set_cdata_mode
15-
16-
17-
# =======
18-
# <= 3.11
19-
# =======
20-
21-
# Added in Python 3.9.20
22-
email._header_value_parser.NLSET
23-
email._header_value_parser.SPECIALSNL
24-
email.errors.HeaderWriteError
25-
email.utils.getaddresses
26-
email.utils.parseaddr
27-
28-
29-
# ========
30-
# 3.9 only
31-
# ========
32-
335
# Added in Python 3.9.14
6+
# (Remove once 3.9.14 becomes available for GitHub Actions)
347
sys.set_int_max_str_digits
358
sys.get_int_max_str_digits
369

37-
38-
# =======
39-
# <= 3.10
40-
# =======
41-
4210
# Incompatible changes introduced in Python 3.9.17
4311
# (Remove once 3.9.17 becomes available for GitHub Actions)
4412
shutil.unpack_archive
@@ -68,6 +36,41 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
6836
xml.sax.expatreader.ExpatParser.flush
6937
zipfile.ZipInfo.__slots__
7038

39+
# Incompatible changes introduced in Python 3.9.20
40+
# (Remove once 3.9.20 becomes available for GitHub Actions)
41+
email._header_value_parser.NLSET
42+
email._header_value_parser.SPECIALSNL
43+
email.errors.HeaderWriteError
44+
email.utils.getaddresses
45+
email.utils.parseaddr
46+
47+
# Incompatible changes introduced in Python 3.9.22
48+
# (Remove once 3.9.22 becomes available for GitHub Actions)
49+
email._header_value_parser.get_encoded_word
50+
51+
# Incompatible changes introduced in Python 3.9.23
52+
# (Remove once 3.9.23 becomes available for GitHub Actions)
53+
genericpath.__all__
54+
genericpath.ALLOW_MISSING
55+
(ntpath.__all__)?
56+
(ntpath.ALLOW_MISSING)?
57+
(ntpath.realpath)?
58+
(os.path.__all__)?
59+
(os.path.ALLOW_MISSING)?
60+
(os.path.realpath)?
61+
(posixpath.__all__)?
62+
(posixpath.ALLOW_MISSING)?
63+
(posixpath.realpath)?
64+
tarfile.LinkFallbackError
65+
tarfile.TarFile._extract_member
66+
tarfile.TarFile.makelink_with_filter
67+
html.parser.HTMLParser.set_cdata_mode # parameter `escapable`
68+
email._header_value_parser.make_quoted_pairs
69+
70+
# Parameter `scripting` added in Python 3.9.25
71+
# (Remove once 3.9.25 becomes available for GitHub Actions)
72+
html.parser.HTMLParser.__init__
73+
7174

7275
# =============================================================
7376
# Allowlist entries that cannot or should not be fixed; <= 3.12

stdlib/@tests/stubtest_allowlists/linux-py310.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.10.20 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
5+
# Incompatible changes introduced in Python 3.10.20
6+
# (Remove once 3.10.20 becomes available for GitHub Actions)
7+
html.parser.HTMLParser.__init__ # parameter `scripting`
8+
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
9+
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
10+
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
11+
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
712

813

914
# =============================================================

stdlib/@tests/stubtest_allowlists/linux-py311.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.11.15 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
5+
# Incompatible changes introduced in Python 3.11.15
6+
# (Remove once 3.11.15 becomes available for GitHub Actions)
7+
html.parser.HTMLParser.__init__ # parameter `scripting`
8+
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
9+
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
10+
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
11+
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
712

813

914
# =============================================================

stdlib/@tests/stubtest_allowlists/linux-py312.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
# Temporary
33
# =========
44

5-
# Added in Python 3.12.13 (parameter `scripting`)
6-
html.parser.HTMLParser.__init__
5+
# Incompatible changes introduced in Python 3.12.13
6+
# (Remove once 3.12.13 becomes available for GitHub Actions)
7+
html.parser.HTMLParser.__init__ # parameter `scripting`
8+
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
9+
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
10+
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
11+
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
712

813

914
# =============================================================

stdlib/@tests/stubtest_allowlists/py310.txt

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# =========
2-
# Temporary
3-
# =========
4-
5-
6-
# Will be added in 3.10.20
7-
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
8-
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
9-
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
10-
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
11-
12-
131
# =========================
142
# New errors in Python 3.10
153
# =========================
@@ -268,11 +256,6 @@ typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
268256
unittest.test # Modules that exist at runtime, but shouldn't be added to typeshed
269257
unittest\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
270258

271-
# Incompatible changes introduced in Python 3.10.17
272-
# (Remove once 3.10.17 becomes available for all platforms)
273-
(email._header_value_parser.get_encoded_word)?
274-
(email._header_value_parser.make_quoted_pairs)?
275-
276259

277260
# =============================================================
278261
# Allowlist entries that cannot or should not be fixed; <= 3.12
@@ -324,19 +307,3 @@ _pickle.Pickler.persistent_id
324307
_pickle.Unpickler.persistent_load
325308
pickle.Pickler.persistent_id
326309
pickle.Unpickler.persistent_load
327-
328-
# Incompatible changes introduced in Python 3.10.18
329-
# (Remove once 3.10.18 becomes available for all platforms)
330-
(genericpath.__all__)?
331-
(genericpath.ALLOW_MISSING)?
332-
(ntpath.__all__)?
333-
(ntpath.ALLOW_MISSING)?
334-
(os.path.__all__)?
335-
(os.path.ALLOW_MISSING)?
336-
(os.path.realpath)?
337-
(posixpath.__all__)?
338-
(posixpath.ALLOW_MISSING)?
339-
(posixpath.realpath)?
340-
(tarfile.LinkFallbackError)?
341-
(tarfile.TarFile._extract_member)?
342-
(tarfile.TarFile.makelink_with_filter)?

0 commit comments

Comments
 (0)