Skip to content

Commit 6163ffc

Browse files
Exclude non-methods from StringMethods coverage check
1 parent f7216c7 commit 6163ffc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/strings/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
)
9797
)
9898
ids, _, _ = zip(*_any_string_method) # use method name as fixture-id
99-
missing_methods = {f for f in dir(StringMethods) if not f.startswith("_")} - set(ids)
99+
NON_METHODS = {'TYPE_CHECKING', 'Iterable'}
100+
missing_methods = {f for f in dir(StringMethods) if not f.startswith("_")} - set(ids) - NON_METHODS
100101

101102
# test that the above list captures all methods of StringMethods
102103
assert not missing_methods

0 commit comments

Comments
 (0)