관리-도구
편집 파일: nontrivial.cpython-38.pyc
U )�eJ � @ 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 �C/opt/hc_python/lib/python3.8/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| _z || _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&