-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Some tests in test_smtplib and test_logging failed when Python is configured with --disable-ipv6
#121275
Comments
Would you mind to elaborate? |
I didn't dig too much, but
Maybe it's caused by google/sanitizers#1592 |
Do you want to work on a PR to skip some tests if IPv6 is disabled? |
Working on it. |
Hi @vstinner, I found that the following tests will fail when using
The first two can be solved by #121276. For the last two, I think it's not just a bug in the tests, but it could also cause problems in user's code. |
Sorry, I missed an import information for the last sentence: For the last two, I think it's not just a bug in the tests, but it could also cause problems in user's code, and I created #121913 for the detail and future discussion. |
…d IPv6 support (#121276) Fix test_logging and test_smtplib with Python build withoud IPv6 support
Bug report
Bug description:
There is a error sample:
This is caused by
SMTPServer
is usingsocket.getaddrinfo
to get the socket family, which also include IPv6 result even if IPv6 support is disabled, and it's value will be used tosocket.bind
:cpython/Lib/test/support/smtpd.py
Lines 636 to 638 in 6343486
--disable-ipv6
must be specified when--with-thread-sanitizer
is specified on my machine (Arch with Clang17), so I think it's better to fix it although--disable-ipv6
is not widely used.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: