Skip to content

Commit c47a750

Browse files
committed
Fix CI
1 parent 1ccb40e commit c47a750

File tree

4 files changed

+50
-32
lines changed

4 files changed

+50
-32
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
_curses.assume_default_colors
66
_posixsubprocess.fork_exec
7-
_socket.CAN_RAW_ERR_FILTER
8-
_socket.IPV6_RECVERR
9-
_socket.IP_FREEBIND
10-
_socket.IP_RECVERR
11-
_socket.IP_RECVORIGDSTADDR
12-
_socket.SO_ORIGINAL_DST
13-
_socket.VMADDR_CID_LOCAL
147
asyncio.tools
158
asyncio.unix_events.__all__
169
asyncio.unix_events.DefaultEventLoopPolicy
@@ -27,10 +20,3 @@ posix.SCHED_DEADLINE
2720
posix.SCHED_NORMAL
2821
posix.readinto
2922
select.EPOLLWAKEUP
30-
socket.CAN_RAW_ERR_FILTER
31-
socket.IPV6_RECVERR
32-
socket.IP_FREEBIND
33-
socket.IP_RECVERR
34-
socket.IP_RECVORIGDSTADDR
35-
socket.SO_ORIGINAL_DST
36-
socket.VMADDR_CID_LOCAL

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22
# TODO: New errors in Python 3.14 that need to be fixed or moved below
33
# ====================================================================
44

5-
_socket.IPV6_RECVERR
6-
_socket.IP_RECVERR
7-
_socket.SOL_RFCOMM
8-
_socket.SO_ORIGINAL_DST
9-
_socket.SO_BTH_ENCRYPT
10-
_socket.SO_BTH_MTU
11-
_socket.SO_BTH_MTU_MAX
12-
_socket.SO_BTH_MTU_MIN
13-
_socket.TCP_QUICKACK
145
_winapi.COPY_FILE_DIRECTORY
156
asyncio.WindowsProactorEventLoopPolicy.get_child_watcher
167
asyncio.WindowsProactorEventLoopPolicy.set_child_watcher
@@ -31,15 +22,6 @@ encodings.win32_code_page_search_function
3122
nt.readinto
3223
pathlib.Path.group
3324
pathlib.Path.owner
34-
socket.IPV6_RECVERR
35-
socket.IP_RECVERR
36-
socket.SOL_RFCOMM
37-
socket.SO_ORIGINAL_DST
38-
socket.SO_BTH_ENCRYPT
39-
socket.SO_BTH_MTU
40-
socket.SO_BTH_MTU_MAX
41-
socket.SO_BTH_MTU_MIN
42-
socket.TCP_QUICKACK
4325
winsound.MB_ICONERROR
4426
winsound.MB_ICONINFORMATION
4527
winsound.MB_ICONSTOP

stdlib/_socket.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,26 @@ if sys.platform != "win32":
231231
IP_RETOPTS: int
232232
if sys.version_info >= (3, 14):
233233
IP_RECVTTL: int
234+
235+
if sys.platform == "win32" or sys.platform == "linux":
236+
IPV6_RECVERR: int
237+
IP_RECVERR: int
238+
SO_ORIGINAL_DST: int
239+
240+
if sys.platform == "win32":
241+
SOL_RFCOMM: int
242+
SO_BTH_ENCRYPT: int
243+
SO_BTH_MTU: int
244+
SO_BTH_MTU_MAX: int
245+
SO_BTH_MTU_MIN: int
246+
TCP_QUICKACK: int
247+
248+
if sys.platform == "linux":
249+
CAN_RAW_ERR_FILTER: int
250+
IP_FREEBIND: int
251+
IP_RECVORIGDSTADDR: int
252+
VMADDR_CID_LOCAL: int
253+
234254
if sys.platform != "win32" and sys.platform != "darwin":
235255
IP_TRANSPARENT: int
236256
if sys.platform != "win32" and sys.platform != "darwin" and sys.version_info >= (3, 11):

stdlib/socket.pyi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,36 @@ if sys.version_info >= (3, 14):
10281028

10291029
__all__ += ["IP_RECVTTL"]
10301030

1031+
if sys.platform == "win32" or sys.platform == "linux":
1032+
from _socket import (
1033+
IPV6_RECVERR as IPV6_RECVERR,
1034+
IP_RECVERR as IP_RECVERR,
1035+
SO_ORIGINAL_DST as SO_ORIGINAL_DST,
1036+
)
1037+
__all__ += ['IP_RECVERR', 'IPV6_RECVERR', 'SO_ORIGINAL_DST']
1038+
1039+
if sys.platform == "win32":
1040+
from _socket import (
1041+
SOL_RFCOMM as SOL_RFCOMM,
1042+
SO_BTH_ENCRYPT as SO_BTH_ENCRYPT,
1043+
SO_BTH_MTU as SO_BTH_MTU,
1044+
SO_BTH_MTU_MAX as SO_BTH_MTU_MAX,
1045+
SO_BTH_MTU_MIN as SO_BTH_MTU_MIN,
1046+
TCP_QUICKACK as TCP_QUICKACK,
1047+
)
1048+
1049+
__all__ += ['SOL_RFCOMM', 'SO_BTH_ENCRYPT', 'SO_BTH_MTU', 'SO_BTH_MTU_MAX', 'SO_BTH_MTU_MIN', 'TCP_QUICKACK']
1050+
1051+
if sys.platform == "linux":
1052+
from _socket import (
1053+
CAN_RAW_ERR_FILTER as CAN_RAW_ERR_FILTER,
1054+
IP_FREEBIND as IP_FREEBIND,
1055+
IP_RECVORIGDSTADDR as IP_RECVORIGDSTADDR,
1056+
SO_ORIGINAL_DST as SO_ORIGINAL_DST,
1057+
VMADDR_CID_LOCAL as VMADDR_CID_LOCAL,
1058+
)
1059+
__all__ += ['CAN_RAW_ERR_FILTER', 'IP_FREEBIND', 'IP_RECVORIGDSTADDR', 'VMADDR_CID_LOCAL']
1060+
10311061
# Re-exported from errno
10321062
EBADF: int
10331063
EAGAIN: int

0 commit comments

Comments
 (0)