Closedown

This commit is contained in:
2019-12-11 15:32:03 +01:00
parent 108fd6c976
commit 51fd3421dc

View File

@@ -511,8 +511,10 @@ class TestLoader:
tests = []
print module
print dir(module)
for name in dir(module):
obj = getattr(module, name)
#for name in dir(module):
for name in globals().keys():
#obj = getattr(module, name)
obj = globals()[name]
if (isinstance(obj, (type, types.ClassType)) and
issubclass(obj, TestCase)):
tests.append(self.loadTestsFromTestCase(obj))