def METHOD_NAME(self):
    s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
    with pytest.raises(OSError) as exc_info:
        s.bind(("::1", 42))
    assert exc_info.value.errno == errno.EACCES