commit: 8d859c6003c18d863cad63a36e855fbe52594ed3
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sun Dec 7 12:21:06 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sun Dec 7 12:21:06 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=8d859c60
fix(tests): adjust test so it doesn't false negative on pypi
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
tests/test_python_namespaces.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/test_python_namespaces.py b/tests/test_python_namespaces.py
index 9ab1a03..cddc0a6 100644
--- a/tests/test_python_namespaces.py
+++ b/tests/test_python_namespaces.py
@@ -121,7 +121,11 @@ 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")]
+ cpy = [
+ x
+ for x in machinery.all_suffixes()
+ if x.startswith(".cpython") or x.startswith(".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()}"
)