Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/_pytest/assertion/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/_pytest/assertion/__pycache__/rewrite.cpython-37.pyc

B

C$�X8��,@s�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlmZddl
Z
ddlmZeed�r�e��dZnDee
d�r�dZne
jd	kr�d
ZndZe
jZdeeded
fZ[[ddr�dp�dZdeeZe
jdd�dk�oe
jdkZe
jddkZe
jdk�r4ejZndd�ZGdd�de�Zdd�Zd� d�Z!d � d�Z"e�#d!�Z$d"Z%d#d$�Z&d%d&�Z'd'd�fd(d)�Z(dYd*d+�Z)d,d-�Z*dd.l+m,Z-d/d0�Z.d1d2�Z/d3d4�Z0d5d6�Z1ej2d7ej3d8ej4d9ej5d:iZ6ej7d;ej8d<ej9d=ej:d>ej;d?ej<d@ej=dAej>dBej?dCej@dDejAdEejBdFejCdGejDdHejEdIejFdJejGdKejHdLejIdMejJdNejKdOejLdPiZMydQeMejN<WneOk
�r�YnXeedR��r�ejPZQndSdT�ZQdUdV�ZRGdWdX�dXejS�ZTdS)Zz4Rewrite assertion AST to produce nice error messages�N)�fnmatch)�util�get_tagz-PYTESTZpypy_version_infoZpypy�javaZjythonZcpythonz%s-%s%s-PYTEST�z.pyT�c�o�.�)r
�)�r
r)r�cCst�|||dd�S)N)�ast�Call)�a�br�r�J/opt/alt/python37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py�<lambda>+�rc@sfeZdZdZdd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zedd��Z
dd�ZdS)�AssertionRewritingHookz*PEP302 Import hook which rewrites asserts.cCs:||_|�d�|_d|_i|_t�|_|��t�|_dS)NZpython_files)	�configZgetini�fnpats�session�modules�set�_rewritten_names�_register_with_pkg_resources�
_must_rewrite)�selfrrrr�__init__1szAssertionRewritingHook.__init__cCs
||_dS)N)r)rrrrr�set_session:sz"AssertionRewritingHook.set_sessionNcCs�|jj}|�d|�|�dd�}|d}d}|dk	rRt|�}t|�dkrR|d}|dk�ryt�||�\}}}	Wntk
r�dSX|dk	r�|�	�|	d}
|
tj
kr�ttd�r�yt�|�}Wq�t
k
r�|dd�}Yq�Xn|dd�}n|
tjk�r"dSntj�||�d�dd�}tj�|�}|�|||��sBdS|j�|�tj}tj�|jd	�}
|�r�yt�|
�Wnxtk
�r�t��dj}|tjk�r�nF|tj tj!gk�r�d
}n.|tj"tj#tj$gk�r�|�d|j�d
}n�YnX|j%dd�t&}tj�|
|�}t'|||j�}|dk�rp|�d
|f�t(|j|�\}}|dk�rZdS|�r�t)||||�n|�d|f�||f|j*|<|S)Nzfind_module called for: %sr	r���rr
�source_from_cachez.py�__pycache__Fzread only directory: %r���zrewriting %rz!found cached rewritten pyc for %r)+r�_assertstate�trace�rsplit�list�len�imp�find_module�ImportError�close�PY_COMPILED�hasattrr#�
ValueError�	PY_SOURCE�os�path�join�
rpartition�py�local�_should_rewriter�add�sys�dont_write_bytecode�dirname�mkdir�OSError�exc_info�errno�EEXIST�ENOENT�ENOTDIR�EACCESZEROFS�EPERM�basename�PYC_TAIL�	_read_pyc�
_rewrite_test�_make_rewritten_pycr)r�namer4�state�namesZlastnameZpth�fd�fn�desc�tp�	fn_pypath�writeZ	cache_dir�eZ
cache_name�pyc�co�source_statrrrr,=sv





z"AssertionRewritingHook.find_modulecCs�t|�}|jdkr&|�d|f�dS|jdk	rP|j�|�rP|�d|f�dSx.|jD]$}t|j|�rX|�d|f�dSqXWx.|jD]$}|�|�r�|�d||f�dSq�WdS)Nzconftest.pyzrewriting conftest file: %rTz0matched test file (was specified on cmdline): %rzmatched test file %rz matched marked file %r (from %r)F)	�strrGr'rZ
isinitpathrrr�
startswith)rrLrSrMrP�patZmarkedrrrr9�s$



