Changeset 129

Show
Ignore:
Timestamp:
Wed Nov 22 11:09:50 2006
Author:
jpellerin
Message:

Small change to make_decorator

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/nose/tools.py

    r128 r129  
    60 60         name = func.__name__  
    61 61         try:  
      62             newfunc.__dict__ = func.__dict__  
    62 63             newfunc.__doc__ = func.__doc__  
    63 64             newfunc.__module__ = func.__module__  
    64               newfunc.__dict__ = func.__dict__  
    65 65             if not hasattr(newfunc, 'compat_co_firstlineno'):  
    66 66                 newfunc.compat_co_firstlineno = func.func_code.co_firstlineno