403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/_pytest/__pycache__/doctest.cpython-312.pyc
�

��Hg�f��N�UdZddlmZddlZddlmZddlZddlZddlZddl	m
Z
ddlZddlZddl
Z
ddlZddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZddlZdd
lmZddlmZddlmZddlmZddlmZddl m!Z!ddl"m#Z#ddl$m%Z%ddl&m'Z'ddl&m(Z(ddl)m*Z*ddl)m+Z+ddl,m-Z-ddl,m.Z.ddl/m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6er
ddl7Z7ddl8m9Z9d Z:d!Z;d"Z<d#Z=d$Z>e:e;e<e=e>fZ?da@daAd%eBd&<dHd'�ZCdId(�ZD						dJd)�ZEdKd*�ZFdLd+�ZGdKd,�ZHGd-�d.e�ZIGd/�d0eJ�ZKdMd1�ZL				dN									dOd2�ZMGd3�d4e+�ZNdPd5�ZOdQd6�ZPdRd7�ZQGd8�d9e2�ZRdSd:�ZSdTd;�ZTedUd<��ZUGd=�d>e2�ZVdVd?�ZWdWd@�ZXdXdA�ZYdXdB�ZZdXdC�Z[dYdD�Z\e'dE�F�dZdG��Z]y)[z4Discover and run doctests in modules and test files.�)�annotationsN)�contextmanager)�Path)�Any)�Callable)�	Generator)�Iterable)�Pattern)�Sequence)�
TYPE_CHECKING)�outcomes)�
ExceptionInfo)�ReprFileLocation)�TerminalRepr)�TerminalWriter��safe_getattr)�Config)�Parser)�fixture)�
TopRequest)�	Collector)�Item)�OutcomeException)�skip��
fnmatch_ex)�Module)�approx)�
PytestWarning)�Self�none�cdiff�ndiff�udiff�only_first_failurez"type[doctest.OutputChecker] | None�
CHECKER_CLASSc�~�|jddddg��|jddd�	�|jd
�}|jddd
dd��|jdtjddt
d��|jddgddd��|jddd
dd��|jddd
d d!��y)"N�doctest_optionflagszOption flags for doctests�args�ELLIPSIS)�type�default�doctest_encodingzEncoding used for doctest fileszutf-8)r-�collectz--doctest-modules�
store_trueFzRun doctests in all .py modules�doctestmodules)�actionr-�help�destz--doctest-reportr%z9Choose another output format for diffs on doctest failure�
doctestreport)r,r-r3�choicesr4z--doctest-glob�append�patz2Doctests file matching pattern, default: test*.txt�doctestglob)r2r-�metavarr3r4z--doctest-ignore-import-errorsz Ignore doctest collection errors�doctest_ignore_import_errorsz--doctest-continue-on-failurez<For a given doctest, continue to run after the first failure�doctest_continue_on_failure)�addini�getgroup�	addoption�str�lower�DOCTEST_REPORT_CHOICES)�parser�groups  �1C:\Python312\Lib\site-packages\_pytest/doctest.py�pytest_addoptionrFFs���
�M�M��#�
���	���M�M��=�w���
�O�O�I�&�E�	�O�O����
.�
���
�O�O��
�Y�Y��
H�&�
�
��
�O�O�����
A�
�
��
�O�O�(���
/�
+���
�O�O�'���
K�
*���c��day�N)�RUNNER_CLASS�rGrE�pytest_unconfigurerLxs	���LrGc��|j}|jdk(rM|jjr6t	t|�t
|�f�stj||��Syt|||�rtj||��Sy)Nz.py��path)�config�suffix�optionr1�any�_is_setup_py�_is_main_py�
DoctestModule�from_parent�_is_doctest�DoctestTextfile)�	file_path�parentrPs   rE�pytest_collect_filer\~s����]�]�F����5� ��=�=�'�'��
�)�
$�k�)�&<�=�1
�!�,�,�V�)�,�D�D��
�V�Y��	/��*�*�6�	�*�B�B�rGc�V�|jdk7ry|j�}d|vxsd|vS)Nzsetup.pyFs
setuptoolss	distutils)�name�
read_bytes)rO�contentss  rErTrT�s2���y�y�J������ �H��H�$�@���(@�@rGc����jdvr|jj��ry|jd�xsdg}t	�fd�|D��S)N)z.txtz.rstTr9z	test*.txtc3�6�K�|]}t|�����y�wrIr)�.0�globrOs  �rE�	<genexpr>z_is_doctest.<locals>.<genexpr>�s�����8�$�z�$��%�8�s�)rQ�session�
isinitpath�	getoptionrS)rPrOr[�globss `  rErXrX�sL����{�{�&�&�6�>�>�+D�+D�T�+J�����]�+�<��}�E��8�%�8�8�8rGc� �|jdk(S)Nz__main__.py)r^rNs rErUrU�s���9�9�
�%�%rGc�$�eZdZ				dd�Zdd�Zy)�ReprFailDoctestc��||_yrI)�reprlocation_lines)�selfrns  rE�__init__zReprFailDoctest.__init__�s��#5��rGc�~�|jD].\}}|D]}|j|��|j|��0yrI)rn�line�
toterminal)ro�tw�reprlocation�linesrrs     rErszReprFailDoctest.toterminal�sD��#'�#:�#:�	(��L�%��
������
�
��#�#�B�'�	(rGN)rnz0Sequence[tuple[ReprFileLocation, Sequence[str]]]�return�None)rtrrwrx)�__name__�
__module__�__qualname__rprsrKrGrErlrl�s��5�"R�5�	
�5�
(rGrlc� ��eZdZd�fd�Z�xZS)�MultipleDoctestFailuresc�0��t�|��||_yrI)�superrp�failures)ror��	__class__s  �rErpz MultipleDoctestFailures.__init__�s���
���� ��
rG)r�z Sequence[doctest.DocTestFailure]rwrx)ryrzr{rp�
__classcell__�r�s@rEr}r}�s
���!�!rGr}c�>��ddl�G�fd�d�j�}|S)Nrc�z���eZdZdZ				d									d�fd�
Z								d�fd�Z								d�fd�Z�xZS)	�/_init_runner_class.<locals>.PytestDoctestRunnerz�Runner to collect failures.

        Note that the out variable in this case is a list instead of a
        stdout-like object.
        c�8��t�|�|||��||_y)N)�checker�verbose�optionflags)rrp�continue_on_failure)ror�r�r�r�r�s     �rErpz8_init_runner_class.<locals>.PytestDoctestRunner.__init__�s!���
�G��W�g�;��W�':�D�$rGc�l���j|||�}|jr|j|�y|�rI)�DocTestFailurer�r7)ro�out�test�example�got�failure�doctests      �rE�report_failurez>_init_runner_class.<locals>.PytestDoctestRunner.report_failure�s5���-�g�,�,�T�7�C�@�G��'�'��
�
�7�#��
rGc���t|dt�r|d�t|dtj�rt	j
d��j|||�}|jr|j|�y|�)N�zQuitting debugger)	�
isinstancer�bdb�BdbQuitr
�exit�UnexpectedExceptionr�r7)ror�r�r��exc_infor�r�s      �rE�report_unexpected_exceptionzK_init_runner_class.<locals>.PytestDoctestRunner.report_unexpected_exception�sm����(�1�+�'7�8��q�k�!��(�1�+�s�{�{�3��
�
�1�2�1�g�1�1�$���J�G��'�'��
�
�7�#��
rG�NNrT)
r��doctest.OutputChecker | Noner��bool | Noner��intr��boolrwrx)r��doctest.DocTestr��doctest.Exampler�r@rwrx)r�r�r�r�r�z>tuple[type[BaseException], BaseException, types.TracebackType]rwrx)ryrzr{�__doc__rpr�r�r�)r�r�s@�rE�PytestDoctestRunnerr��s����	�59�#'� �(,�	;�1�	;�!�	;��		;�
"&�	;��
	;�	�"�	�%�		�
�	��
	�	�"�	�%�		�
U�	��
	�	rGr�)r��DebugRunner)r�r�s @rE�_init_runner_classr��s!����-�g�1�1�-�^�rGc�@�t�
t�at||||��S)N�r�r�r�r�)rJr�r�s    rE�_get_runnerr��s-����)�+������/�	�rGc���eZdZ										d	�fd�Ze										d
�fd��Zdd�Zdd�Zdd�Zdd�Z					d�fd�Z
d
d�Z�xZS)�DoctestItemc����t�|�||�||_||_d|_|j
j}|j|dd��}||_|j|_
|j�y)N)�node�func�cls)rrp�runner�dtest�objrf�_fixturemanager�getfixtureinfo�_fixtureinfo�
names_closure�fixturenames�_initrequest)ror^r[r�r��fm�fixtureinfor�s       �rErpzDoctestItem.__init__�ss���	����v�&������
����
�\�\�
)�
)���'�'�T��$�'�G��'���'�5�5������rGc�*��t�|�||||��S)zThe public named constructor.)r^r[r�r�)rrW)r�r[r^r�r�r�s     �rErWzDoctestItem.from_parents����w�"��V�F�RW�"�X�XrGc�6�i|_t|d��|_y)NT)�	_ispytest)�funcargsr�_request�ros rEr�zDoctestItem._initrequests��+-��
�"�4�4�8��
rGc�.�|jj�t|jj��}|jjd�j	�D]
\}}|||<�|j
jj|�y)N)�
getfixture�doctest_namespace)r��
_fillfixtures�dict�getfixturevalue�itemsr�ri�update)rorir^�values    rE�setupzDoctestItem.setup ss���
�
�#�#�%���
�
� =� =�>���=�=�8�8�9L�M�S�S�U�	 �K�D�%��E�$�K�	 ��
�
������&rGc��t|j�|j�g}|jj	|j|��|rt|��y)N)r�)�_check_all_skippedr��$_disable_output_capturing_for_darwinr��runr})ror�s  rE�runtestzDoctestItem.runtest'sL���4�:�:�&��1�1�3�13��	
������
�
���1��)�(�3�3�rGc�J�tj�dk7ry|jjj	d�}|rd|jd��|j
�\}}tjj|�tjj|�yy)zFDisable output capturing. Otherwise, stdout is lost to doctest (#985).�DarwinN�capturemanagerT)�in_)�platform�systemrP�
pluginmanager�	getplugin�suspend_global_capture�read_global_capture�sys�stdout�write�stderr)ro�capmanr��errs    rEr�z0DoctestItem._disable_output_capturing_for_darwin1s~���?�?���(�����*�*�4�4�5E�F����)�)�d�)�3��1�1�3�H�C���J�J���S�!��J�J���S�!�	rGc����ddl}d}t|j|j|jf�r|jg}n0t|jt
�r|jj}|�t�|�!|�Sg}|D�]O}|j}|j}|j}|j�d}	n|j|jzdz}	t|�j}
t||	|
�}t!�}t#|j$j'd��}
|	��|jj(�J�|jj(j+d�}|j�J�t-|�D��cgc]\}}d||jzdz|fz��}}}|t/|jdz
d�|jdz}n=dg}d}|j0j+�D]}|j3d	|�d
|���d}�t||j�r0||j5||j6|
�j9d�z
}nnt;j<|j>�}|d
|j��gz
}|tAjB|j>�D�cgc]}|jEd���c}z
}|j3||f���RtG|�Scc}}wcc}w)Nrr�r5Fz%03d %s�	z?EXAMPLE LOCATION UNKNOWN, not showing all tests of that examplez>>>z??? � z...�
zUNEXPECTED EXCEPTION: )$r�r�r�r�r�r}r�r�repr_failurer�r��filename�linenor,ryr�_get_checker�_get_report_choicerPrh�	docstring�
splitlines�	enumerate�max�sourcer7�output_differencer��splitr�
from_exc_infor��	traceback�format_exception�striprl)ro�excinfor�r�rnr�r�r�r�r��messagerur��
report_choicerv�i�x�indentrr�
inner_excinfor�s                    �rEr�zDoctestItem.repr_failure=s����	�
�	���M�M�G�2�2�G�4O�4O�P�
� �
�
��H�
��
�
�'>�
?��}�}�-�-�H����7�'��0�0����)	=�G��o�o�G��<�<�D��}�}�H��{�{�"������w�~�~�5��9���7�m�,�,�G�+�H�f�g�F�L�"�n�G�.�t�{�{�/D�/D�_�/U�V�M��!��|�|�-�-�9�9�9����.�.�9�9�%�@���{�{�.�.�.�GP�QV�GW��=C�a��I��T�[�[��1�!4�a� 8�8�����c�'�.�.�1�"4�a�8�7�>�>�A�;M�N��V�����#�N�N�5�5�7�#�D��L�L�4��x�q���!7�8�"�F�#��'�7�#9�#9�:���2�2��W�[�[�-���%��+���!.� ;� ;�G�<L�<L� M�
��2�=�3F�3F�2I�J�K�K���+4�+E�+E�w�GW�GW�+X��&'�A�G�G�D�M����
�%�%�|�U�&;�<�S)	=�T�1�2�2��1��(s�!K%�'K+c�b�|j|jjd|j��fS)Nz
[doctest] )rOr�r�r^r�s rE�
reportinfozDoctestItem.reportinfo}s(���y�y�$�*�*�+�+�z�$�)�)��-E�E�ErG)
r^r@r[�DoctestTextfile | DoctestModuler��doctest.DocTestRunnerr�r�rwrx)
r[r�r^r@r�rr�r�rwr!�rwrx)r�zExceptionInfo[BaseException]rwzstr | TerminalRepr)rwz.tuple[os.PathLike[str] | str, int | None, str])
ryrzr{rp�classmethodrWr�r�r�r�r�r�r�r�s@rEr�r��s�������0��&�	�
��
�
�&�
Y�/�
Y��	
Y�
&�
Y��
Y�
�
Y��
Y�9�'�4�	"�>3�-�>3�
�>3�@FrGr�c���ddl}t|j|j|j|j
|j|jt�t�t���	S)Nr)	�DONT_ACCEPT_TRUE_FOR_1�DONT_ACCEPT_BLANKLINE�NORMALIZE_WHITESPACEr+�IGNORE_EXCEPTION_DETAIL�COMPARISON_FLAGS�
ALLOW_UNICODE�ALLOW_BYTES�NUMBER)r�r�rrrr+rr�_get_allow_unicode_flag�_get_allow_bytes_flag�_get_number_flag�r�s rE�_get_flag_lookupr�sZ����&�=�=�%�;�;�$�9�9��!�!� '� ?� ?� �1�1�-�/�)�+��!�
�
rGc�^�|jd�}t�}d}|D]
}|||z}�|S)Nr)r)�getinir)rP�optionflags_str�flag_lookup_table�flag_acc�flags     rE�get_optionflagsr�sC���m�m�$9�:�O�(�*���H��,���%�d�+�+��,��OrGc�R�|jd�}|r|jd�rd}|S)Nr<�usepdbF)�getvalue)rPr�s  rE�_get_continue_on_failurer�s/�� &���0M� N����?�?�8�$�"'���rGc��eZdZdZdd�Zy)rYNc#�K�ddl}|jjd�}|jj	|�}t|j�}|jj}ddi}t|j�}td|t�t|j���}|j�}	|	j||||d�}
|
jr&tj||
j||
����yy�w)Nrr.ry�__main__F�r�r�r�r��r^r�r�)r�rPrrO�	read_textr@r^rr�r�r�
DocTestParser�get_doctest�examplesr�rW)ror��encoding�textr�r^rir�r�rCr�s           rEr/zDoctestTextfile.collect�s�������;�;�%�%�&8�9���y�y�"�"�8�,���t�y�y�>���y�y�~�~���Z�(��%�d�k�k�2����#� �N� 8���� E�	
��'��&�&�(���!�!�$��t�X�q�A���=�=��)�)��4�9�9�V�4�*��
��s�DD�rwzIterable[DoctestItem])ryrzr{r�r/rKrGrErYrY�s��
�C�rGrYc�f��ddl�t�fd�|jD��}|rtd�yy)zVRaise pytest.skip() if all examples in the given DocTest have the SKIP
    option set.rNc3�j�K�|]*}|jj�jd����,y�w)FN)�options�get�SKIP)rcr�r�s  �rErez%_check_all_skipped.<locals>.<genexpr>�s$�����P�Q�a�i�i�m�m�G�L�L�%�8�P�s�03z!all tests skipped by +SKIP option)r��allr$r)r��all_skippedr�s  @rEr�r��s-�����P�$�-�-�P�P�K���
0�1�rGc� �t|dd�duS)zmReturn if an object is possibly a mock object by checking the
    existence of a highly improbable attribute.�1pytest_mock_example_attribute_that_shouldnt_existNr)r�s rE�
_is_mockedr1�s��	�S�M�t�T��	�rGc#��K�tj�dd�					d�fd�}|t_	d���t_y#�t_wxYw�w)z�Context manager which replaces ``inspect.unwrap`` with a version
    that's aware of mock objects and doesn't recurse into them.N��stopc�����	|�|tur��t��S|�����fd���S#t$r'}tjd|�d��d�t��d}~wwxYw)Nr3c�.��t|�xs���SrI)r1)r��_stopr�s ��rE�<lambda>zF_patch_unwrap_mock_aware.<locals>._mock_aware_unwrap.<locals>.<lambda>�s���j��o�6T��t��rGzGot z when unwrapping z.  This is usually caused by a violation of Python's object protocol; see e.g. https://github.com/pytest-dev/pytest/issues/5080)r1�	Exception�warnings�warnr )r�r4�er7�real_unwraps`  @�rE�_mock_aware_unwrapz4_patch_unwrap_mock_aware.<locals>._mock_aware_unwrap�st���	��|�t�z�1�"�4�j�9�9��E��t�*T�U�U���	��M�M��q�e�,�T�H�5C�C��	
�
��	�s�-�-�	A�"A�A)r�zCallable[..., Any]r4zCallable[[Any], Any] | Nonerwr)�inspect�unwrap)r>r=s @rE�_patch_unwrap_mock_awarerA�sU������.�.�K�JN�� ��+F��	��"(�G�N�%�
�$�������s�*A�>�A�
A�Ac��eZdZdd�Zy)rVc#�rK�ddl}Gd�d|j�}	|j}|jjj|�|�}t|j
�}td|t�t|j
���}|j!|j"�D]4}|j$s�t&j)||j*||�����6y#tj$r9|j
j
d�rtd|j���n�Y��
wxYw�w)	Nrc�0��eZdZejddZedkxsBedk(xrejjdkxs edk(xrejjdkZer�fd�Zejdkr		d�fd	�Z	ejd
kr	�fd�Z
�xZS�xZS)
�5DoctestModule.collect.<locals>.MockAwareDocTestFinderN�)��r�)rG�rGc���t|t�r
t|d|�}t|d�rt	j
|�}t�|�||�S)a%On older Pythons, doctest code does not take into account
                    `@property`. https://github.com/python/cpython/issues/61648

                    Moreover, wrapped Doctests need to be unwrapped so the correct
                    line number is returned. #8796
                    �fget�__wrapped__)r��property�getattr�hasattrr?r@r�_find_lineno)ror��source_linesr�s   �rErPzBDoctestModule.collect.<locals>.MockAwareDocTestFinder._find_linenosO���"�#�x�0�%�c�6�3�7���s�M�2�%�n�n�S�1��!�7�/��$��rG)rG�
c
���t|�ryt�5t�|�
|||||||�ddd�y#1swYyxYw)z�Override _find to work around issue in stdlib.

                    https://github.com/pytest-dev/pytest/issues/3456
                    https://github.com/python/cpython/issues/69718
                    N)r1rAr�_find)	ro�testsr�r^�modulerQri�seenr�s	        �rErTz;DoctestModule.collect.<locals>.MockAwareDocTestFinder._findsE���"�#���1�3����
�!�3��f�l�E�4�����s	�7�A)rG�
c�p��t|tj�r|j}t�|�||�S)a>`cached_property` objects are never considered a part
                    of the 'current module'. As such they are skipped by doctest.
                    Here we override `_from_module` to check the underlying
                    function instead. https://github.com/python/cpython/issues/107995
                    )r��	functools�cached_propertyr�r�_from_module)rorV�objectr�s   �rEr\zBDoctestModule.collect.<locals>.MockAwareDocTestFinder._from_module)s2���"�&�)�*C�*C�D�!'����!�7�/���?�?rGr)ryrzr{r��version_info�py_ver_info_minor�micro�is_find_lineno_brokenrPrTr\r�r�s@rE�MockAwareDocTestFinderrE�s���� #� 0� 0��!� 4��!�G�+�Q�%��0�O�S�5E�5E�5K�5K�a�5O�Q�%��0�O�S�5E�5E�5K�5K�a�5O�
"�
%��(���'�)���� ���'�)�
@�
@�*rGrbr;zunable to import module Frr )r��
DocTestFinderr�r�CollectErrorrPrrrOrfr��parsefactoriesrr�r�r�findryr$r�rWr^)ror�rbrV�finderr�r�r�s        rEr/zDoctestModule.collect�s�����;	@�W�%:�%:�;	@�z	��X�X�F�	
���$�$�3�3�D�9�(�)��%�d�k�k�2����#� �N� 8���� E�	
���K�K�����8�	�D��}�}�!�-�-��t�y�y��t�.���	��)�%�%�	��{�{�#�#�$B�C��/��	�	�}�=�>��?�	�s/�D7�C(�BD7�(D7�(AD4�0D7�3D4�4D7Nr')ryrzr{r/rKrGrErVrV�s��ZrGrVc�F��ddl}ddl�G�fd�d|j�}|S)Nrc�����eZdZW�jdW�j�ZW�jdW�j�ZW�jdW�j�Zd��fd�Z	dd�Z
�xZS)�2_init_checker_class.<locals>.LiteralsOutputCheckerz(\W|^)[uU]([rR]?[\'\"])z(\W|^)[bB]([rR]?[\'\"])a�
            (?P<number>
              (?P<mantissa>
                (?P<integer1> [+-]?\d*)\.(?P<fraction>\d+)
                |
                (?P<integer2> [+-]?\d+)\.
              )
              (?:
                [Ee]
                (?P<exponent1> [+-]?\d+)
              )?
              |
              (?P<integer3> [+-]?\d+)
              (?:
                [Ee]
                (?P<exponent2> [+-]?\d+)
              )
            )
            c�z��t�|�|||�ry|t�z}|t�z}|t	�z}|s|s|syd�	fd�}|r&||j
|�}||j
|�}|r&||j|�}||j|�}|r|j||�}t�|�|||�S)NTFc�*���j|d|�S)Nz\1\2)�sub)�regex�txt�res  �rE�remove_prefixeszX_init_checker_class.<locals>.LiteralsOutputChecker.check_output.<locals>.remove_prefixess����v�v�e�W�c�2�2rG)rnzPattern[str]ror@rwr@)r�check_outputrr
r�_unicode_literal_re�_bytes_literal_re�_remove_unwanted_precision)
ro�wantr�r��
allow_unicode�allow_bytes�allow_numberrqr�rps
        ��rErrz?_init_checker_class.<locals>.LiteralsOutputChecker.check_outputts�����w�#�D�#�{�;��'�*A�*C�C�M�%�(=�(?�?�K�&�)9�);�;�L� ��\��
3��&�t�'?�'?��F��%�d�&>�&>��D���&�t�'=�'=�t�D��%�d�&<�&<�c�B����5�5�d�C�@���7�'��c�;�?�?rGc�.�t|jj|��}t|jj|��}t|�t|�k7r|Sd}t	||�D�]!\}}|jd�}|jd�}	|	�|jd�}	|�dn
t|�}
|	�|
t
|	�z}
t|j��tt|j��d|
z��k(s��|d|j�|z|j�z||j�|zdz}||j�|j�z
|j�|j�z
z
z
}��$|S)Nr�fraction�	exponent1�	exponent2rR)�abs)�list�
_number_re�finditer�len�ziprDr��floatr�start�end)rorvr��wants�gots�offset�w�gr{�exponent�	precisions           rEruzM_init_checker_class.<locals>.LiteralsOutputChecker._remove_unwanted_precision�sc������1�1�$�7�8�E�����0�0��5�6�D��5�z�S��Y�&��
��F��E�4�(�
J���1�'(�w�w�z�':��'(�w�w�{�';���#� �w�w�{�3�H�!)�!1�A�s�8�}�	��'���X��.�I������#�v�e�A�G�G�I�.>�B��
�N�'S�S�
�0�a�g�g�i�&�0�1�A�G�G�I�=��A�E�E�G�f�DT�DV�@W�W���a�e�e�g����	�1�Q�U�U�W�q�w�w�y�5H�I�I�F�
J� �JrG)rvr@r�r@r�r�rwr�)rvr@r�r@rwr@)ryrzr{�compile�UNICODErsrt�VERBOSEr�rrrur�)r�rps@�rE�LiteralsOutputCheckerrjVsX���
!�j�j�)C�R�Z�Z�P���J�J�'A�2�:�:�N���Z�Z�
�&
�J�J�)
�
�.	@�6	rGr�)r�rp�
OutputChecker)r�r�rps  @rE�_init_checker_classr�Rs&����
�O�� 5� 5�O�b!� rGc�6�t�
t�at�S)a�Return a doctest.OutputChecker subclass that supports some
    additional options:

    * ALLOW_UNICODE and ALLOW_BYTES options to ignore u'' and b''
      prefixes (respectively) in string literals. Useful when the same
      doctest should run in Python 2 and Python 3.

    * NUMBER to ignore floating-point differences smaller than the
      precision of the literal number in the doctest.

    An inner class is used to avoid importing "doctest" at the module
    level.
    )r'r�rKrGrEr�r��s����+�-�
��?�rGc�.�ddl}|jd�S)z+Register and return the ALLOW_UNICODE flag.rNr	�r��register_optionflagrs rErr�s���&�7�&�&��7�7rGc�.�ddl}|jd�S)z)Register and return the ALLOW_BYTES flag.rNr
r�rs rEr
r
�s���&�7�&�&�}�5�5rGc�.�ddl}|jd�S)z$Register and return the NUMBER flag.rNrr�rs rErr�s���&�7�&�&�x�0�0rGc
��ddl}t|jt|jt
|jt|jtdi|S)z�Return the actual `doctest` module flag value.

    We want to do it as late as possible to avoid importing `doctest` and all
    its dependencies when parsing options, as it adds overhead and breaks tests.
    rN)
r��DOCTEST_REPORT_CHOICE_UDIFF�REPORT_UDIFF�DOCTEST_REPORT_CHOICE_CDIFF�REPORT_CDIFF�DOCTEST_REPORT_CHOICE_NDIFF�REPORT_NDIFF�(DOCTEST_REPORT_CHOICE_ONLY_FIRST_FAILURE�REPORT_ONLY_FIRST_FAILURE�DOCTEST_REPORT_CHOICE_NONE)�keyr�s  rEr�r��sN���	$�W�%9�%9�#�W�%9�%9�#�W�%9�%9�0�'�2S�2S�"�A��
�
�rGrf)�scopec��t�S)a�Fixture that returns a :py:class:`dict` that will be injected into the
    namespace of doctests.

    Usually this fixture is used in conjunction with another ``autouse`` fixture:

    .. code-block:: python

        @pytest.fixture(autouse=True)
        def add_np(doctest_namespace):
            doctest_namespace["np"] = numpy

    For more details: :ref:`doctest_namespace`.
    )r�rKrGrEr�r��s���6�MrG)rCrrwrxr)rZrr[rrwz&DoctestModule | DoctestTextfile | None)rOrrwr�)rPrrOrr[rrwr�)rwztype[doctest.DocTestRunner]r�)