z&AssertionRewritingHook._should_rewritecGsJt|��ttj��}|r:x |D]}||jkr|�|�qW|j�|�dS)z�Mark import names as needing to be re-written.

        The named module or package as well as any nested modules will
        be re-written on import.
        N)r�intersectionr;rr�_warn_already_importedr�update)rrNZalready_importedrLrrr�mark_rewrite�s

z#AssertionRewritingHook.mark_rewritecCs|j�dd|�dS)NZP1z4Module already imported so can not be re-written: %s)r�warn)rrLrrrr]�sz-AssertionRewritingHook._warn_already_importedcCs�|tjkrtj|S|j�|�\}}t�|�}tj|<y(|j|_||_||_t	j
�||j�Wn |tjkrztj|=�YnXtj|S)N)
r;r�popr+�
new_module�co_filename�__file__�
__cached__�
__loader__r7�builtin�exec_�__dict__)rrLrWrV�modrrr�load_module�s


z"AssertionRewritingHook.load_modulecCsLyt�|�\}}}Wntk
r(dSX|dk	r:|��|d}|tjkS)NFr
)r+r,r-r.�
PKG_DIRECTORY)rrLrOrPrQrRrrr�
is_package�sz!AssertionRewritingHook.is_packagecCs:yddl}|jWntk
r&dSX|�||j�dS)z�
        Ensure package resources can be loaded from this loader. May be called
        multiple times, as the operation is idempotent.
        rN)�
pkg_resources�__name__r-�register_loader_type�DefaultProvider)�clsrnrrrr�s
z3AssertionRewritingHook._register_with_pkg_resourcesc	Cst|d��
}|��SQRXdS)z&Optional PEP302 get_data API.
        �rbN)�open�read)r�pathname�frrr�get_data�szAssertionRewritingHook.get_data)N)ro�
__module__�__qualname__�__doc__r r!r,r9r_r]rkrm�classmethodrrxrrrrr.s	
Y

rcCs�yt|d�}Wn4tk
rBt��dj}|�d||f�dSXzF|�t���t	|j
�}|jd@}|�t�
d||��t�||�Wd|��XdS)N�wbrz&error writing pyc file at %s: errno=%sFl��z<llT)rt�IOErrorr;r@rAr'rTr+�	get_magic�int�mtime�size�struct�pack�marshal�dumpr.)rMrWrXrV�fp�errr�r�rrr�
_write_pycs


