Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/cloudlinux/venv/lib64/python3.11/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/_pytest/__pycache__/scope.cpython-311.pyc
�

�hB����dZddlmZddlmZddlmZddlmZerddlm	Z	e	dZ
eGd�d	e����Zee��Z
d
�ee
��D��Zd�eD��ZdS)
a"
Scope definition and related utilities.

Those are defined here, instead of in the 'fixtures' module because
their use is spread across many other pytest modules, and centralizing it in 'fixtures'
would cause circular references.

Also this makes the module light to import, as it should.
�)�Enum)�total_ordering)�Optional)�
TYPE_CHECKING)�Literal)�session�package�module�class�functionc
��eZdZUdZdZded<dZded<dZded<d	Zded
<dZ	ded<dd�Z
dd�Zddd
efd�Z
e	ddddedeed
dfd���ZdS)�Scopez�
    Represents one of the possible fixture scopes in pytest.

    Scopes are ordered from lower to higher, that is:

              ->>> higher ->>>

    Function < Class < Module < Package < Session

              <<<- lower  <<<-
    r�
_ScopeName�Functionr�Classr
�Moduler	�Packager�Session�returnc�l�t|}|dkrt|�d����t|dz
S)zReturn the next lower scope.rz is the lower-most scope�)�_SCOPE_INDICES�
ValueError�_ALL_SCOPES��self�indexs  �^/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/_pytest/scope.py�
next_lowerzScope.next_lower*s;���t�$���A�:�:���>�>�>�?�?�?��5�1�9�%�%�c��t|}|tt��dz
krt|�d����t|dzS)zReturn the next higher scope.rz is the upper-most scope)r�lenrrrs  r�next_higherzScope.next_higher1sJ���t�$���C��'�'�!�+�+�+���>�>�>�?�?�?��5�1�9�%�%r �otherc�B�t|}t|}||kS�N)r)rr$�
self_index�other_indexs    r�__lt__zScope.__lt__8s!��#�D�)�
�$�U�+���K�'�'r N�
scope_name�descr�wherec	��ddlm}	t|��}n:#t$r-|d�||rd|�d�nd|��d���YnwxYw|S)	a
        Given a scope name from the user, return the equivalent Scope enum. Should be used
        whenever we want to convert a user provided scope name to its enum object.

        If the scope name is invalid, construct a user friendly message and call pytest.fail.
        r)�failz'{} {}got an unexpected scope value '{}'zfrom � �F)�pytrace)�_pytest.outcomesr.rr�format)�clsr*r+r,r.�scopes      r�	from_userzScope.from_user=s���	*�)�)�)�)�)�		��*�%�%�E�E���	�	�	��D�9�@�@��u�<�+�5�+�+�+�+�"�j����	
�
�
�
�
�
�	�����s��4A�A)rrr&)�__name__�
__module__�__qualname__�__doc__r�__annotations__rrrrrr#�boolr)�classmethod�strrr6�r rrrs�������
�
�(�H�l�'�'�'�!�E�<�!�!�!�#�F�L�#�#�#�%�G�\�%�%�%�%�G�\�%�%�%�&�&�&�&�&�&�&�&�(�G�(��(�(�(�(�
�JN���%��.1��:B�3�-��	�����[���r rc��i|]\}}||��	Sr?r?)�.0rr5s   r�
<dictcomp>rBWs��J�J�J�<�5�%�%��J�J�Jr c�.�g|]}|tju�|��Sr?)rr)rA�xs  r�
<listcomp>rE[s$��;�;�;�Q�1�E�N�#:�#:�q�#:�#:�#:r N)r:�enumr�	functoolsr�typingrr�typing_extensionsrrr�listr�	enumerater�HIGH_SCOPESr?r r�<module>rMs�����������$�$�$�$�$�$������� � � � � � ��N�)�)�)�)�)�)��L�M�J��=�=�=�=�=�D�=�=���=�@�d�5�k�k��J�J�9�9�[�3I�3I�J�J�J��<�;�%�;�;�;���r 

ZeroDay Forums Mini