a
    ñ»j;  ã                   @   s¤   d Z ddlZddlZddgZdZddd„Zddd„Ze d¡Zd	d
„ Z	G dd„ dej
ƒZedƒZdd„ eeƒD ƒD ]&Ze	eƒZeeeƒeƒ e< e e¡ qr[[[	dS )zùTools so trivial that tracebacks should not descend into them.
We define the ``__unittest`` symbol in their module namespace so unittest will
skip them when printing tracebacks, just as it does for their corresponding
methods in ``unittest`` proper.é    NÚok_Úeq_é   c                 C   s   | st |ƒ‚dS )z/Shorthand for assert. Saves 3 whole characters!N©ÚAssertionError)ÚexprÚmsg© r	   ú8E:\soccer\ml_env\Lib\site-packages\nose/tools/trivial.pyr      s    c                 C   s    | |kst |pd| |f ƒ‚dS )z1Shorthand for 'assert a == b, "%r != %r" % (a, b)z%r != %rNr   )ÚaÚbr   r	   r	   r
   r      s    z([A-Z])c                 C   s   t  dd„ | ¡S )Nc                 S   s   d|   ¡ d  ¡  S )NÚ_r   )ÚgroupsÚlower)Úmr	   r	   r
   Ú<lambda>   ó    zpep8.<locals>.<lambda>)ÚcapsÚsub)Únamer	   r	   r
   Úpep8   s    r   c                   @   s   e Zd Zdd„ ZdS )ÚDummyc                   C   s   d S )Nr	   r	   r	   r	   r
   Únop#   s    z	Dummy.nopN)Ú__name__Ú
__module__Ú__qualname__r   r	   r	   r	   r
   r   "   s   r   r   c                 C   s"   g | ]}|  d ¡rd|vr|‘qS )Úassertr   )Ú
startswith)Ú.0Úatr	   r	   r
   Ú
<listcomp>)   s   r    )N)N)Ú__doc__ÚreZunittestÚ__all__Z
__unittestr   r   Úcompiler   r   ZTestCaser   Z_tÚdirr   ZpepdÚgetattrÚvarsÚappendr	   r	   r	   r
   Ú<module>   s&   


ÿ