r�z
zutf-8�
z#^[ \t\f]*#.*coding[:=][ \t]*[-\w.]+uc	Csf|j}y|��}|�d�}Wntk
r0dSXtr�|�d�}|�d|d�}|�t�s�t�	|d|��dkr�t�	||d|��dkr�t
|d�r�dSd|_z(y|�d	�Wnt
k
r�dSXWd|`Xtr�|�tt�t}yt�|�}Wn&tk
�r|�d
|f�dSXt|||�yt||jd�}Wn&tk
�r\|�d|f�dSX||fS)
z8Try to read and rewrite *fn* and return the code object.rs)NNr�rrN�	_indecodeT�asciizfailed to parse: %r�execzfailed to compile: %r)r&�statru�EnvironmentError�ASCII_IS_DEFAULT_ENCODING�findrZ�BOM_UTF8�	cookie_re�matchr0r��decode�UnicodeDecodeError�REWRITE_NEWLINES�replace�RN�Nr�parse�SyntaxErrorr'�rewrite_asserts�compileZstrpath)	rrPrMr��sourceZend1Zend2ZtreerWrrrrJ#sF



rJcCsNtj�d�rt||||�n.|dtt���}t||||�rJt�||�dS)z$Try to dump rewritten code to *pyc*.�winr	N)r;�platformrZr�rYr3�getpid�rename)rMrXrVrWZproc_pycrrrrK\s
rKcCsdS)Nr)�xrrrrirc	Cs>yt|d�}Wntk
r"dSX|��
y"t|���}|��}|�d�}Wn2tk
r�}z|d||f�dSd}~XYnXt|�dks�|dd�t�	�ks�t
�d|dd��||fkr�|d|�dSyt�
|�}Wn4tk
�r}z|d||f�dSd}~XYnXt|tj��s0|d	|�dS|SQRXdS)
zsPossibly read a pytest pyc containing rewritten code.

    Return rewritten code if successful or None if not.
    rsN�z"_read_pyc(%s): EnvironmentError %s�z<llz)_read_pyc(%s): invalid or out of date pycz$_read_pyc(%s): marshal.load error %sz _read_pyc(%s): not a code object)rtr~r�r�r�rur�r*r+rr��unpackr��load�	Exception�
isinstance�types�CodeType)	r�rVr'r�r�r��datarUrWrrrrIis2 rIcCst||��|�dS)z%Rewrite the assert statements in mod.N)�AssertionRewriter�run)rj�module_pathrrrrr��sr�cCs>tj�|�}tj�|�r"tjj}ntjj}|�|d�|d��S)a�Get a safe repr of an object for assertion error messages.

    The assertion formatting (util.format_explanation()) requires
    newlines to be escaped since they are a special character for it.
    Normally assertion.util.format_explanation() does this but for a
    custom repr it is possible to contain one of the special escape
    sequences, especially '
{' and '
}' are likely to be present in
    JSON reprs.

    r�z\n)r7�io�safereprrg�_istext�text�bytesr�)�obj�repr�trrr�	_saferepr�s

r�)�format_explanationcCs�tj�|�stj�|�r"|}d}ntj�|�}d}tj�|�rHtjj}ntjj}|�|d�|d���|d�|d��}|r�|�|d�|d��}|S)z�Format the custom assertion message given.

    For strings this simply replaces newlines with '
~' so that
    util.format_explanation() will preserve them instead of escaping
    newlines.  For other objects py.io.saferepr() is used first.

    FTr�z
~�%z%%z\n)	r7rgr�Z_isbytesr�r�r�r�r�)r��sZis_reprr�rrr�_format_assertmsg�s
$r�cCst|d�otj�|�S)Nro)r0r7rg�callable)r�rrr�_should_repr_global_name�sr�cCsLd|r
dpd�|�d}tj�|�r0tjj}ntjj}|�|d�|d��S)N�(z or z and �)r�z%%)r5r7rgr�r�r�r�)Zexplanations�is_or�explanationr�rrr�_format_boolop�s

r�c		Cs�xLttt|��||�D]4\}}}y
|}Wntk
rBd}YnX|rPqWtjdk	r�t�||||||d�}|dk	r�|S|S)NTr)�zip�ranger*r�rZ_reprcompare)	�ops�results�explsZeach_obj�i�res�expl�doneZcustomrrr�_call_reprcompare�s 


r�znot %sz~%sz-%sz+%s�|�^�&z<<z>>�+�-�*�/z//z%%z==z!=�<z<=�>z>=z**�iszis not�inznot in�@�NameConstantcCst�t|�t���S)N)r�NamerY�Load)rrrr�
_NameConstantsr�cs�fdd���|||�|S)z*Set node location information recursively.csDd|jkr||_d|jkr ||_xt�|�D]}�|||�q,WdS)N�lineno�
col_offset)�_attributesr�r�rZiter_child_nodes)�noder�r��child)�_fixrrr�s

zset_location.<locals>._fixr)r�r�r�r)r�r�set_locationsr�cs�eZdZdZ�fdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zejd(kr�eZneZd)d*�Zd+d,�Z�ZS)-r�a2	Assertion rewriting implementation.

    The main entrypoint is to call .run() with an ast.Module instance,
    this will then find all the assert statements and re-write them to
    provide intermediate values and a detailed assertion error.  See
    http://pybites.blogspot.be/2011/07/behind-scenes-of-pytests-new-assertion.html
    for an overview of how this works.

    The entry point here is .run() which will iterate over all the
    statements in an ast.Module and for each ast.Assert statement it
    finds call .visit() with it.  Then .visit_Assert() takes over and
    is responsible for creating new ast statements to replace the
    original assert statement: it re-writes the test of an assertion
    to provide intermediate values and replace it with an if statement
    which raises an assertion error with a detailed explanation in
    case the expression is false.

    For this .visit_Assert() uses the visitor pattern to visit all the
    AST nodes of the ast.Assert.test field, each visit call returning
    an AST node and the corresponding explanation string.  During this
    state is kept in several instance attributes:

    :statements: All the AST statements which will replace the assert
       statement.

    :variables: This is populated by .variable() with each variable
       used by the statements so that they can all be set to None at
       the end of the statements.

    :variable_counter: Counter to create new unique variables needed
       by statements.  Variables are created using .variable() and
       have the form of "@py_assert0".

    :on_failure: The AST statements which will be executed if the
       assertion test fails.  This is the code which will construct
       the failure message and raises the AssertionError.

    :explanation_specifiers: A dict filled by .explanation_param()
       with %-formatting placeholders and their corresponding
       expressions to use in the building of an assertion message.
       This is used by .pop_format_context() to build a message.

    :stack: A stack of the explanation_specifiers dicts maintained by
       .push_format_context() and .pop_format_context() which allows
       to build another %-formatted string while already building one.

    This state is reset on every new assert statement visited and used
    by the other visitors.

    cstt|���||_||_dS)N)�superr�r r�r)rr�r)�	__class__rrr GszAssertionRewriter.__init__cs�|js
dSt�tjjjd�t�dd�g}d}d}d�x�|jD]|}|r�t|tj�r�t|j	tj
�r�|j	j}d|krrdS�t|�d7�d	}n(t|tj
�r�|jdks�|jd
kr�|j�P|d7}q<W�fdd�|D�}||j||�<|g}x�|�r�|��}	x�t�|	�D]�\}
}t|t��r~g}xXt|�D]L\}
}t|tj��rH|�|�|��n"|�|�t|tj��r |�|��q Wt|	|
|�q�t|tj�r�t|tj�s�|�|�q�Wq�WdS)
z5Find all assert statements in *mod* and rewrite them.Nz@py_builtinsz_pytest.assertion.rewritez
@pytest_arTrZPYTEST_DONT_REWRITErF�
__future__csg|]}tj|g�dd��qS)r)r�r�)rZImport)�.0�alias)r�rr�
<listcomp>fsz)AssertionRewriter.run.<locals>.<listcomp>)�bodyrr�r7rg�builtinsror��Expr�value�Strr�r*Z
ImportFrom�level�moduler�raZiter_fieldsr)�	enumerateZAssert�extend�visit�append�AST�setattr�expr)rrj�aliasesZexpect_docstring�pos�item�docZimportsZnodesr�rL�field�newr�r�r)r�rr�LsN


zAssertionRewriter.runcCs"dtt|j��}|j�|�|S)zGet a new variable.z
@py_assert)rY�next�variable_counter�	variablesr�)rrLrrr�variableszAssertionRewriter.variablec	Cs:|��}|j�t�t�|t���g|��t�|t���S)zGive *expr* a name.)r�
statementsr�r�Assignr��Storer�)rr�rLrrr�assign�s"zAssertionRewriter.assigncCs|�d|�S)z&Call py.io.saferepr on the expression.r�)�helper)rr�rrr�display�szAssertionRewriter.displaycGs6t�dt���}t�|d|t���}t|t|�g�S)zCall a helper in this module.z
@pytest_ar�_)rr�r��	Attribute�ast_Callr))rrL�argsZpy_name�attrrrrr�szAssertionRewriter.helpercCs"t�dt���}t�||t���S)z!Return the builtin called *name*.z@py_builtins)rr�r�r)rrL�builtin_namerrrrg�szAssertionRewriter.builtincCs(dtt|j��}||j|<d|dS)aKReturn a new named %-formatting placeholder for expr.

        This creates a %-formatting placeholder for expr in the
        current formatting context, e.g. ``%(py0)s``.  The placeholder
        and expr are placed in the current format context so that it
        can be used on the next call to .pop_format_context().

        r7z%(z)s)rYrr�explanation_specifiers)rr��	specifierrrr�explanation_param�s	
z#AssertionRewriter.explanation_paramcCsi|_|j�|j�dS)a�Create a new formatting context.

        The format context is used for when an explanation wants to
        have a variable value formatted in the assertion message.  In
        this case the value required can be added using
        .explanation_param().  Finally .pop_format_context() is used
        to format a string of %-formatted values as added by
        .explanation_param().

        N)r�stackr�)rrrr�push_format_context�sz%AssertionRewriter.push_format_contextc	Cs�|j��}|jr|jd|_dd�|��D�}t�|t|����}t�|t�	�|�}dt
t|j��}|j
�t�t�|t���g|��t�|t���S)aVFormat the %-formatted string with current format context.

        The expl_expr should be an ast.Str instance constructed from
        the %-placeholders created by .explanation_param().  This will
        add the required code to format said string to .on_failure and
        return the ast.Name instance of the formatted string.

        r"cSsg|]}t�|��qSr)rr�)r��keyrrrr��sz8AssertionRewriter.pop_format_context.<locals>.<listcomp>z
@py_format)rrar�keysr�Dictr)�values�BinOp�ModrYrr�
on_failurer�rr�rr�)rZ	expl_expr�currentrZformat_dictZformrLrrr�pop_format_context�s	
"z$AssertionRewriter.pop_format_contextcCs.t|tj�st�|�|�}||�|�|��fS)z1Handle expressions we don't have custom code for.)r�rr��AssertionErrorrrr	)rr�r�rrr�
generic_visit�s
zAssertionRewriter.generic_visitcCs�t|jtj�r6|jdk	r6|j|jf}|jjdd|d�g|_g|_	t
��|_g|_
g|_|��|�|j�\}}|j}t�t��|�}|j�t�||g��|jr�|�d|j�}d|}nt�d�}d|}t�|t��t�|��}|�|�}	|�d	|	�}
t�d
t���}t||
gg�}tjddk�r6t� |d�}
nt� |dd�}
|�|
�|j	�r�d
d�|j	D�}t�!|t"d��}|j�|�x |jD]}t#||j|j$��q�W|jS)a0Return the AST statements to replace the ast.Assert instance.

        This re-writes the test of an assertion to provide
        intermediate values and replace it with an if statement which
        raises an assertion error with a detailed explanation in case
        the expression is false.

        NZR1z5assertion is always true, perhaps remove parentheses?)�
fslocationZformat_assertmsgz	
>assert �zassert r�rrrcSsg|]}t�|t����qSr)rr�r)r�rLrrrr��sz2AssertionRewriter.visit_Assert.<locals>.<listcomp>)%r��testr�Tuplerr�r�r`rr�	itertools�countrrrrr��UnaryOp�Notr��If�msgrr�r�Addrr�r�rr;�version_infoZRaiserr�r�r�)rZassert_r Z
top_conditionr�r�ZnegationZ	assertmsg�templater)�fmtZerr_name�excZraise_r�clearZstmtrrr�visit_Assert�sH	






