Minor cleanup

This commit is contained in:
Christian Heimes 2007-11-26 10:14:51 +00:00
parent 4a22b5dee7
commit 4975a1f3f3

View file

@ -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