Changeset 2042

Show
Ignore:
Timestamp:
06/18/09 08:19:25 (9 months ago)
Author:
JensDiemer
Message:

Skip only if no tests available -> See other errors.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/tests/test_tools/test_runner.py

    r2013 r2042  
    6666    if verbosity: 
    6767        print "\nContruct a test suite from all available tests." 
     68    if verbosity>=2: 
     69        print "Use test names: %r\n" % TEST_NAMES 
    6870         
    6971    test_suite = unittest.TestSuite() 
    70      
    7172     
    7273    for name in TEST_NAMES: 
     
    7475            tests = unittest.defaultTestLoader.loadTestsFromName(name) 
    7576        except AttributeError, err: 
     77            if err.message != "'module' object has no attribute 'tests'": 
     78                # Skip only if no tests available 
     79                raise 
    7680            if verbosity>=2: 
    7781                print "Skip %r: %s" % (name, err)