Skip to content

Conversation

@Cyperwu
Copy link
Contributor

@Cyperwu Cyperwu commented Sep 2, 2025

In some weird case like a misconfigured VPN application, localhost would be resolved as "localhost.somedomain", which leading to an OSError: [Errno 49] Can't assign requested address.

I think we should replace "localhost" with a more explicit "127.0.0.1".

@Cyperwu Cyperwu changed the title changed 'localhost' to '127.0.0.1' Change 'localhost' to '127.0.0.1' Sep 2, 2025
@icemac
Copy link
Contributor

icemac commented Sep 2, 2025

I like the changes, could you please also add an entry in the change log to make the PR perfect?

@Cyperwu
Copy link
Contributor Author

Cyperwu commented Sep 2, 2025

Sure.

@icemac icemac enabled auto-merge (squash) September 3, 2025 07:05
@icemac icemac merged commit df47974 into pytest-dev:master Sep 3, 2025
48 checks passed
@Cyperwu Cyperwu deleted the patch-1 branch September 3, 2025 07:24
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