commit: e925db1ad8b8ae9166bba4ad8a66f927a22a47f9
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sun Dec 7 12:16:29 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sun Dec 7 12:16:29 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=e925db1a
chore: enhance tests for debugging failures
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
tests/test_python_namespaces.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/test_python_namespaces.py b/tests/test_python_namespaces.py
index ca43f72..9ab1a03 100644
--- a/tests/test_python_namespaces.py
+++ b/tests/test_python_namespaces.py
@@ -122,7 +122,9 @@ class test_python_namespaces:
def test_remove_py_extension():
# no need to mock, python standards intersect.
cpy = [x for x in machinery.all_suffixes() if x.startswith(".cpython")]
- assert cpy, "couldn't find an extension of .cpython per PEP3147. Is this
pypy?"
+ assert cpy, (
+ f"couldn't find an extension of .cpython per PEP3147. Is this pypy?
Known extensions to this python install: {machinery.all_suffixes()}"
+ )
cpy = cpy[0]
suffix = f".{cpy.rsplit('.')[-1]}"
assert suffix in machinery.all_suffixes() # confirm .so or .dylib is in
there