Fix stdlib stubtest for latest Python patch releases (#13812)

This commit is contained in:
Brian Schubert
2025-04-10 17:19:45 -04:00
committed by GitHub
parent 87f599dc83
commit c7b8fe9f06
11 changed files with 33 additions and 18 deletions
+1 -1
View File
@@ -514,7 +514,7 @@ if sys.platform != "win32":
"IPV6_RTHDRDSTOPTS",
]
if sys.platform != "darwin":
if sys.platform != "darwin" or sys.version_info >= (3, 13):
from _socket import SO_BINDTODEVICE as SO_BINDTODEVICE
__all__ += ["SO_BINDTODEVICE"]