File tree Expand file tree Collapse file tree 2 files changed +44
-402
lines changed Expand file tree Collapse file tree 2 files changed +44
-402
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,10 @@ def test_aligned_public_apis(self):
43
43
cxx_signature = inspect .signature (cxx_api )
44
44
py_signature = inspect .signature (py_api )
45
45
46
- # The C++ pytree APIs provide more features than the Python APIs.
47
- # The Python APIs are a subset of the C++ APIs.
48
- # Check the signature of the Python API is a subset of the C++ API.
46
+ # Check the parameter names are the same.
49
47
cxx_param_names = list (cxx_signature .parameters )
50
48
py_param_names = list (py_signature .parameters )
51
- self .assertTrue (
52
- set (cxx_param_names ).issuperset (py_param_names ),
53
- msg = (
54
- f"C++ parameter(s) ({ cxx_param_names } ) "
55
- f"not in Python parameter(s) ({ py_param_names } )"
56
- ),
57
- )
49
+ self .assertEqual (cxx_param_names , py_param_names )
58
50
59
51
# Check the positional parameters are the same.
60
52
cxx_positional_param_names = [
You can’t perform that action at this time.
0 commit comments