| 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 : |
�
��Hg$) � � � d Z ddlmZ ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm
Z
dd
lmZ ddlm
Z
G d
� de� ZeefZ G d� de� Z G d� de� Z G d� de� Z ededef �� Z ede
e �� Z G d� de eef � Zd&d�Z ee� d' d(d�� Z ee� d)dd� d*d�� Z ee� d+d,d �� Z G d!� d"e� Z ee� d)d-d#�� Z d.dd$� d/d%�Zy)0zZException classes and constants handling test outcomes as well as
functions creating them.� )�annotationsN)�Any)�Callable)�cast)�NoReturn)�Protocol)�Type)�TypeVar� )�PytestDeprecationWarningc �2 � � e Zd ZdZdd� fd�
Zdd�ZeZ� xZS )�OutcomeExceptionzmOutcomeException and its subclass instances indicate and contain info
about test and collection outcomes.c �� �� |�St |t � sCd}t |j t | � j
t |� j
� � �t �| � |� || _ || _ y )NzY{} expected string as 'msg' parameter, got '{}' instead.
Perhaps you meant to use a mark?)
�
isinstance�str� TypeError�format�type�__name__�super�__init__�msg�pytrace)�selfr r � error_msg� __class__s ��2C:\Python312\Lib\site-packages\_pytest/outcomes.pyr zOutcomeException.__init__ sd �� ��?�:�c�3�#7�3�
� �I�,�,�T�$�Z�-@�-@�$�s�)�BT�BT�U�V�V�
����������� c �f � | j �| j S d| j j � d�S )N�<z
instance>)r r r )r s r �__repr__zOutcomeException.__repr__! s/ � ��8�8���8�8�O��4�>�>�*�*�+�:�6�6r )NT)r �
str | Noner �bool�return�None)r$ r )r �
__module__�__qualname__�__doc__r r! �__str__�
__classcell__�r s @r r r s �� �+� �7�
�Gr r c �D � � e Zd ZdZ ddd� d� fd�Z� xZS )�Skipped�builtinsF)�_use_item_locationc �D �� t �| � ||�� || _ || _ y )N�r r )r r �allow_module_levelr/ )r r r r2 r/ r s �r r zSkipped.__init__1 s) �� � ���S�'��2�"4��� #5��r )NTF)
r r"