GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //usr/lib/python2.7/site-packages/_pytest/helpconfig.pyo
�
��abc@`s�dZddlmZmZmZddlZddlZddlmZddl	Z	ddl
Z
ddlmZdefd��YZ
d�Zejd	e�d
��Zd�Zd�ZdgZd�Zd�ZdS(s6 version info, help messages, tracing configuration.  i(tabsolute_importtdivisiontprint_functionN(t	PrintHelp(tActiont
HelpActioncB`s,eZdZdedd�Zdd�ZRS(s�This is 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.
    c
C`s;tt|�jd|d|dtd|ddd|�dS(Ntoption_stringstdesttconsttdefaulttnargsithelp(tsuperRt__init__tTrue(tselfRRR	R((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyR
scC`s8t||j|j�t|jdt�r4t�ndS(Ntafter_preparse(tsetattrRRtgetattrt_parsertFalseR(Rtparsert	namespacetvaluest
option_string((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyt__call__"sN(t__name__t
__module__t__doc__tNoneRR
R(((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyRs
	cC`s�|jd�}|jddddd�|jdddtd	ddd
�|jdddd	d
dgdddd�|jdddddtdd�f|jdddd	ddtdd�|jddd	ddddd�dS(Ntdebugconfigs	--versiontactiont
store_trueRs2display pytest lib version and import information.s-hs--helpRs(show help message and configuration infos-ptappendtpluginsR	tmetavartnamesnearly-load given plugin (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.s
--traceconfigs--trace-configs*trace considerations of conftest.py files.s--debugtdebugs>store internal tracing debug information in 'pytestdebug.log'.s-os--override-initoverride_inis^override ini option with "option=value" style, e.g. `-o xfail_strict=True -o cache_dir=cache`.(tgetgroupt	addoptiont
_addoptionRR(Rtgroup((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_addoption*s$
thookwrapperc#`s�dV}|j���jjr�tjjd�}t|d���jdtj	t
j	djtt
tj��tj��jf��jjj�j��jj��tjjd|����fd�}�j|�ndS(Nspytestdebug.logtws5versions pytest-%s, py-%s, python-%s
cwd=%s
args=%s

t.s&writing pytestdebug information to %s
c`s?�j�tjjd�j��jjjd���dS(Ns$wrote pytestdebug information to %s
(	tclosetsyststderrtwriteR$ttracetroott	setwriterR((tconfigt	debugfiletundo_tracing(s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyt
unset_tracingQs

(t
get_resulttoptionR%tostpathtabspathtopenR2tpytestt__version__tpytjointmaptstrR0tversion_infotgetcwdt	_origargsR3R4R5t
pluginmanagertenable_tracingR1tadd_cleanup(toutcomeR=R9((R6R7R8s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_cmdline_parseAs	cC`s�|jjr|tjjtj�}tjj	dtj
|f�t|�}|rxx%|D]}tjj	|d�qWWndS|jjr�|j
�t|�|j�dSdS(Ns,This is pytest version %s, imported from %s
s
i(R;tversionRBR=tlocalR@t__file__R0R1R2RAtgetpluginversioninfoRt
_do_configuretshowhelpt_ensure_unconfigure(R6tpt
plugininfotline((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_cmdline_main[s



cC`s�|jjd�}|j}|j|jjj��|j�|j�|jd�|j�xv|jjD]h}|jj	|\}}}|dkr�d}nd||f}d||f}|j||j �qlW|j�|jd�dddg}	x+|	D]#\}}|jd||f�qW|j�|j�|jd
�|jd�|jd�x7|jj
dg�D] }
|jd|
jdt�q}WdS(NtterminalreportersJ[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg file found:tstrings%s (%s)s
  %-24s %ssenvironment variables:tPYTEST_ADDOPTSsextra command line optionstPYTEST_PLUGINSs.comma-separated plugins to load during startuptPYTEST_DEBUGs1set to enable debug tracing of pytest's internalss/to see available markers type: pytest --markerss1to see available fixtures type: pytest --fixturessJ(shown according to specified file_or_dir or current dir if not specified)twarningss
warning : tred(R[sextra command line options(R\s.comma-separated plugins to load during startup(R]s1set to enable debug tracing of pytest's internals(RIt
get_plugint_twR2Rt	optparsertformat_helpRWt	_ininamest_inidictRt	fullwidthtstatstgettmessageR(R6treporterttwR$RttypeR	tspecRWtvarst
warningreport((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyRSls:	



	

	




tpytest_pluginsslist of plugin names to loadcC`s�g}|jj�}|r�|jd�xY|D]N\}}t|dt|��}d|j|j|f}|jd|�q/Wn|S(Nssetuptools registered plugins:RPs%s-%s at %ss  (RItlist_plugin_distinfoR!Rtreprtproject_nameRN(R6tlinesRVtplugintdisttloctcontent((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyRQ�s
cC`s�g}|jjs|jjr`|jdtjtjf�t|�}|r`|j|�q`n|jjr�|jd�|j	j
�}xU|D]J\}}t|d�r�|j}nt
|�}|jd||f�q�Wn|S(Nsusing: pytest-%s pylib-%ssactive plugins:RPs
    %-20s: %s(R;R%ttraceconfigR!R@RARBRQtextendRItlist_name_pluginthasattrRPRr(R6RttverinfotitemsR$Rutr((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_report_header�s 	
(Rpslist of plugin names to load(Rt
__future__RRRRBR@t_pytest.configRR<R0targparseRRR+thookimplRRMRXRStconftest_optionsRQR�(((s6/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyt<module>s			)