관리-도구
편집 파일: nontrivial.cpython-37.pyc
B 1�SeJ � @ sn d Z ddlZddddddd d gZG dd� de�Zdd� Zd d� Zdd� Zdd� Zddd�Z dd � Z dd � ZdS )z8Tools not exempt from being descended into in tracebacks� N�make_decorator�raises� set_trace�timed� with_setup�TimeExpired�istest�nottestc @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �F/opt/alt/python37/lib/python3.7/site-packages/nose/tools/nontrivial.pyr s c s � fdd�}|S )z� Wraps a test decorator so as to properly replicate metadata of the decorated function, including nose's additional stuff (namely, setup and teardown). c sn t � d�r� j}n� j}� j| _� j| _� j| _t | d�sD� jj| _y || _W n t k rh || _Y nX | S )N�compat_func_name�compat_co_firstlineno) �hasattrr r �__dict__�__doc__r �__code__�co_firstlinenor � TypeError)�newfunc�name)�funcr r �decorate s z make_decorator.<locals>.decorater )r r r )r r r s c s&