Skip to content

Commit b7f7335

Browse files
authored
move platform.platorm on the allowlist to don't fix section (#14625)
1 parent f8773eb commit b7f7335

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

stdlib/@tests/stubtest_allowlists/py310.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to
107107
xml.etree.ElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
108108
xml.etree.cElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
109109

110-
platform.platform # runtime default is 0, we pretend it's a bool
111-
112110

113111
# =======
114112
# <= 3.12
@@ -250,6 +248,7 @@ lib2to3.tests # Modules that exist at runtime, but shouldn't be added to typesh
250248
lib2to3\.tests\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
251249
pkgutil.ImpImporter\..* # Removed in 3.12
252250
pkgutil.ImpLoader\..* # Removed in 3.12
251+
platform.platform # runtime default is 0, we pretend it's a bool
253252
poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
254253
tkinter.test # Modules that exist at runtime, but shouldn't be added to typeshed
255254
tkinter\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed

stdlib/@tests/stubtest_allowlists/py311.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to
7575
xml.etree.ElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
7676
xml.etree.cElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
7777

78-
platform.platform # runtime default is 0, we pretend it's a bool
79-
8078

8179
# =======
8280
# <= 3.12
@@ -228,6 +226,7 @@ lib2to3.tests # Modules that exist at runtime, but shouldn't be added to typesh
228226
lib2to3\.tests\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
229227
pkgutil.ImpImporter\..* # Removed in 3.12
230228
pkgutil.ImpLoader\..* # Removed in 3.12
229+
platform.platform # runtime default is 0, we pretend it's a bool
231230
poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
232231
tkinter.test # Modules that exist at runtime, but shouldn't be added to typeshed
233232
tkinter\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed

stdlib/@tests/stubtest_allowlists/py39.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to
6161
xml.etree.ElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
6262
xml.etree.cElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
6363

64-
platform.platform # runtime default is 0, we pretend it's a bool
65-
6664

6765
# =======
6866
# <= 3.12
@@ -203,6 +201,7 @@ lib2to3.tests # Modules that exist at runtime, but shouldn't be added to typesh
203201
lib2to3\.tests\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
204202
pkgutil.ImpImporter\..* # Removed in 3.12
205203
pkgutil.ImpLoader\..* # Removed in 3.12
204+
platform.platform # runtime default is 0, we pretend it's a bool
206205
poplib.POP3_SSL.stls # bad declaration of inherited function. See poplib.pyi
207206
tkinter.test # Modules that exist at runtime, but shouldn't be added to typeshed
208207
tkinter\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
4444
xml.sax.expatreader.ExpatParser.flush
4545
zipfile.ZipInfo.__slots__
4646

47+
4748
# =============================================================
4849
# Allowlist entries that cannot or should not be fixed; <= 3.12
4950
# =============================================================

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
5353
xml.sax.expatreader.ExpatParser.flush
5454
zipfile.ZipInfo.__slots__
5555

56+
5657
# =============================================================
5758
# Allowlist entries that cannot or should not be fixed; <= 3.12
5859
# =============================================================

0 commit comments

Comments
 (0)