Ignore:
Timestamp:
Apr 24, 2007, 10:16:25 AM (18 years ago)
Author:
ole
Message:

Ran Duncan's verbose tests, verified problem with mint and maxt, and fixed it.
Also a bit of cosmetics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/test_all.py

    r4415 r4418  
    9393    load = unittest.defaultTestLoader.loadTestsFromModule
    9494    testCaseClasses = map(load, modules)
     95
     96   
    9597    if test_verbose is True:
    9698        # Test the code by setting verbose to True.
     
    99101        for test_suite in testCaseClasses:
    100102            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:
    104105                    # these are the test functions
    105106                    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])                       
    107110                        tests._tests[0].set_verbose()
    108111                    except:
Note: See TracChangeset for help on using the changeset viewer.