j7iJddlmZddlmZddlmZddlmZddlZddlm Z ddl Z ddl m Z ddl m Z dd l mZdd lmZdd lmZdd lmZdd lmZddlZedd ddZddZej4ddddZej4ddddZej4d ddZej4dddZej4d d dZd!dZ y)") annotations) Generator)contextmanager) ExitStackN)Literal)apply_warning_filters)Config)parse_warning_filter)Session)Item)TerminalReporter)tracemalloc_messageTrecordc #DK|jd}|jjxsg}tj|5}t j s6tjdttjdttjdtjt|||dn |j}|E|jdD]0} | jD]} tjt!| d !2 d|r5|J|D]+} |j"j%t'| ||d  - dddy#|r5|J|D]+} |j"j%t'| ||d  -wwxYw#1swYyxYww) zContext manager that catches warnings generated in the contained execution block. ``item`` can be None if we are not in the context of an item execution. Each warning captured triggers the ``pytest_warning_recorded`` hook. filterwarningsralways)categoryerrorN)nameF)escape)warning_messagenodeidwhenlocation)kwargs)getiniknown_args_namespacepythonwarningswarningscatch_warningssys warnoptionsrDeprecationWarningPendingDeprecationWarningpytestPytestRemovedIn9Warningrr iter_markersargsr pytest_warning_recorded call_historicdict) configihookritemrconfig_filterscmdline_filterslogrmarkargrs Y/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/_pytest/warnings.pycatch_warnings_for_itemr7s]]#34N11@@FBO   / 3  # #H7I J  # #H7P Q&2P2PQno>|  ))/?)@ V99VC++-A#e-TUV V  &'*O11??#,;#)!%%)  @1  (&'*O11??#,;#)!%%)  @ )  s7AF CFE7F F 9FFFF ctjt|j|j|j |j |jt|jzS)z.Convert a warnings.WarningMessage to a string.) r! formatwarningstrmessagerfilenamelinenolinersource)rs r6warning_record_to_strr@Is\  ! ! O # #$       O223  44)wrappertryfirstc#Kt|j|jd|5dcdddS#1swYyxYww)Nruntestr.r/rr0)r7r.r/)r0s r6pytest_runtest_protocolrGTs8 {{$**94 s$A4 A=Ac#K|j}t||jdd5dcdddS#1swYyxYww)NcollectrFr.r7hooksessionr.s r6pytest_collectionrN\s= ^^F V[[yt &A6 A?A)rBc#K|j}t||jdd5dcdddS#1swYyxYwwNr.rFrJ)terminalreporterr.s r6pytest_terminal_summaryrSesA $ $F V[[xd rOc#K|j}t||jdd5dcdddS#1swYyxYwwrQrJrLs r6pytest_sessionfinishrUps= ^^F V[[xd rOc#pKt||jdd5dcdddS#1swYyxYwwrQ)r7rK) early_configs r6pytest_load_initial_conftestsrXys8 !<#4#48$ s6* 636c  t5}|jt||jddd|j dd|j |j jdddy#1swYyxYw)Nr.F)r.r/rr0rmarkerszfilterwarnings(warning): add a warning filter to the given test. see https://docs.pytest.org/en/stable/how-to/capture-warnings.html#pytest-mark-filterwarnings )r enter_contextr7rKaddinivalue_line add_cleanuppop_allclose)r.stacks r6pytest_configureras~ 2  #kk      m 5==?001'222s A%A99B) r.r rz'Literal['config', 'collect', 'runtest']r0z Item | NonerboolreturnGenerator[None])rzwarnings.WarningMessagercr:)r0r rcGenerator[None, object, object])rMr rcre)rRr rcrd)rMr rcrd)rWr rcrd)r.r rcNone)! __future__rcollections.abcr contextlibrrr#typingrr!_pytest.configrr r _pytest.mainr _pytest.nodesr _pytest.terminalr _pytest.tracemallocrr'r7r@hookimplrGrNrSrUrXrarAr6rrsE"%% 0!/ -3  0 0 20  0  000f4-.-.&2rA