Changeset 138

Show
Ignore:
Timestamp:
Tue Dec 5 16:40:54 2006
Author:
jpellerin
Message:

Fixed #111; fixed bug in tests for #105 when verbosity is high.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/unit_tests/test_bug105.py

    r137 r138  
    15 15         print testmod  
    16 16         testmod.setUp()  
    17           tests = [ str(t) for t in testmod ]  
      17  
      18         def fix(t):  
      19             s = str(t)  
      20             if ': ' in s:  
      21                 return s[s.index(': ')+2:]  
      22             return s  
      23          
      24         tests = map(fix, testmod)  
    18 25         print tests  
    19 26         self.assertEqual(tests, ['tests.test_z', 'tests.test_a',  
  • trunk/nose/core.py

    r136 r138  
    443 443     lvl = logging.WARNING  
    444 444     if options.verbosity >= 5:  
    445           lvl = 0  
      445         lvl = 1  
    445 445     elif options.verbosity >= 4:  
    446 446         lvl = logging.DEBUG