3
8ßL]õ  ã               @   sn   d Z y0ddlmZmZ ddlmZ dd„ Zdd„ ZW n, ek
r`   ddl	Z	d	d„ Zd
d„ ZY nX dd„ Z
dS )z8Non-standard functions for the 'nose' testing framework.é    )ÚDeprecatedTestÚSkipTest)Úmake_decoratorc             C   s   dd„ }t | ƒ|ƒS )z9 Decorator to indicate a test should be skipped.
        c              _   s
   t ƒ ‚d S )N)r   )ÚargsÚkw© r   ú=/tmp/pip-install-5sebvq2j/traits/traits/testing/nose_tools.pyÚg   s    zskip.<locals>.g)r   )Úfr	   r   r   r   Úskip   s    r   c             C   s   dd„ }t | ƒ|ƒS )z5 Decorator to indicate a test is deprecated.
        c              _   s
   t ƒ ‚d S )N)r   )r   r   r   r   r   r	      s    zdeprecated.<locals>.g)r   )r
   r	   r   r   r   Ú
deprecated   s    r   Nc             C   s   t jdƒ | S )zb Stub replacement for marking a unit test to be skipped in the
        absence of 'nose'.
        z/skipping unit tests requires the package 'nose')ÚwarningsÚwarn)r
   r   r   r   r      s    
c             C   s   t jdƒ | S )z_ Stub replacement for marking a unit test deprecated in the absence
        of 'nose'.
        z:skipping deprecated unit tests requires the package 'nose')r   r   )r
   r   r   r   r   '   s    c             C   s
   d| _ | S )z_ Decorator to add an attribute to the test to mark it as
    a performance-measuring test.
    T)Úperformance)r
   r   r   r   r   2   s    r   )Ú__doc__Znoser   r   Z
nose.toolsr   r   r   ÚImportErrorr   r   r   r   r   r   Ú<module>   s   	
