[3.14] gh-157983: Skip test for ctypes.util.find_library when ld is mold (GH-157984) - #158009
Conversation
…ld (pythonGH-157984) The `mold` linker does not support the `-t` option that `ctypes.util.find_library` uses. Since `find_library` is soft-deprecated and explicitly documented as *not expected to be updated for additional platforms and configurations*, we skip the test in the known failing case. (cherry picked from commit dcaa311) Co-authored-by: Petr Viktorin <encukou@gmail.com>
| # The mold linker is known to be incompatible with | ||
| # the soft-deprecated ctypes.util.find_library | ||
| # (which uses `ld -t`). |
There was a problem hiding this comment.
| # The mold linker is known to be incompatible with | |
| # the soft-deprecated ctypes.util.find_library | |
| # (which uses `ld -t`). | |
| # The mold linker is known to be incompatible with | |
| # ctypes.util.find_library. The function is | |
| # documented as "Try to find a library..." | |
| # and formally soft-deprecated in 3.15+. We | |
| # we skip the test rather than try to fix it | |
| # (which would risk breaking other unsupported | |
| # platforms). |
|
Thank you! |
|
Thanks @miss-islington for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Sorry, @miss-islington and @hugovk, I could not cleanly backport this to |
|
GH-158064 is a backport of this pull request to the 3.13 branch. |
|
Thanks @miss-islington for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Thanks @miss-islington for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Thanks @miss-islington for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Sorry, @miss-islington and @hugovk, I could not cleanly backport this to |
|
Sorry, @miss-islington and @hugovk, I could not cleanly backport this to |
|
Sorry, @miss-islington and @hugovk, I could not cleanly backport this to |
|
No backport for 3.10 needed as there's no riscv64 Ubuntu buildbot for 3.10. |
|
GH-158065 is a backport of this pull request to the 3.12 branch. |
|
GH-158066 is a backport of this pull request to the 3.11 branch. |
The
moldlinker does not support the-toption thatctypes.util.find_libraryuses.Since
find_libraryis soft-deprecated and explicitly documented asnot expected to be updated for additional platforms and configurations,
we skip the test in the known failing case.
(cherry picked from commit dcaa311)
Co-authored-by: Petr Viktorin encukou@gmail.com
ldbeingmold#157983