bpo-33465: Use an unlikely to be built-in C extension in a test#6797
bpo-33465: Use an unlikely to be built-in C extension in a test#6797warsaw merged 5 commits intopython:masterfrom
Conversation
|
|
||
| def test_from_import_missing_attr_has_name_and_so_path(self): | ||
| import select | ||
| import _hashlib |
There was a problem hiding this comment.
It's pretty easy for _hashlib to just not exist, for instance if OpenSSL is not available. How about _testcapi?
There was a problem hiding this comment.
Okay, after talking with @doko42 we think _testcapi is a good choice. We need to find one that will always be built and is not a built-in (on Debian).
There was a problem hiding this comment.
Same in Fedora; _testcapi sounds like a good choice.
(It's always built, as a shared library. Then it's packaged in python3-tests so it's not necessarily installed on all systems.)
zware
left a comment
There was a problem hiding this comment.
I wonder if this test should be guarded by @cpython_only? Otherwise, LGTM.
|
@zware Good point. Done. And thanks for the approval; I'll merge this once CI passes. |
|
@warsaw: Please replace |
|
Thanks @warsaw for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
…onGH-6797) (cherry picked from commit 8709b23) Co-authored-by: Barry Warsaw <barry@python.org>
|
GH-6869 is a backport of this pull request to the 3.7 branch. |
https://bugs.python.org/issue33465