a
    ¦ˆc$  ã                   @   sl   d Z ddlZz0ddlmZmZ ddlmZ dd„ Zdd„ ZW n" e	y^   d	d„ Zd
d„ ZY n0 dd„ Z
dS )z– Non-standard functions for the 'nose' testing framework

This module is deprecated, and will be removed in a future release.

.. deprecated:: 6.1.0

é    N)ÚDeprecatedTestÚSkipTest)Úmake_decoratorc                 C   s$   t jdtdd� dd„ }t| ƒ|ƒS )zY Decorator to indicate a test should be skipped.

        .. deprecated:: 6.1.0

        úDThe traits.testing.nose_tools module and its contents are deprecatedé   ©Ú
stacklevelc                  _   s
   t ƒ ‚d S ©N)r   ©ÚargsÚkw© r   ú\/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traits/testing/nose_tools.pyÚg&   s    zskip.<locals>.g©ÚwarningsÚwarnÚDeprecationWarningr   ©Úfr   r   r   r   Úskip   s    ür   c                 C   s$   t jdtdd� dd„ }t| ƒ|ƒS )zU Decorator to indicate a test is deprecated.

        .. deprecated:: 6.1.0

        r   r   r   c                  _   s
   t ƒ ‚d S r	   )r   r
   r   r   r   r   8   s    zdeprecated.<locals>.gr   r   r   r   r   Ú
deprecated+   s    ür   c                 C   s   t jdtdd� t  d¡ | S )z� Stub replacement for marking a unit test to be skipped in the
        absence of 'nose'.

        .. deprecated:: 6.1.0
        r   r   r   z/skipping unit tests requires the package 'nose'©r   r   r   ©r   r   r   r   r   A   s    ü
c                 C   s   t jdtdd� t  d¡ | S )z~ Stub replacement for marking a unit test deprecated in the absence
        of 'nose'.

        .. deprecated:: 6.1.0
        r   r   r   z:skipping deprecated unit tests requires the package 'nose'r   r   r   r   r   r   Q   s    üÿc                 C   s   t jdtdd� d| _| S )z{ Decorator to add an attribute to the test to mark it as
    a performance-measuring test.

    .. deprecated:: 6.1.0

    r   r   r   T)r   r   r   Úperformancer   r   r   r   r   d   s    ür   )Ú__doc__r   Znoser   r   Z
nose.toolsr   r   r   ÚImportErrorr   r   r   r   r   Ú<module>   s   