Skip to content

Commit 19e56c7

Browse files
committed
Cleanup
1 parent 06f64c4 commit 19e56c7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pandas/tests/api/test_api.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,7 @@ def get_pandas_objects(
525525
if name.startswith("_") or name == "internals":
526526
continue
527527
objs.extend(
528-
get_pandas_objects(
529-
f"{module.__name__}.{name}",
530-
recurse=module_info.ispkg,
531-
)
528+
get_pandas_objects(f"{module.__name__}.{name}", recurse=module_info.ispkg)
532529
)
533530
return objs
534531

@@ -551,10 +548,7 @@ def test_attributes_module(module_name):
551548
Ensures that all public objects have their __module__ set to the public import path.
552549
"""
553550
recurse = module_name not in ["pandas", "pandas.testing"]
554-
objs = get_pandas_objects(
555-
module_name,
556-
recurse=recurse,
557-
)
551+
objs = get_pandas_objects(module_name, recurse=recurse)
558552
failures = [
559553
(module_name, name, type(obj), obj.__module__)
560554
for module_name, name, obj in objs

0 commit comments

Comments
 (0)