-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed as not planned
Closed as not planned
Copy link
Labels
OS-macextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
def test_regular_socket() -> None:
stdlib_sock = stdlib_socket.socket()
with stdlib_sock as _:
stdlib_sock.setsockopt(
stdlib_socket.SOL_SOCKET,
stdlib_socket.SO_BINDTODEVICE,
None,
0,
)
This fails on 3.13.1 at least on MacOS GitHub Actions runners, and succeeds on 3.13.0. I don't have a MacOS machine to bisect with.
Looking at this more after the fact, SO_BINDTODEVICE
is Linux-specific so it's not surprising that it fails. The only surprise is that this used to work and now does not. I couldn't find anything in the detailed changelog about this but I wasn't sure the right keywords to use.
Here's the error:
_____________________________ test_regular_socket ______________________________
def test_regular_socket() -> None:
stdlib_sock = stdlib_socket.socket()
with stdlib_sock as _:
> stdlib_sock.setsockopt(
stdlib_socket.SOL_SOCKET,
stdlib_socket.SO_BINDTODEVICE,
None,
0,
)
E OSError: [Errno 42] Protocol not available
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Metadata
Metadata
Assignees
Labels
OS-macextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error