mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Minor cleanup
This commit is contained in:
parent
4a22b5dee7
commit
4975a1f3f3
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ class TestLoader:
|
|||
name = obj.__name__
|
||||
inst = parent(name)
|
||||
# static methods follow a different path
|
||||
if not(isinstance(getattr(inst, name), types.FunctionType)):
|
||||
if not isinstance(getattr(inst, name), types.FunctionType):
|
||||
return TestSuite([inst])
|
||||
elif isinstance(obj, TestSuite):
|
||||
return obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue