관리-도구
편집 파일: recwarn.cpython-311.pyc
� �܋f�* � �� � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lmZ dd lm Z ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ed� � Zede d fd�� � Zedd�de eeee f ddfd�� � Z ede def d ed!edefd"�� � Z d+de e def d ed!ededef fd#�Z e d,dd�d$eee! eee! df f de eeee f dd%fd&�� � Z"ed$eee! eee! df f de def d ed!edef d'�� � Z"e!fdd�d$eee! eee! df f d ede eeee f d!eded%ef f d(�Z" G d)� dej# � � Z$e G d*� d%e$� � � � Z%dS )-z/Record warnings during test function execution.� N��pformat)� TracebackType)�Any)�Callable)� Generator)�Iterator)�List)�Optional)�Pattern)�Tuple)�Type)�TypeVar)�Union)�final)�overload)�check_ispytest)�WARNS_NONE_ARG)�fixture)�fail�T�return)�WarningsRecorderNNc # � K � t d�� � } | 5 t j d� � | V � ddd� � dS # 1 swxY w Y dS )z�Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions. See https://docs.pytest.org/en/latest/how-to/capture-warnings.html for information on warning categories. T�� _ispytest�defaultN)r �warnings�simplefilter)�wrecs �`/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/_pytest/recwarn.py�recwarnr"