Changeset 11

Show
Ignore:
Timestamp:
Wed Mar 22 20:31:48 2006
Author:
jpellerin
Message:

0.8.7.2 release changes from bzr: Fix greedy test module loading

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/0.8.7.2/nose/core.py

    r1 r11  
    521 521         if Config.wantTestsFromFile(self.module.__file__):  
    522 522             msg("Looking for tests in %s" % self.module.__file__, 5)  
    523               # find tests defined in the module proper -- if it's a test module  
    524               if Config.testMatch.search(self.module_name):  
      523             # find tests defined in the module proper -- if it's a test  
      524             # module  
      525             tail = self.module_name.split('.')[-1]  
      526             if Config.testMatch.search(tail):  
    525 527                 for test in self.findTestsInModule(self.module):  
    526 528                     yield test  
  • branches/0.8.7.2/nose/__init__.py

    r1 r11  
    315 315  
    316 316 __author__ = 'Jason Pellerin'  
    317   __version__ = '0.8.7.1'  
      317 __version__ = '0.8.7.2'  
    317 317 __all__ = [ 'core', 'exception', 'TestCase', 'TestCollector',  
    318 318             'TestLoader', 'collector', 'main', 'run_exit', 'with_setup' ]  
  • branches/0.8.7.2/CHANGELOG

    r1 r11  
      1 0.8.7.2  
      2  
      3 - Fix bug in test loading. Module test loading was too greedy and would  
      4   load from foo.test.bar, which is not a test module.  
      5  
    1 6 0.8.7.1  
    2 7