Closedown
This commit is contained in:
+4
-2
@@ -511,8 +511,10 @@ class TestLoader:
|
|||||||
tests = []
|
tests = []
|
||||||
print module
|
print module
|
||||||
print dir(module)
|
print dir(module)
|
||||||
for name in dir(module):
|
#for name in dir(module):
|
||||||
obj = getattr(module, name)
|
for name in globals().keys():
|
||||||
|
#obj = getattr(module, name)
|
||||||
|
obj = globals()[name]
|
||||||
if (isinstance(obj, (type, types.ClassType)) and
|
if (isinstance(obj, (type, types.ClassType)) and
|
||||||
issubclass(obj, TestCase)):
|
issubclass(obj, TestCase)):
|
||||||
tests.append(self.loadTestsFromTestCase(obj))
|
tests.append(self.loadTestsFromTestCase(obj))
|
||||||
|
|||||||
Reference in New Issue
Block a user