Changeset 4418 for anuga_core/source/anuga/test_all.py
- Timestamp:
- Apr 24, 2007, 10:16:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/test_all.py
r4415 r4418 93 93 load = unittest.defaultTestLoader.loadTestsFromModule 94 94 testCaseClasses = map(load, modules) 95 96 95 97 if test_verbose is True: 96 98 # Test the code by setting verbose to True. … … 99 101 for test_suite in testCaseClasses: 100 102 for tests in test_suite._tests: 101 #tests is of class TestSuite 102 print "tests weak", tests.__weakref__ 103 if len(tests._tests) >1: 103 # tests is of class TestSuite 104 if len(tests._tests) > 1: 104 105 # these are the test functions 105 106 try: 106 # Calls set_verbose in the test case classes 107 # Calls class method set_verbose in the test case classes 108 # print 'Tests', tests._tests[0] 109 # print 'Type', type(tests._tests[0]) 107 110 tests._tests[0].set_verbose() 108 111 except:
Note: See TracChangeset
for help on using the changeset viewer.