Skip to content

Commit 43b6f89

Browse files
committed
Remove callable check
1 parent 4da6ce8 commit 43b6f89

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_async_yield_from.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,8 +1631,7 @@ def assert_parity(self, base_class, variant_class, *, suffix):
16311631
tests belong in a separate TestCase class.
16321632
"""
16331633
def test_methods(cls):
1634-
return {n for n in dir(cls)
1635-
if n.startswith("test_") and callable(getattr(cls, n))}
1634+
return {n for n in dir(cls) if n.startswith("test_")}
16361635

16371636
expected = {n + suffix for n in test_methods(base_class)}
16381637
actual = test_methods(variant_class)

0 commit comments

Comments
 (0)