This is an automated email from the ASF dual-hosted git repository.

timsaucer pushed a commit to branch feat/ffi-with-extensions
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git

commit 665f8fe6fc4f0cbf23e731b01ac23d785aa694cc
Author: Tim Saucer <[email protected]>
AuthorDate: Fri Aug 7 14:20:13 2026 -0400

    Skip private internal methods in wrapper coverage test
    
    Single-underscore methods on internal pyo3 classes (such as
    SessionContext._install_extensions) are private support methods for the
    Python wrappers and do not require a public wrapper.
    
    Co-Authored-By: Claude Fable 5 <[email protected]>
---
 python/tests/test_wrapper_coverage.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/python/tests/test_wrapper_coverage.py 
b/python/tests/test_wrapper_coverage.py
index cf6719ec..b1afd683 100644
--- a/python/tests/test_wrapper_coverage.py
+++ b/python/tests/test_wrapper_coverage.py
@@ -67,6 +67,14 @@ def missing_exports(internal_obj, wrapped_obj) -> None:
         pytest.fail(f"Missing __repr__: {internal_obj.__name__}")
 
     for internal_attr_name in dir(internal_obj):
+        # Single-underscore names are private support methods for the
+        # wrappers (e.g. SessionContext._install_extensions) and are not
+        # part of the public surface that requires a wrapper.
+        if internal_attr_name.startswith("_") and not 
internal_attr_name.startswith(
+            "__"
+        ):
+            continue
+
         wrapped_attr_name = internal_attr_name.removeprefix("Raw")
 
         assert wrapped_attr_name in dir(wrapped_obj)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to