bgZ!ldZddlZddlZddlmZddlmZddlmZddlmZddl Z ddl m Z ddl m Z dd l m Z dd lmZGd d eZd eddfdZe jddZde ddfdZde deeee ffdZde ddfdZdgZde deefdZde deefdZdS)z3Version info, help messages, tracing configuration.N)Action)List)Optional)Union)Config)ExitCode) PrintHelp)Parserc,eZdZdZdfd ZddZxZS) HelpActiona}An argparse Action that will raise an exception in order to skip the rest of the argument parsing when --help is passed. This prevents argparse from quitting due to missing required arguments when any are defined, for example by ``pytest_addoption``. This is similar to the way that the builtin argparse --help option is implemented by raising SystemExit. NFcVt||d|d|dS)NTr)option_stringsdestconstdefaultnargshelp)super__init__)selfrrrr __class__s c/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/_pytest/helpconfig.pyrzHelpAction.__init__s@ )      cvt||j|jt|jddrt dS)Nafter_preparseF)setattrrrgetattr_parserr )rparser namespacevalues option_strings r__call__zHelpAction.__call__$s@ 49dj111 6>#3U ; ; O  r)NFN)N)__name__ __module__ __qualname____doc__rr# __classcell__)rs@rr r s[      rr rreturnc z|d}|dddddd|d d td d |dddgdd|ddddd|ddddddd !|d"d#d$dd%&dS)'N debugconfigz --versionz-VcountrversionzoDisplay pytest version and information about plugins. When given twice, also display information about plugins.)actionrrrz-hz--helprz(Show help message and configuration info)r.rrz-pappendpluginsnamezEarly-load given plugin module name or entry point (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.)r.rrmetavarrz --traceconfigz--trace-config store_trueFz)Trace considerations of conftest.py files)r.rrz--debugstore?zpytestdebug.logdebugDEBUG_FILE_NAMEzStore internal tracing debug information in this log file. This file is opened with 'w' and truncated as a result, care advised. Default: pytestdebug.log.)r.rrrr2rz-oz--override-ini override_iniz^Override ini option with "option=value" style, e.g. `-o xfail_strict=True -o cache_dir=cache`.)rr.r)getgroup addoption _addoptionr )rgroups rpytest_addoptionr=,s> OOM * *E OO  D     7         OO 8  OO !$      : rT) hookwrapperc #KdV}|jjrjj}t|dddt jddtttj dtj djjd jjjjtjd |zd fd }|dSdS)Nwzutf-8)encodingzversions pytest-z , python-.z cwd=z args=z z'writing pytest debug information to %s r)ctjdjzjjddS)Nz%wrote pytest debug information to %s )closesysstderrwriter1traceroot setwriter)config debugfile undo_tracingsr unset_tracingz+pytest_cmdline_parse..unset_tracing{sY OO    J  E V W W W L  ' ' - - - LNNNNNr)r)N) get_resultoptionr6openrGpytest __version__joinmapstrrE version_infoosgetcwdinvocation_paramsargsrHrIrJ pluginmanagerenable_tracingrF add_cleanup)outcomepathrNrKrLrMs @@@rpytest_cmdline_parseradsReeG''))F }*}"sW555 """S#"2334444 (---     ##IO444+::<<  CdJKKK         =)))))1**rrKc|jjdkrtjdt jt jt|}|r'|D]&}tj|dz%dSdStjdt jddS)Nz,This is pytest version {}, imported from {}  zpytest ) rPr-rEstdoutrGformatrRrS__file__getpluginversioninfo)rK plugininfolines r showversionrks }q    ; B B"FO     *&11  ." . .   ---- . . . . 96#5999:::::rc|jjdkrt|dS|jjr9|t ||dSdS)Nr)rPr-rkr _do_configureshowhelp_ensure_unconfigure)rKs rpytest_cmdline_mainrpsn }q  Fq  ""$$$q 4rcddl}|jd}|j}||jj||d||j }d}d|z}|jj D]-}|jj |\}} } | d} |td||d| d } |d | zt| } | |d z krI||||||d } | D]}|||d|| z dz z||||z d }|r@||d|ddD]}|||z/||dgd}|D]!\}}|d|dd|"|||d|d|d|jdgD]!}|d|jzd"dS)NrterminalreporterzY[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg|pyproject.toml file found: stringz!help argument cannot be None for z (z):z %sF)initial_indentsubsequent_indentbreak_on_hyphens)ryrczEnvironment variables:))PYTEST_ADDOPTSzExtra command line options)PYTEST_PLUGINSz.Comma-separated plugins to load during startup)PYTEST_DISABLE_PLUGIN_AUTOLOADz"Set to disable plugin auto-loading) PYTEST_DEBUGz1Set to enable debug tracing of pytest's internals z<24z/to see available markers type: pytest --markersz1to see available fixtures type: pytest --fixturesz(shown according to specified file_or_dir or current dir if not specified; fixtures with leading '_' are only shown with the '-v' optionwarningsz warning : T)red)textwrapr\ get_plugin_twrGr optparser format_helprj fullwidth _ininames_inidict TypeErrorlenwrapstatsgetmessage)rKrreportertwcolumns indent_lenindentr1rtyperspecspec_len helplinesrjwrappedvars warningreports rrnrns/OOO#../ABBH BHHV^ % 1 1 3 3444GGIIIGG BGGIIIlGJ : F(++$n5d;dG <D <FFFGG G""$""" $t99 zA~ & & GGIII %"(!& &I"     HHSJ1A56 7 7 7mmD'J*>QVmWWG + ####ABBK++DGGFTM****GGIIIGG $%%%   D (( d &T&&&&&''''GGIIIGGIIIGG =>>>GG ?@@@GG  "++J;;@@   }44$???? Fr)pytest_pluginszlist of plugin names to loadcg}|j}|rg|d|D]O\}}t|dt |}|jd|jd|}|d|zP|S)Nzsetuptools registered plugins:rg-z at r)r\list_plugin_distinfor/rrepr project_namer-)rKlinesriplugindistloccontents rrhrhs E%::<rs 99  !!!!!!######$$$$$$,,,,,,85V55555pT"""**#"*> ; ;4 ; ; ; ;  8E#x-4H+I    G VG G G G G TGG  DI    DIr