Your IP : 216.73.216.196


Current Path : /opt/alt/python27/lib/python2.7/site-packages/_pytest/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pyo

�
�mYc@`s�dZddlmZmZmZddlZddlZddlZddlZd�Z	ej
de�d��Zd�Z
d�Zd
gZd�Zd�ZdS(s6 version info, help messages, tracing configuration.  i(tabsolute_importtdivisiontprint_functionNcC`s�|jd�}|jddddd�|jddddd	ddd
�|jdddd	d
dgdddd�|jdddddtdd�f|jdddd	ddtdd�|jddddd	ddddd�dS(Ntdebugconfigs	--versiontactiont
store_truethelps2display pytest lib version and import information.s-hs--helptdests(show help message and configuration infos-ptappendtpluginstdefaulttmetavartnamesnearly-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-initnargst*toverride_inisLoverride config option with option=value style, e.g. `-o xfail_strict=True`.(tgetgroupt	addoptiont
_addoptiontFalse(tparsertgroup((sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_addoptions$
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	setwritertNone((tconfigt	debugfiletundo_tracing(sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pyt
unset_tracing/s

(t
get_resulttoptionR
tostpathtabspathtopenRtpytestt__version__tpytjointmaptstrRtversion_infotgetcwdt	_origargsRR R!t
pluginmanagertenable_tracingRtadd_cleanup(toutcomeR*R&((R#R$R%sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_cmdline_parses	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(tversionR/R*tlocalR-t__file__RRRR.tgetpluginversioninfoRt
_do_configuretshowhelpt_ensure_unconfigure(R#tpt
plugininfotline((sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_cmdline_main8s



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(RHsextra command line options(RIs.comma-separated plugins to load during startup(RJs1set to enable debug tracing of pytest's internals(R6t
get_plugint_twRt_parsert	optparsertformat_helpRDt	_ininamest_inidictR"t	fullwidthtstatstgettmessagetTrue(R#treporterttwRRttypeR
tspecRDtvarst
warningreport((sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pyR@Hs:	



	

	




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:R=s%s-%s at %ss  (R6tlist_plugin_distinfoRtgetattrtreprtproject_nameR;(R#tlinesRCtplugintdisttloctcontent((sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pyR>ts
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:R=s
    %-20s: %s(R(R
ttraceconfigRR-R.R/R>textendR6tlist_name_pluginthasattrR=Rb(R#RdtverinfotitemsRRetr((sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pytpytest_report_headers 	
(R_slist of plugin names to load(t__doc__t
__future__RRRR/R-R)RRthookimplRXR:RER@tconftest_optionsR>Rp(((sC/opt/alt/python27/lib/python2.7/site-packages/_pytest/helpconfig.pyt<module>s			)