选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
ó ×Äabc@`sSdZddlmZmZmZddlZddlZddlZddlZddl m Z ddl m Z ddl mZddlmZdd lmZdd lmZmZd Zdd „Zd e d dƒfd„ƒYZd„Zdefd„ƒYZd„Zd„Zd„Ze e_!d„Z"ej#de$fd„ƒYƒZ%de$fd„ƒYZ&dddgZ'd„Z(d„Z)d „Z*d!„Z+d"e$fd#„ƒYZ,d$„Z-ej#d%e ƒd&e$fd'„ƒYƒZ.ej#d(e$fd)„ƒYƒZ/d*„Z0d+„Z1d,„Z2d-e$fd.„ƒYZ3e,ƒZ4d/„Z5d0„Z6dS(1s? generic mechanism for marking and selecting python functions. i(tabsolute_importtdivisiontprint_functionN(t namedtuple(t attrgetter(tmap(t UsageErrori(tMARK_PARAMETERSET_UNPACKING(tNOTSETt getfslinenotempty_parameter_set_markc`sDt|ƒ‰‡‡fd†}tˆdkr3ˆn|dd|ƒS(Nc`stjˆddƒˆ|ƒS(Nt stackleveli(twarningstwarn(tself(tgettertwarning(s0/usr/lib/python2.7/site-packages/_pytest/mark.pytwarnedstdocs alias for (RtpropertytNone(tnameRR((RRs0/usr/lib/python2.7/site-packages/_pytest/mark.pytaliass t ParameterSetsvalues, marks, idcB`s8eZed„ƒZeed„ƒZed„ƒZRS(cO`sU|jddƒ}t|tƒr-|f}ndd„}||�}||||ƒS(NtmarkscS`s|S(N((tid((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytparam_extract_id&s((tpopt isinstancet MarkDecoratorR(tclstvaluestkwRRR((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytparams    cC`sÏt||ƒr|St|tƒ r6|r6|j|ƒSg}|}xLt|tƒr�|jtt|j|jd |jƒƒƒ|jd}qEW|r£|f}n|r¹tj t ƒn||d|ddƒS(sM :param parameterset: a legacy style parameterset that may or may not be a tuple, and may or may not be wrapped into a mess of mark objects :param legacy_force_tuple: enforce tuple wrapping so single argument tuple values don't get decomposed and break tests iÿÿÿÿRRN( RRR!tappendtMarktmarknametargstkwargsR R RR(Rt parametersettlegacy_force_tupletnewmarkstargval((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt extract_from,s     c C`sæt|ttfƒs^g|jdƒD]}|jƒr%|jƒ^q%}t|ƒdk}nt}g|D]}tj|d|ƒ^qk}~|sÜt |||ƒ}|j tdt ft|ƒd|gddƒƒn||fS(Nt,iR(RRR( RttupletlisttsplittstriptlentFalseRR+tget_empty_parameterset_markR"RR( Rtargnamest argvaluestfunctiontconfigtxt force_tuplet parameterstmark((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt_for_parametrizeMs4%   (t__name__t __module__t classmethodR!R2R+R<(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRs cC`sŒ|jtƒ}|dkr'tj}n-|dkrHtjdtƒ}n t|ƒ‚t|ƒ\}}d||j ||f}|d|ƒS(Nttskiptxfailtruns0got empty parameter set %r, function %s at %s:%dtreason(R@NRA( tgetinitEMPTY_PARAMETERSET_OPTIONRtMARK_GENRARBR2t LookupErrorR R=(R7R4R6trequested_markR;tfstlinenoRD((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR3cs    t MarkerErrorcB`seZdZRS(s*Error in use of a pytest marker/attribute.(R=R>t__doc__(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRLqscO`stj||ŽS(N(RR!(RR ((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR!vsc C`s¥|jdƒ}|jdddddddd d d d ƒ|jd ddddddd dd dƒ|jdddd dƒ|jdddƒ|jtdƒdS(Ntgenerals-ktactiontstoretdesttkeywordtdefaultR@tmetavart EXPRESSIONthelpsSonly run tests which match the given substring expression. An expression is a python evaluatable expression where all names are substring-matched against test names and their parent classes. Example: -k 'test_method or test_other' matches all test functions and classes whose name contains 'test_method' or 'test_other', while -k 'not test_method' matches those that don't contain 'test_method' in their names. Additionally keywords are matched to classes and functions containing extra names in their 'extra_keyword_matches' set, as well as functions which have names assigned directly to them.s-mtmarkexprtMARKEXPRsRonly run tests matching given mark expression. example: -m 'mark1 and not mark2'.s --markerst store_trues4show markers (builtin, plugin and per-project ones).tmarkerssmarkers for test functionstlinelists&default marker for empty parametersets(tgetgroupt _addoptiont addoptiontaddiniRF(tparsertgroup((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytpytest_addoptionzs   cC`sÌddl}|jjrÈ|jƒ|jj|ƒ}xƒ|jdƒD]r}|jddƒ}|d}t|ƒdkr‚|dnd}|j d|dt ƒ|j |ƒ|j ƒqDW|j ƒdSdS( NiRZt:iiR@s@pytest.mark.%s:tbold( t_pytest.configtoptionRZt _do_configureR7tcreate_terminal_writerRER/R1twritetTruetlinet_ensure_unconfigure(R7t_pytestttwRktpartsRtrest((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytpytest_cmdline_main�s    "  cC`s*|jjjƒ}|jj}| r0| r0dS|jdƒrPd|d}nt}|ddkryt}|d }ng}g}x{|D]s}|r¸t||ƒ r¸|j|ƒqŒ|rÇd}n|ròt ||ƒsò|j|ƒqŒqòn|j|ƒqŒW|r&|j j d|ƒ||(ndS(Nt-snot iiÿÿÿÿRctitems( RfRRtlstripRWt startswithR2Rjt matchkeywordR"Rt matchmarkthooktpytest_deselected(RsR7t keywordexprt matchexprt selectuntilt remainingt deselectedtcolitem((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytpytest_collection_modifyitems°s2      t MarkMappingcB`s2eZdZejƒZed„ƒZd„ZRS(sfProvides a local mapping for markers where item access resolves to True if the marker is present. cC`s^tƒ}xH|jƒD]:\}}t|tƒs@t|tƒr|j|ƒqqW||ƒS(N(tsetRsRtMarkInfoRtadd(Rtkeywordst mark_namestkeytvalue((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt from_keywordsÙs  cC`s ||jkS(N(town_mark_names(RR((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt __getitem__ás( R=R>RMtattrtibRŠR?R‰R‹(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR�Òs tKeywordMappingcB`s eZdZd„Zd„ZRS(swProvides a local mapping for keywords. Given a list of names, map any substring of one of these names to True. cC`s ||_dS(N(t_names(Rtnames((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt__init__êscC`s(x!|jD]}||kr tSq WtS(N(R�RjR2(RtsubnameR((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR‹ís (R=R>RMR‘R‹(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRŽås tortandtnotcC`st|itj|jƒƒS(sBTries to match on any marker names, attached to the given colitem.(tevalR�R‰R…(RRW((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRw÷scC`s‚tƒ}ddl}x9|jƒD]+}t||jƒs"|j|jƒq"q"Wx!|jƒD]}|j|ƒq^Wt|dƒr«x$|j j D]}|j|ƒq‘Wnt |ƒ}d|krË||S|j dƒr÷d|dkr÷||d SxG|j ƒD]9}tj|ƒr|tkrtdj|ƒƒ‚qqWyt|i|ƒSWn&tk r}tdj|ƒƒ‚nXdS( s|Tries to match given keyword expression to given collector item. Will match on the name of colitem, including the names of its parents. Only matches names of items which are either a :class:`Class` or a :class:`Function`. Additionally, matches on names in the 'extra_keyword_matches' set of any item, as well as names directly assigned to test functions. iNR6t snot is>Python keyword '{}' not accepted in expressions passed to '-k's#Wrong expression passed to '-k': {}(R‚tpytestt listchainRtInstanceR„RtlistextrakeywordsthasattrR6t__dict__RŽRuR/RRt iskeywordtpython_keywords_allowed_listRtformatR–t SyntaxError(RRzt mapped_namesR˜titemRtmappingtkwd((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRvüs,      cC`s^tj|_|jjr$|t_n|jtƒ}|dkrZtdj t|ƒƒ‚ndS(NRARBR@s2{!s} must be one of skip and xfail, but it is {!r}(RARBNR@( RGt_configt_old_mark_configRftstrictRERFRRR (R7tempty_parameterset((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytpytest_configure%s    cC`st|ddƒt_dS(NR§(tgetattrRRGR¦(R7((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytpytest_unconfigure2st MarkGeneratorcB`s&eZdZdZd„Zd„ZRS(s- Factory for :class:`MarkDecorator` objects - exposed as a ``pytest.mark`` singleton instance. Example:: import pytest @pytest.mark.slowtest def test_function(): pass will set a 'slowtest' :class:`MarkInfo` object on the ``test_function`` object. cC`sT|ddkrtdƒ‚n|jdk r>|j|ƒntt|diƒƒS(Nit_s*Marker name must NOT start with underscore((tAttributeErrorR¦Rt_checkRR#(RR((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt __getattr__Cs cC`sÆy||jkrdSWntk r*nXtƒ|_}x_|jjdƒD]K}|jddƒd}|jƒ}|jddƒd}|j|ƒqNW||jkrÂtd|fƒ‚ndS(NRZRciit(s%r not a registered marker(t_markersR¯R‚R¦RER/trstripR„(RRRRktmarkerR8((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR°Js  N(R=R>RMRR¦R±R°(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR­6s  cC`s%t|dƒo$t|ddƒdkS(Nt__call__R=s(RœR«(tfunc((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt istestfuncZstfrozenR#cB`s5eZejƒZejƒZejƒZd„ZRS(cC`s,t|j|j|jt|j|j�ƒS(N(R#RR%tdictR&(Rtother((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt combined_withes(R=R>RŒR�RR%R&R¼(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR#_s   RcB`sƒeZdZejdejjeƒƒZe dƒZ e dƒZ e dƒZ e d„ƒZd„Zd„Zd„Zd „ZRS( sò A decorator for test functions and test classes. When applied it will create :class:`MarkInfo` objects which may be :ref:`retrieved by hooks as item keywords `. MarkDecorator instances are often created like this:: mark1 = pytest.mark.NAME # simple MarkDecorator mark2 = pytest.mark.NAME(name1=value) # parametrized MarkDecorator and can then be applied as decorators to test functions:: @mark2 def test_function(): pass When a MarkDecorator instance is called it does the following: 1. If called with a single class as its only positional argument and no additional keyword arguments, it attaches itself to the class so it gets applied automatically to all test cases found in that class. 2. If called with a single function as its only positional argument and no additional keyword arguments, it attaches a MarkInfo object to the function, containing all the arguments already stored internally in the MarkDecorator. 3. When called in any other case, it performs a 'fake construction' call, i.e. it returns a new MarkDecorator instance with the original MarkDecorator's content updated with the arguments passed to this call. Note: The rules above prevent MarkDecorator objects from storing only a single function or class reference as their positional argument with no additional keyword or positional arguments. t validators mark.names mark.argss mark.kwargscC`s|jS(N(R(R((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR$•scC`s#t|tƒr|j|jkStS(N(RRR;R2(RR»((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt__eq__™scC`sd|jfS(Ns(R;(R((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt__repr__œscO`s.t|j||ƒ}|j|jj|ƒƒS(s¯ return a MarkDecorator with extra arguments added unlike call this can be used even if the sole argument is a callable/class :return: MarkDecorator (R#Rt __class__R;R¼(RR%R&R;((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt with_argsŸscO`sš|rŠ| rŠ|d}tj|ƒ}t|ƒdkrŠt|ƒsJ|rŠ|rct||jƒn t||jƒt||jƒ|Sn|j||ŽS(sŠ if passed a single callable argument: decorate it with mark info. otherwise add *args/**kwargs in-place to mark information. ii(tinspecttisclassR1R¸t store_markR;tstore_legacy_markinfoRÁ(RR%R&R·tis_class((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR¶ªs  $(R=R>RMRŒR�t validatorst instance_ofR#R;RRR%R&RR$R¾R¿RÁR¶(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRls!      cC`sPt|dgƒ}t|tƒs-|g}ng|D]}t|d|ƒ^q4S(s? obtain the unpacked marks that are stored on a object t pytestmarkR;(R«RR.(tobjt mark_listR;((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytget_unpacked_marksºs  cC`st|ƒ|g|_dS(sfstore a Mark on a object this is used to implement the Mark declarations/decorators correctly N(RÌRÉ(RÊR;((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRÄÈscC`s~t|tƒs*tdjd|ƒƒ‚nt||jdƒ}|dkrmt|ƒ}t||j|ƒn |j |ƒdS(sFcreate the legacy MarkInfo objects and put them onto the function sgot {mark!r} instead of a MarkR;N( RR#t TypeErrorR R«RRRƒtsetattrtadd_mark(R·R;tholder((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRÅÒs  RƒcB`sVeZdZd„ZedƒZedƒZedƒZd„Zd„Z d„Z RS(s= Marking object created by :class:`MarkDecorator` instances. cC`s||_|g|_dS(N(tcombinedt_marks(RR;((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR‘âs s combined.names combined.argsscombined.kwargscC`sdj|jƒS(Ns(R RÑ(R((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyR¿ëscC`s)|jj|ƒ|jj|ƒ|_dS(s0 add a MarkInfo with the given args and kwargs. N(RÒR"RÑR¼(RR;((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRÏîscC`stt|jƒS(s9 yield MarkInfo objects each relating to a marking-call. (RRƒRÒ(R((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt__iter__ós( R=R>RMR‘RRR%R&R¿RÏRÓ(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyRƒßs      cC`sMyt||jƒ}Wntk r*tSX|j|jkoL|j|jkS(s¯ Returns True if :func: is already marked with :mark:, False otherwise. This can happen if marker is applied to class and the test file is invoked more than once. (R«RR¯R2R%R&(R·R;t func_mark((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyt_markedûs  cC`sQxJ||fD]<}x3t|ƒD]%}t||ƒs t||ƒq q Wq WdS(sù this function transfers class level markers and module level markers into function level markinfo objects this is the main reason why marks are so broken the resolution will involve phasing out function level MarkInfo objects N(RÌRÕRÅ(tfuncobjRtmodRÊR;((s0/usr/lib/python2.7/site-packages/_pytest/mark.pyttransfer_markerss (7RMt __future__RRRRÂRRR RŒt collectionsRtoperatorRt six.movesRReRt deprecatedRtcompatRR RFRRRR3t ExceptionRLR!RbRqRjttryfirstR€tstobjectR�RŽRŸRwRvRªR¬R­R¸R#RRÌRÄRÅRƒRGRÕRØ(((s0/usr/lib/python2.7/site-packages/_pytest/mark.pytsT     F   #   "   ) $  M