zAssertionRewriter.visit_AssertcCszt|�d�gg�}t�t�|j�t��g|g�}|�d|�}t�t�	�||g�}t�
||�|�t�|j��}||�|�fS)N�localsZshould_repr_global_name)
rrgr�Comparer��id�Inr�BoolOp�OrZIfExpr	r)rrLZlocsZinlocsZdoreprr"r�rrr�
visit_NameszAssertionRewriter.visit_Namec
Cs�|��}|�t�gt����}t�|dt���}tt|jtj	��}|j
}}|j}t|j
�d}	|��x�t|j
�D]�\}
}|
r�g}|j�t�|
|g��||_|��|�|�\}}|�t�t�|t���g|��|�t�|��}t||gg�}|j�t�|��|
|	krt|}
|�r(t�t��|
�}
g}|j
�t�|
|g��||_
}qtW||_
||_|�d|t�|��}|�|�}t�|t���|�|�fS)Nr�rZ
format_boolop)rrrZListr�rr�r��opr6rrr*rrr�r�r(r�rr�rrr�rr�r&r'r�Numr)rZboolopZres_varZ	expl_listZappr�r�ZsaveZ	fail_saveZlevelsr��vZ
fail_innerZcondr�r�Zexpl_format�call�innerZ
expl_templaterrr�visit_BoolOp
s>
 
zAssertionRewriter.visit_BoolOpcCs>t|jj}|�|j�\}}|�t�|j|��}|||ffS)N)�	unary_mapr8r�r�Zoperandrrr&)rZunary�patternZoperand_resZoperand_explr�rrr�
visit_UnaryOp0szAssertionRewriter.visit_UnaryOpc	CsXt|jj}|�|j�\}}|�|j�\}}d|||f}|�t�||j|��}||fS)Nz
(%s %s %s))	�	binop_mapr8r�r��left�rightrrr)	rZbinop�symbolZ	left_expr�	left_explZ
right_exprZ
right_explr�r�rrr�visit_BinOp6szAssertionRewriter.visit_BinOpcCs�|�|j�\}}g}g}g}x0|jD]&}|�|�\}}	|�|	�|�|�q$Wx\|jD]R}
|�|
j�\}}	|�t�|
j|��|
jr�|�|
jd|	�qV|�d|	�qVWd|d�	|�f}	t�
|||�}|�|�}|�|�
|��}d|||	f}
||
fS)z?
        visit `ast.Call` nodes on Python3.5 and after
        �=z**z%s(%s)z, z
%s
{%s = %s
})r��funcr
r��keywordsr�r�keyword�argr5rrrr	)rr;�new_func�	func_expl�	arg_expls�new_args�
new_kwargsrKr�r�rJ�new_call�res_expl�
outer_explrrr�
visit_Call_35>s(

zAssertionRewriter.visit_Call_35cCs|�|j�\}}|d|fS)Nr�)r�r�)rZstarredr�r�rrr�
visit_StarredYszAssertionRewriter.visit_StarredcCs:|�|j�\}}g}g}g}d}}x0|jD]&}	|�|	�\}
}|�|
�|�|�q,WxF|jD]<}|�|j�\}
}|�t�|j|
��|�|jd|�q^W|j	r�|�|j	�\}}|�d|�|j
r�|�|j
�\}}|�d|�d|d�|�f}t�|||||�}
|�
|
�}
|�|�|
��}d|||f}|
|fS)z9
        visit `ast.Call nodes on 3.4 and below`
        NrGr�z**z%s(%s)z, z
%s
{%s = %s
})r�rHr
r�rIr�rrJrKZstarargs�kwargsr5rrrr	)rr;rLrMrNrOrPZnew_starZ	new_kwargrKr�r�rJrQrRrSrrr�visit_Call_legacy^s4


z#AssertionRewriter.visit_Call_legacy)rr
cCspt|jtj�s|�|�S|�|j�\}}|�t�||j	t����}|�
|�|��}d}|||||j	f}||fS)Nz%s
{%s = %s.%s
})r��ctxrr�rr�r�rrrrr	)rrr�Z
value_explr�rRr[r�rrr�visit_Attribute�s
z!AssertionRewriter.visit_Attributecs������|j�\}}t|jtjtjf�r6d�|�}�fdd�tt	|j
��D�}dd�|D�}dd�|D�}ttt	|j
��|j
|j�}g}g}	|g}
x�|D]�\}}}
��|
�\}}t|
tjtjf�r�d�|�}|
�
|�t|j}|	�
t�|��d|||f}|�
t�|��t�||g|g�}�j�
t�||g|��||}}q�W��dt�|	t���t�|t���t�|t���t�|
t����}t	|j
�dk�r�t�t��|�}n|d	}|����|��fS)
Nz({0})csg|]}����qSr)r)r�r�)rrrr��sz3AssertionRewriter.visit_Compare.<locals>.<listcomp>cSsg|]}t�|t����qSr)rr�r�)r�r:rrrr��scSsg|]}t�|t����qSr)rr�r)r�r:rrrr��sz%s %s %sZcall_reprcomparerr)rr�rBr��_astr2r5�formatr�r*r�r�Zcomparatorsr�rAr�rr�rrrr#r��Andrr)r�compZleft_resrEZ
res_variablesZ
load_namesZstore_names�itr�Zsymsr�r�r8Znext_operandZnext_resZ	next_expl�symr�Zres_exprZ	expl_callr�r)rr�
visit_Compare�s@



zAssertionRewriter.visit_Compare)roryrzr{r r�rrr	rrgrrrrr0r7r=r@rFrTrUrWr;r+Z
visit_CallrYr`�
__classcell__rr)r�rr�s223
4
#"

r�)NN)Ur{rrZrAr$r+r�r3�rer�r;r�rr7Z_pytest.assertionrr0rZ
PYTEST_TAG�implr�r+�verZPYC_EXTrHr�r�rr�objectrr��encoder�r�r�r�r�rJrKrIr�r�Z_pytest.assertion.utilr�Z_format_explanationr�r�r�r�r'ZInvertZUSubZUAddr>ZBitOrZBitXorZBitAndZLShiftZRShiftr*ZSubZMultZDivZFloorDivrZEqZNotEqZLtZLtEZGtZGtEZPowZIsZIsNotr4ZNotInrAZMatMult�AttributeErrorr�r�r�ZNodeVisitorr�rrrr�<module>s�


V


9
!