Changeset 98

Show
Ignore:
Timestamp:
Wed Sep 6 11:58:43 2006
Author:
jpellerin
Message:

Fixed #86: warn on failed plugin loads instead of trying to log, since logger is not yet configured.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/nose/plugins/__init__.py

    r62 r98  
    109 109 import logging  
    110 110 import pkg_resources  
      111 from warnings import warn  
    111 112 from nose.plugins.base import *  
    112 113  
     
    138 139         except Exception, e:  
    139 140             # never want a plugin load to kill the test run  
    140               log.error("Unable to load plugin %s: %s", ep, e)  
      141             # but we can't log here because the logger is not yet  
      142             # configured  
      143             warn("Unable to load plugin %s: %s" % (ep, e))  
    141 144             continue  
    142 145         if plug.__module__.startswith('nose.plugins'):