r�r�r�r�r�r�r�r�rwr)rwzdict[str, int])rPrrwr�)rPrrwr�)r�r�rwrx)r�r]rwr�)rwzGenerator[None])rwztype[doctest.OutputChecker])rwzdoctest.OutputChecker)rwr�)r�r@rwr�)rwzdict[str, Any])^r��
__future__rr��
contextlibrrZr?�os�pathlibrr�r�r��types�typingrrrr	r
rrr:�_pytestr
�_pytest._code.coderrr�_pytest._ior�_pytest.compatr�_pytest.configr�_pytest.config.argparsingr�_pytest.fixturesrr�
_pytest.nodesrr�_pytest.outcomesrr�_pytest.pathlibr�_pytest.pythonr�_pytest.python_apir�_pytest.warning_typesr r��typing_extensionsr!r�r�r�r�r�rBrJr'�__annotations__rFrLr\rTrXrUrlr9r}r�r�r�rrrrYr�r1rArVr�r�rr
rr�r�rKrGrE�<module>r�s���:�"�
�%���	���
��������� ���,�/�+�&�'�!�,�$�'�#��-�!�&�!�%�/���&�#��%��%��%��+?�(�����,�����48�
�1�8�/�d������,��A�9�&�
(�l�
(�!�i�!�2�l-1��� $�	�
)��
�����	�
��(CF�$�CF�L
� ���f��>2���%��%�:[�F�[�|U!�p�(8�6�1��"	�y����rG

Youez - 2016 - github.com/yon3zu
LinuXploit