Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNU/Hurd returns empty string from getsockname() for AF_UNIX sockets #18630

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

ellert
Copy link
Contributor

@ellert ellert commented Feb 7, 2025

Build the socket name from directory name and name instead.

This fixes existing failing tests on Debian GNU/Hurd:

  • mypy/test/testdaemon.py::DaemonSuite::*
  • mypy/test/testipc.py::IPCTests::*

Build the socket name from directory name and name instead.
Copy link
Contributor

github-actions bot commented Feb 7, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have much context on GNU/Hurd, but this seems safe since the new code path won't be used on other platforms.

@JukkaL JukkaL merged commit a5abc77 into python:master Feb 11, 2025
16 of 18 checks passed
@ellert ellert deleted the gnu-hurd-ipc branch February 11, 2025 16:27
ericmarkmartin pushed a commit to ericmarkmartin/mypy that referenced this pull request Feb 19, 2025
…ython#18630)

Build the socket name from directory name and name instead.

This fixes existing failing tests on Debian GNU/Hurd:
* mypy/test/testdaemon.py::DaemonSuite::*
* mypy/test/testipc.py::IPCTests::*
ericmarkmartin pushed a commit to ericmarkmartin/mypy that referenced this pull request Feb 19, 2025
…ython#18630)

Build the socket name from directory name and name instead.

This fixes existing failing tests on Debian GNU/Hurd:
* mypy/test/testdaemon.py::DaemonSuite::*
* mypy/test/testipc.py::IPCTests::*
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
…ython#18630)

Build the socket name from directory name and name instead.

This fixes existing failing tests on Debian GNU/Hurd:
* mypy/test/testdaemon.py::DaemonSuite::*
* mypy/test/testipc.py::IPCTests::*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants