grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026+ çãï†íËÇã óv€RtRt.RNRNRNRNRNRNRNR NR NR NR NR NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"Nt^R#It^R#It^R#It^R#It^R#It^R#It^R#I t ^R#I t ^R#I t ^R#I t ^R#I t ^R$IHtHt^R%IHt^R#It^R&IHtHtR't!R(R)]!R)R*44t/tR+t]!R4t]!R4t]!R4t]!R4t]!R4t]!R4t]],],],],],t ]!R 4t!]!R 4t"]!R 4t#]!R 4t$]!R4t%]!]",]#,]$,]%,t&R,t'R-t(R.t)RjR/lt*R0t+R1t,RkR2lt-R3t.!R4R5]4t/R6t0R7t1R8t2!R9R:] Pf4t4R;t5!R<R4t6!R=R4t7!R>R4t8!R?R4t9!R@R4t:RARBlt;!RCR4t<!RDR]=4t>!RER]=4t?!RFR]:4t@R#sARlRHltBR'R#R#R#R#R'^R#RG]8!4R#3 RIltCRmRJltD^sERKtF!RLRM] PŽ4tH!RNRO]H4tI!RPRQ] P”4tKRnRRltL!RSRT]H4tMR'R#R#]8!4R#3RUltNRVtORWtPRXtQRoRYltRRoRZltSRpR[ltT!R\R]4tUR]]UR^R_R`RaRbRcRdReRfRg/tVRhtW]XRi8Xd] P²!]W!44R##R##)qaÅModule doctest -- a framework for running examples in docstrings. In simplest use, end each module M to be tested with: def _test(): import doctest doctest.testmod() if __name__ == "__main__": _test() Then running the module as a script will cause the examples in the docstrings to get executed and verified: python M.py This won't display anything unless an example fails, in which case the failing example(s) and the cause(s) of the failure(s) are printed to stdout (why not stderr? because stderr is a lame hack <0.2 wink>), and the final line of output is "Test failed.". Run it with the -v switch instead: python M.py -v and a detailed report of all examples tried is printed to stdout, along with assorted summaries at the end. You can force verbose mode by passing "verbose=True" to testmod, or prohibit it by passing "verbose=False". In either of those cases, sys.argv is not examined by testmod. There are a variety of other ways to run doctests, including integration with the unittest framework, and support for running non-Python text files containing doctests. There are also many ways to override parts of doctest's default behaviors. See the Library Reference Manual for details. zreStructuredText enÚregister_optionflagÚDONT_ACCEPT_TRUE_FOR_1ÚDONT_ACCEPT_BLANKLINEÚNORMALIZE_WHITESPACEÚELLIPSISÚSKIPÚIGNORE_EXCEPTION_DETAILÚCOMPARISON_FLAGSÚ REPORT_UDIFFÚ REPORT_CDIFFÚ REPORT_NDIFFÚREPORT_ONLY_FIRST_FAILUREÚREPORTING_FLAGSÚ FAIL_FASTÚExampleÚDocTestÚ DocTestParserÚ DocTestFinderÚ DocTestRunnerÚ OutputCheckerÚDocTestFailureÚUnexpectedExceptionÚ DebugRunnerÚtestmodÚtestfileÚrun_docstring_examplesÚ DocTestSuiteÚ DocFileSuiteÚset_unittest_reportflagsÚscript_from_examplesÚ testsourceÚ debug_srcÚdebugN)ÚStringIOÚIncrementalNewlineDecoder)Ú namedtuple)Ú ANSIColorsÚ can_colorizeTcóFaa€]tRt^rtoR^/V3RlltV3RltRtVtV;t#)Ú TestResultsÚskippedcó4<€\SV`WV4pW4nV#©N)ÚsuperÚ__new__r*)ÚclsÚfailedÚ attemptedr*ÚresultsÚ __class__s&&&$ €Ú./opt/alt/python314/lib64/python3.14/doctest.pyr.ÚTestResults.__new__ssø€Ü‘'‘/ #¨yÓ9ˆØ!ŒØˆócó˜<€VP'd+RVP RVP RVP R2#\SV`4#)zTestResults(failed=z , attempted=z , skipped=Ú))r*r0r1r-Ú__repr__)Úselfr3s&€r4r9ÚTestResults.__repr__xsPø€Ø �<�<ˆ<Ø)¨$¯+©+¨ð7!Ø!%§¡Ð 0ð1Ø#Ÿ|™|˜n¨Að/ð 0ô ‘7Ñ#Ó%Ð %r6©) Ú__name__Ú __module__Ú __qualname__Ú__firstlineno__r.r9Ú__static_attributes__Ú__classdictcell__Ú __classcell__)r3Ú __classdict__s@@r4r)r)rsù‡€ð°1÷÷ &õ&r6r)zfailed attemptedcóV€\PV^\\4,4#)é)ÚOPTIONFLAGS_BY_NAMEÚ setdefaultÚlen)Únames&r4rr™s €ä × )Ñ )¨$°´SÔ9LÓ5MÕ0MÓ NÐNr6z z...có¬€^p\PF=pVPVR4pV\\V4JgK+WP,pK? V#)zy Return the compiler-flags associated with the future features that have been imported into the given namespace (globs). N)Ú __future__Úall_feature_namesÚgetÚgetattrÚ compiler_flag)ÚglobsÚflagsÚfnameÚfeatures& r4Ú_extract_future_flagsrUÌsM€ð €EÜ×-Ô-ˆØ—)‘)˜E 4Ó(ˆØ ”gœj¨%Ó0Õ 0Ø ×*Ñ*Õ *ŠEñ.ð €Lr6cóÞ€\P!V4'dV#\V\4'd \ V\ 4\ 4R.4#Vf.\P\P!V4,#\R4h \d@\P\P!T4PR,,u#i;i \dR#i;i)ag Return the module specified by `module`. In particular: - If `module` is a module, then return module. - If `module` is a string, then import and return the module with that name. - If `module` is None, then return the calling module. The calling module is assumed to be the module of the stack frame at the given depth in the call stack. Ú*Nr=z"Expected a module, string, or None)ÚinspectÚismoduleÚ isinstanceÚstrÚ __import__ÚglobalsÚlocalsÚsysÚmodulesÚ_getframemodulenameÚAttributeErrorÚ _getframeÚ f_globalsÚKeyErrorÚ TypeError)ÚmoduleÚdepths&&r4Ú_normalize_moduleriØs½€ô×Ò˜×ÒØˆ Ü �FœC× Ò Ü˜&¤'£)¬V«X¸°uÓ=Ð=Ø Šð ð OÜ—{‘{¤3×#:Ò#:¸5Ó#AÕBÐBô Ð<Ó=Ð=øô "ô OÜ—{‘{¤3§=¢=°Ó#7×#AÑ#AÀ*Õ#MÕNÒNð Oûäô Ú ð ús+Á*BÂACÃCÃCÃCà C,Ã+C,có:€\RR4PVR4#)NT)r$Údecode)Údatas&r4Ú_newline_convertrmñs€ä $ T¨4Ó 0× 7Ñ 7¸¸dÓ CÐCr6có¾€V'd�\V^4p\W4p\VRR4;pfVPPp\ VR4'd0VPV4pVPV4p\V4V3#\WR7;_uu_4pVP4V3uuRRR4# \ dLi;i +'giR#;i)éÚ __loader__NÚget_data)Úencoding) riÚ_module_relative_pathrOÚ__spec__ÚloaderrbÚhasattrrqrkrmÚopenÚread)ÚfilenameÚpackageÚmodule_relativerrruÚ file_contentsÚfs&&&& r4Ú_load_testfiler~õsÇ€ßÜ# G¨QÓ/ˆÜ(¨Ó;ˆÜ˜g |°TÓ:Ð :ˆFÒ Cð Ø ×)Ñ)×0Ñ0�ô �6˜:× &Ò &Ø"ŸO™O¨HÓ5ˆMØ)×0Ñ0°Ó:ˆMô$ MÓ2°HÐ<Ð <Ü ˆh× *Õ *¨aØ�v‰v‹x˜Ð!÷ +Ò *øô"ô Ùð ú÷ +× *Ð *ús²B:ÂC Â: CÃCà C có@€\P!RVR,V4#)zr Add the given number of space characters to the beginning of every non-blank line in `s`, and return the result. z (?m)^(?!$)Ú )ÚreÚsub)ÚsÚindents&&r4Ú_indentr…s€ô �6Š6�,  s¥ ¨AÓ .Ð.r6cóp€\4pVwr#p\P!W#WAR7VP4#)zn Return a string containing a traceback message for the given exc_info tuple (as returned by sys.exc_info()). )Úfile)r#Ú tracebackÚprint_exceptionÚgetvalue)Úexc_infoÚexcoutÚexc_typeÚexc_valÚexc_tbs& r4Ú_exception_tracebackr�s2€ô ‹Z€FØ (Ñ€H�vÜ ×Ò˜h°ÕEØ �?‰?Ó Ðr6có0a€]tRtRtoRtRRltRtVtR#)Ú _SpoofOuticó‚€\P!V4pV'd!VPR4'g VR, pV#)Ú )r#rŠÚendswith)r:Úresults& r4rŠÚ_SpoofOut.getvalues3€Ü×"Ò" 4Ó(ˆ÷ ˜&Ÿ/™/¨$×/Ò/Ø �d�NˆF؈ r6NcóT€VPV4\P!V4R#r,)Úseekr#Útruncate)r:Úsizes&&r4ršÚ_SpoofOut.truncate%s€Ø � ‰ �$ŒÜ×Ò˜$Ör6r<r,)r=r>r?r@rŠršrArB©rDs@r4r’r’sø‡€ò÷ ò r6r’cóÖ€\V9dW8H#VP\4p^\V4rCV^,pV'd)VPV4'd\V4pV^MR#VR,pV'd0VP V4'dV\V4,pVRMR#W48”dR#VF1pVP WSV4pV^8dR#V\V4, pK3 R#)zO Essentially the only subtle case: >>> _ellipsis_match('aa...aa', 'aaa') False FTéÿÿÿÿ)ÚELLIPSIS_MARKERÚsplitrIÚ startswithr•Úfind)ÚwantÚgotÚwsÚstartposÚendposÚws&& r4Ú_ellipsis_matchrª*sÖ€ô ˜dÔ"؉{Ðð �‰”OÓ $€Bðœ#˜c›(ˆfØ ˆ1�€Aߨ �>‰>˜!× Ò Ü˜1“vˆHØ�1‘áØ ˆ2�€Aߨ �<‰<˜�?Š?Ø ”c˜!“fÕ ˆFØ�2‘áàÔñó ˆð—8‘8˜A¨Ó0ˆØ �aŒ<ÚØ”C˜“FÕŠññ r6cóH€VP4pV'd RV,#R#)z)Return a commented form of the given linez# Ú#)Úrstrip)Úlines&r4Ú _comment_liner¯[s€à �;‰;‹=€Dß Ø�D�yÐár6cóÔ€^\V4r!VPR4pV^8¼dTpVPR^V4pV^8¼dTpVPR^V4pV^8¼d V^,pWV#)ér”Ú:Ú.)rIr£Úrfind)ÚmsgÚstartÚendÚis& r4Ú_strip_exception_detailsr¹csr€ð”C˜“Hˆ3à �‰�‹€A؈A„v؈à �‰��a˜Ó€A؈A„v؈à � ‰ �#�q˜#Ó€A؈A„vØ�!•ˆØ �cˆ?Ðr6cóHa€]tRtRtoRtRtR RR/RlltRtRtR t Vt R#) Ú_OutputRedirectingPdbi}z° A specialized version of the python debugger that redirects stdout to a given stream when interacting with the user. Stdout is *not* redirected when traced code is executed. cóp€WnRVn\PP WRR7^VnR#)FT)ÚstdoutÚnosigintN)Ú_OutputRedirectingPdb__outÚ$_OutputRedirectingPdb__debugger_usedÚpdbÚPdbÚ__init__Ú use_rawinput)r:Úouts&&r4rÃÚ_OutputRedirectingPdb.__init__ƒs.€ØŒ Ø$ˆÔä �‰×ј°DÐÔ9àˆÖr6NÚcommandscóœ€RVnVf \P!4Pp\P P WVR7R#)TN)rÇ)rÀr_rcÚf_backrÁrÂÚ set_trace)r:ÚframerÇs&&$r4rÊÚ_OutputRedirectingPdb.set_trace‹s7€Ø#ˆÔØ Š=Ü—M’M“O×*Ñ*ˆEÜ �‰×ј$°ÐÖ9r6cól€VP'd"\PPV4R#R#r,)rÀrÁrÂÚ set_continue©r:s&r4rÎÚ"_OutputRedirectingPdb.set_continue‘s'€ð × × Ð Ü �G‰G× Ñ  Ö &ñ r6cóÈ€\PpVP\n\PP !V.VO5!V\n# T\ni;ir,)r_r½r¿rÁrÂÚtrace_dispatch)r:ÚargsÚ save_stdouts&* r4rÒÚ$_OutputRedirectingPdb.trace_dispatch—sA€ä—j‘jˆ Ø—Z‘ZŒŒ ð %Ü—7‘7×)Ò)¨$Ð6°Ó6à$ŒC�Jø˜ŒC�Jús §!AÁ A!)Ú__debugger_usedÚ__outrÄr,) r=r>r?r@Ú__doc__rÃrÊrÎrÒrArBr�s@r4r»r»}s*ø‡€ñò ñ:°õ:ò '÷ %ð%r6r»có€\P!V4'g\RV,4hVPR4'd \ R4h\ P P!VPR4!p\VR4'd3\ P PVP4^,pEM!VPR8Xdˆ\\P4^8”dY\P^,R8wd=\ P P\P^,4^,pMš\ PpM‰\VR4'd\VP FKp\ P PW14p\ P P#V4'gKIVu# \ RVP,4h\ P PW!4#)zExpected a module: %rÚ/z1Module-relative files may not have absolute pathsÚ__file__Ú__main__ÚÚ__path__zBCan't resolve paths relative to the module %r (it has no __file__))rXrYrfr¢Ú ValueErrorÚosÚpathÚjoinr¡rvrÛr=rIr_ÚargvÚcurdirrÞÚexists)rgÚ test_pathÚbasedirÚ directoryÚfullpaths&& r4rsrs¢sT€Ü × Ò ˜F× #Ò #ÜÐ/°&Õ8Ó9Ð9Ø×јC× Ò ÜÐLÓMÐMô—‘— ’ ˜yŸ™¨sÓ3Ñ5€Iôˆv�z×"Ò"ä—'‘'—-‘- §¡Ó0°Õ3ŠØ �‰˜JÔ &ä Œs�x‰x‹=˜Œ?œsŸx™x¨�{¨bÔ0Ü—g‘g—m‘m¤C§H¡H¨Q¥KÓ0°Õ3‰Gä—i‘i‰Gä �6˜:× &Ò &Ø#Ÿ_œ_� ÜŸ7™7Ÿ<™<¨ Ó=�Ü—7‘7—>‘> (×+Ô+Ø#’Oñ-ô ð3à!Ÿ?™?õ+ó,ð ,ô �7‰7�<‰<˜Ó +Ð+r6có:a€]tRtRtoRtRRltRtRtRtVt R#) riÐa A single doctest example, consisting of source code and expected output. `Example` defines the following attributes: - source: A single Python statement, always ending with a newline. The constructor adds a newline if needed. - want: The expected output from running the source code (either from stdout, or a traceback in case of exception). `want` ends with a newline unless it's empty, in which case it's an empty string. The constructor adds a newline if needed. - exc_msg: The exception message generated by the example, if the example is expected to generate an exception; or `None` if it is not expected to generate an exception. This exception message is compared against the return value of `traceback.format_exception_only()`. `exc_msg` ends with a newline unless it's `None`. The constructor adds a newline if needed. - lineno: The line number within the DocTest string containing this Example where the Example begins. This line number is zero-based, with respect to the beginning of the DocTest. - indent: The example's indentation in the DocTest string. I.e., the number of space characters that precede the example's first prompt. - options: A dictionary mapping from option flags to True or False, which is used to override default options for this example. Any option flags not contained in this dictionary are left at their default value (as specified by the DocTestRunner's optionflags). By default, no options are set. Ncó2€VPR4'g VR, pV'd!VPR4'g VR, pVe!VPR4'g VR, pWnW nW@nWPnVf/pW`nW0nR#)r”N)r•Úsourcer¤Úlinenor„ÚoptionsÚexc_msg)r:rìr¤rïrír„rîs&&&&&&&r4rÃÚExample.__init__ós|€ð�‰˜t×$Ò$Ø �d�NˆFß ˜Ÿ ™  d×+Ò+Ø �D�LˆDØ Ò  w×'7Ñ'7¸×'=Ò'=Ø �t�OˆGàŒ ØŒ ØŒ ØŒ Ø Š? b˜GØŒ ØŽ r6cóº€\V4\V4Jd\#VPVP8H;'džVPVP8H;'d}VPVP8H;'d\VP VP 8H;'d;VP VP 8H;'dVPVP8H#r,)ÚtypeÚNotImplementedrìr¤rír„rîrï©r:Úothers&&r4Ú__eq__ÚExample.__eq__sµ€Ü �‹:œT %›[Ó (Ü!Ð !à�{‰{˜eŸl™lÑ*÷-ð-Ø�y‰y˜EŸJ™JÑ&÷-ð-à�{‰{˜eŸl™lÑ*÷-ð-ð�{‰{˜eŸl™lÑ*÷-ð-ð�|‰|˜uŸ}™}Ñ,÷ -ð-ð �|‰|˜uŸ}™}Ñ,ð  -r6có†€\VPVPVPVPVP 34#r,)Úhashrìr¤rír„rïrÏs&r4Ú__hash__ÚExample.__hash__s3€Ü�T—[‘[ $§)¡)¨T¯[©[¸$¿+¹+Ø—\‘\ð#ó$ð $r6)rïr„rírîrìr¤)Nr±r±N) r=r>r?r@rØrÃrörúrArBr�s@r4rrÐsø‡€ñ!ôDò$ -÷$ð$r6cóBa€]tRtRtoRtRtRtRtRtRt Rt Vt R #) ria% A collection of doctest examples that should be run in a single namespace. Each `DocTest` defines the following attributes: - examples: the list of examples. - globs: The namespace (aka globals) that the examples should be run in. - name: A name identifying the DocTest (typically, the name of the object whose docstring this DocTest was extracted from). - filename: The name of the file that this DocTest was extracted from, or `None` if the filename is unknown. - lineno: The line number within filename where this DocTest begins, or `None` if the line number is unavailable. This line number is zero-based, with respect to the beginning of the file. - docstring: The string that the examples were extracted from, or `None` if the string is unavailable. c ól€WnW`nVP4VnW0nW@nWPnR#)zt Create a new DocTest containing the given examples. The DocTest's globals are initialized with a copy of `globs`. N)ÚexamplesÚ docstringÚcopyrQrJryrí)r:rþrQrJryrírÿs&&&&&&&r4rÃÚDocTest.__init__,s*€ð!Œ Ø"ŒØ—Z‘Z“\ˆŒ ØŒ Ø Œ ØŽ r6c ó@€\VP4^8XdRpM9\VP4^8XdRpMR\VP4,pRVPP: RVP: RVP : RVP : RV: R 2 #) r±z no examplesz 1 examplez %d examplesÚ)rIrþr3r=rJryrí)r:rþs& r4r9ÚDocTest.__repr__:sp€Ü ˆt�}‰}Ó  Ô "Ø$‰HÜ �—‘Ó  1Ô $Ø"‰Hà$¤s¨4¯=©=Ó'9Õ9ˆHøà—‘×(Ô(Ø—”˜DŸMœM¨4¯;¬;»ðBð Cr6cóº€\V4\V4Jd\#VPVP8H;'džVPVP8H;'d}VPVP8H;'d\VP VP 8H;'d;VP VP 8H;'dVPVP8H#r,)ròrórþrÿrQrJryrírôs&&r4röÚDocTest.__eq__Esµ€Ü �‹:œT %›[Ó (Ü!Ð !à�}‰} §¡Ñ.÷+ð+Ø�~‰~ §¡Ñ0÷+ð+à�z‰z˜UŸ[™[Ñ(÷+ð+ð�y‰y˜EŸJ™JÑ&÷+ð+ð�}‰} §¡Ñ.÷ +ð+ð �{‰{˜eŸl™lÑ*ð  +r6cóp€\VPVPVPVP34#r,)rùrÿrJryrírÏs&r4rúÚDocTest.__hash__Ps&€Ü�T—^‘^ T§Y¡Y°· ± ¸t¿{¹{ÐKÓLÐLr6có8€\V\4'g\#VPe VPMRpVPe VPMRpVPVP V\ V43VPVP V\ V438#)NrŸ)rZrrórírJryÚid)r:rõÚself_lnoÚ other_lnos&& r4Ú__lt__ÚDocTest.__lt__Tsy€Ü˜%¤×)Ò)Ü!Ð !Ø"&§+¡+Ò"9�4—;’;¸rˆØ$)§L¡LÒ$<�E—L’LÀ"ˆ Ø—‘˜DŸM™M¨8´R¸³XÐ>à—‘˜UŸ^™^¨Y¼¸5» ÐBñCð Dr6)rÿrþryrQrírJN) r=r>r?r@rØrÃr9rörúrrArBr�s@r4rrs,ø‡€ñò. ò Cò +òM÷DðDr6cóâa€]tRtRtoRt]P !R]P]P,4t ]P !R]P]P,]P,4t ]P !R4Pt RRltRtRRltR t]P !R ]P4tR t]P !R ]P4tR tRtRtRtVtR#)riaz< A class used to parse strings containing doctest examples. aú # Source consists of a PS1 line followed by zero or more PS2 lines. (?P (?:^(?P [ ]*) >>> .*) # PS1 line (?:\n [ ]* \.\.\. .*)*) # PS2 lines \n? # Want consists of any non-blank lines that do not start with PS1. (?P (?:(?![ ]*$) # Not a blank line (?![ ]*>>>) # Not a line starting with PS1 .+$\n? # But any other line )*) aß # Grab the traceback header. Different versions of Python have # said different things on the first traceback line. ^(?P Traceback\ \( (?: most\ recent\ call\ last | innermost\ last ) \) : ) \s* $ # toss trailing whitespace on the header. (?P .*?) # don't blink: absorb stuff until... ^ (?P \w+ .*) # a line *starts* with alphanum. z ^[ ]*(#.*)?$c ó$€VP4pVPV4pV^8”d3RPVPR4Uu.uFqDVRNK up4p.p^^rvVPP V4FùpVP WVP44WqPRWhP44, pVPW‚V4wršr¼VPV 4'g?VP \W›V VV\VPR44,V R74WqPRVP4VP44, pVP4pKû VP WR4V#uupi)a  Divide the given string into examples and intervening text, and return them as a list of alternating Examples and strings. Line numbers for the Examples are 0-based. The optional argument `name` is a name identifying this string, and is only used for error messages. r”Nr„)rír„rî)Ú expandtabsÚ _min_indentrâr¡Ú _EXAMPLE_REÚfinditerÚappendr¶ÚcountÚ_parse_exampleÚ_IS_BLANK_OR_COMMENTrrIÚgroupr·) r:ÚstringrJÚ min_indentÚlÚoutputÚcharnoríÚmrìrîr¤rïs &&& r4ÚparseÚDocTestParser.parse‘sX€ð×"Ñ"Ó$ˆà×%Ñ% fÓ-ˆ Ø ˜Œ>Ø—Y‘Y¸¿ ¹ ÀTÔ8JÓKÑ8J°1 * +£Ñ8JÑKÓLˆFàˆØ˜A�à×!Ñ!×*Ñ*¨6Ö2ˆAà �M‰M˜&¨¯©« Ð2Ô 3à —l‘l 4¨·±³Ó;Õ ;ˆFð×(Ñ(¨°&Ó9ñ -ˆV˜dð×,Ñ,¨V×4Ò4Ø— ‘ œw v°WØ+1Ø+5´c¸!¿'¹'À(Ó:KÓ6LÕ+LØ,3ô 5ô7ð —l‘l 4¨¯©«°A·E±E³GÓ<Õ <ˆFà—U‘U“WŠFñ#3ð& � ‰ �f˜W�oÔ&؈ ùò3 LsÁ F c ó<€\VPW4VW4WQ4#)zò Extract all doctest examples from the given string, and collect them into a `DocTest` object. `globs`, `name`, `filename`, and `lineno` are attributes for the new `DocTest` object. See the documentation for `DocTest` for more information. )rÚ get_examples)r:rrQrJryrís&&&&&&r4Ú get_doctestÚDocTestParser.get_doctest¸s%€ô�t×(Ñ(¨Ó6¸Ø vó7ð 7r6c ó~€VPW4Uu.uFp\V\4'gKVNK up#uupi)a‘ Extract all doctest examples from the given string, and return them as a list of `Example` objects. Line numbers are 0-based, because it's most common in doctests that nothing interesting appears on the same line as opening triple-quote, and so the first interesting line is called "line 1" then. The optional argument `name` is a name identifying this string, and is only used for error messages. )r!rZr)r:rrJÚxs&&& r4r$ÚDocTestParser.get_examplesÄs>€ð Ÿ:™: fÔ3ó+Ñ3�aܘa¤×)÷�Ñ3ñ+ð +ùò+s”:±:c  ó:€\VPR44pVPR4PR4pVPWTW#4VP VR,RV,R,W#4RP VUu.uFqfV^,RNK up4pVPR4pVPR4p \V 4^8”d(\ P!R V R ,4'dV R VP V RV,VV\V4,4RP V U u.uFqªVRNK up 4pVPPV4pV'dVPR 4p MRp VPWrV4p W|W‹3#uupiuup i) a| Given a regular expression match from `_EXAMPLE_RE` (`m`), return a pair `(source, want)`, where `source` is the matched example's source code (with prompts and indentation stripped); and `want` is the example's expected output (with indentation stripped). `name` is the string's name, and `lineno` is the line number where the example starts; both are used for error messages. r„rìr”ºrFNNr€r³Nr¤z *$rµrŸ) rIrr¡Ú_check_prompt_blankÚ _check_prefixrâr�ÚmatchÚ _EXCEPTION_REÚ _find_options) r:r rJrír„Ú source_linesÚslrìr¤Ú want_linesÚwlrïrîs &&&& r4rÚDocTestParser._parse_exampleÒsh€ô�Q—W‘W˜XÓ&Ó'ˆð—w‘w˜xÓ(×.Ñ.¨tÓ4ˆ Ø × Ñ  °tÔDØ ×ј<¨Õ+¨S°­Z¸#Õ-=¸tÔLØ—‘±LÓA±L¨b˜v a�x˜y›M±LÑAÓBˆð �w‰w�v‹ˆØ—Z‘Z Ó%ˆ Ü ˆz‹?˜QÔ ¤2§8¢8¨F°J¸rµN×#CÒ#Cؘ2�Ø ×ј: s¨6¥z°4Ø!¤C¨ Ó$5Õ5ô 7à�y‰y± Ó;± ¨"˜V˜W›+± Ñ;Ó<ˆð × Ñ × $Ñ $ TÓ *ˆß Ø—g‘g˜e“n‰GàˆGð×$Ñ$ V°6Ó:ˆà Ð-Ð-ùò/Bùòó?ð?ô+¨6°"­:Õ6�Ø!'¨¥¨cÑ!1�“ ó)ñ<÷ �t×0Ñ0°×8Ò8Ýã$£dªFð4ó5ð 5ðˆr6z ^([ ]*)(?=\S)c ó¬€VPPV4Uu.uFp\V4NK pp\V4^8”d \V4#^#uupi)z;Return the minimum indentation of any non-blank line in `s`)Ú _INDENT_REÚfindallrIÚmin)r:rƒr„Úindentss&& r4rÚDocTestParser._min_indent&sJ€à-1¯_©_×-DÑ-DÀQÔ-GÓHÑ-G 6”3�v–;Ñ-GˆÐHÜ ˆw‹<˜!Ô Ü�w“<Ð áùò IsžAc  óê€\V4FcwrV\V4V^,8¼gKWb^,,R8wgK4\RWE,^,: RV: RWbV^,: RV: 24h R#)zâ Given the lines of a source string (including prompts and leading indentation), check to make sure that every prompt is followed by a space character. If any line is not followed by a space character, then raise ValueError. r€r8ú of the docstring for z lacks blank after z: N)Ú enumeraterIrß)r:Úlinesr„rJrír¸r®s&&&&& r4r,Ú!DocTestParser._check_prompt_blank.sa€ô! Ö'‰GˆAÜ�4‹y˜F 1�HÖ$¨°Q­h­¸3Ö)>Ý à"(¥(¨1§* *«dØ"&¨f°Q­hÓ"7ºð"?ó@ð@ó(r6c  ó¸€\V4FJwrVV'gKVPV4'dK(\RWE,^,: RV: RV: 24h R#)zv Check that every line in the given list starts with the given prefix; if any line does not, then raise a ValueError. r8rGz& has inconsistent leading whitespace: N)rHr¢rß)r:rIÚprefixrJrír¸r®s&&&&& r4r-ÚDocTestParser._check_prefix<sI€ô ! Ö'‰GˆA߉t˜DŸO™O¨F×3Ô3Ý à"(¥(¨1§* *«d²Dð":ó;ð;ó(r6r<N)z)r=r>r?r@rØr�ÚcompileÚ MULTILINEÚVERBOSErÚDOTALLr/r.rr!r%r$rr:r0rArr,r-rArBr�s@r4rrasÚø‡€ñð—*’*ð  ð�\‰\˜BŸJ™JÕ &ó (€Kð,—J’Jð ð�Z‰Z˜"Ÿ,™,Õ &¨¯©Õ 2ó 4€MðŸ:š: oÓ6×<Ñ<Ðô%òN 7ô +ò*.ðfŸ:š:Ð&DØ&(§l¡ló4Ðòð8—’Ð,¨b¯l©lÓ;€Jòò @÷ ;ð ;r6cóha€]tRtRtoRtR]!4RR3RltRRltRtR t R t R t R t R t VtR#)riLa$ A class used to extract the DocTests that are relevant to a given object, from its docstring and the docstrings of its contained objects. Doctests can currently be extracted from the following object types: modules, functions, classes, methods, staticmethods, classmethods, and properties. FTc ó6€W nWnW0nW@nR#)a Create a new doctest finder. The optional argument `parser` specifies a class or function that should be used to create new DocTest objects (or objects that implement the same interface as DocTest). The signature for this factory function should match the signature of the DocTest constructor. If the optional argument `recurse` is false, then `find` will only examine the given object, and not any contained objects. If the optional argument `exclude_empty` is false, then `find` will include tests for objects with empty docstrings. N)Ú_parserÚ_verboseÚ_recurseÚ_exclude_empty)r:ÚverboseÚparserÚrecurseÚ exclude_emptys&&&&&r4rÃÚDocTestFinder.__init__Us€ð"Œ ØŒ ØŒ Ø+Ör6Nc  óü€Vf*\VRR4pVf\R\V4: 24hVRJdRpMVf\P!V4p\P !V4pV'g1\P !V4pV^,VRR,R8XgRpVfRpMEVe"\P!WcP4pM\P!V4pV'gRpVf#Vf/pM+VPP4pMVP4pVeVPV4RV9dRVR&.pVPW�W#Wt/4VP4V# \dRpLŽi;i)a’ Return a list of the DocTests that are defined by the given object's docstring, or by any of its contained objects' docstrings. The optional parameter `module` is the module that contains the given object. If the module is not specified or is None, then the test finder will attempt to automatically determine the correct module. The object's module is used: - As a default namespace, if `globs` is not specified. - To prevent the DocTestFinder from extracting DocTests from objects that are imported from other modules. - To find the name of the file containing the object. - To help find the line number of the object within its file. Contained objects whose module does not match `module` are ignored. If `module` is False, no attempt to find the module will be made. This is obscure, of use mostly in tests: if `module` is False, or is None but cannot be found automatically, then all objects are considered to belong to the (non-existent) module, so all contained objects will (recursively) be searched for doctests. The globals for each DocTest is formed by combining `globs` and `extraglobs` (bindings in `extraglobs` override bindings in `globs`). A new copy of the globals dictionary is created for each DocTest. If `globs` is not specified, then it defaults to the module's `__dict__`, if specified, or {} otherwise. If `extraglobs` is not specified, then it defaults to {}. Nr=zHDocTestFinder.find: name must be given when obj.__name__ doesn't exist: Fz<]>rÜéþÿÿÿ)rOrßròrXÚ getmoduleÚ getsourcefileÚgetfileÚ linecacheÚgetlinesÚ__dict__rfrÚupdateÚ_findÚsort) r:ÚobjrJrgrQÚ extraglobsr‡r1Útestss &&&&&& r4r£ÚDocTestFinder.findksp€ðH Š<ܘ3  ¨DÓ1ˆDØŠ|Ý ä"& s¥)ð".ó/ð/ð �U‹?؉FØ Š^Ü×&Ò& sÓ+ˆFð  (Ü×(Ò(¨Ó-ˆD÷ô—’ sÓ+�ؘA•w˜t B C˜yÕ(¨EÔ1¸$°4ØŠ|Ø#‘ àÒ%ô$-×#5Ò#5°d¿O¹OÓ#L‘Lô$-×#5Ò#5°dÓ#;�Lß#Ø#'�Lð Š=ØŠ~Ø‘àŸ™×,Ñ,Ó.‘à—J‘J“LˆEØ Ò !Ø �L‰L˜Ô $Ø ˜UÔ "Ø *ˆE�*Ñ ðˆØ � ‰ �5˜t¨\À"ÔEð � ‰ Œ ؈ øôYô ØŠLð úsÁE+Å+ E;Å:E;c óþ€VfR#\P!V4eV\P!V4J#\P!V4'dVPVPJ#\P !V4'g\P !V4'dZ\VR4'dVPPpM!\VR4'dVPpMR#VPV8H#\P!V4'dVPVP8H#\VR4'dVPVP8H#\V\4'dR#\R4h)zA Return true if the given object is defined in the given module. TÚ __objclass__r>z"object must be a class or function)rXr_Ú isfunctionrdÚ __globals__ÚismethoddescriptorÚismethodwrapperrvrmr>r=ÚisclassrZÚpropertyrß)r:rgÚobjectÚobj_mods&&& r4Ú _from_moduleÚDocTestFinder._from_moduleÑs%€ð Š>ÙÜ × Ò ˜vÓ &Ò 2ØœW×.Ò.¨vÓ6Ð6Ð 6Ü × Ò  × 'Ò 'Ø—?‘? f×&8Ñ&8Ð8Ð 8Ü×(Ò(¨×0Ò0Ü×%Ò% f×-Ò-Ü�v˜~×.Ò.Ø ×-Ñ-×8Ñ8‘ܘ ×.Ò.Ø ×+Ñ+‘áØ—?‘? gÑ-Ð -Ü �_Š_˜V× $Ò $Ø—?‘? f×&7Ñ&7Ñ7Ð 7Ü �V˜\× *Ò *Ø—?‘? f×&7Ñ&7Ñ7Ð 7Ü ˜¤× )Ò )ÙäÐAÓBÐ Br6c ó‚€Tp\P!V4p\P!V4# \dL#i;i)z< Safely unwrap objects and determine if they are functions. )rXÚunwraprßÚ isroutine)r:rhÚ maybe_routines&& r4Ú _is_routineÚDocTestFinder._is_routineîsC€ðˆ ð Ü#ŸNšN¨=Ó9ˆMô× Ò  Ó/Ð/øôô Ù ð ús „0° >½>c  óœ€VP'd\RV,4\V4V9dR#^V\V4&VPW#WFV4pVeVP V4\ P !V4'd¡VP'd�VPP4FpwršV: RV : 2p VPV 4'g\ P!V 4'gKCVPWJ4'gK\VPWW”VWg4Kr \ P !V4'EdVP'dò\VR/4P4FÒwrš\V \ 4'g\#R\%V 4: 24h\ P&!V 4'gg\ P!V 4'gK\ P !V 4'g/\V \ 4'g\#R\%V 4: 24hV: RV : 2p VPWW”VWg4KÔ \ P!V4'dèVP'dÔVPP4F³wrš\V \(\*34'd V P,p \ P&!V 4'g5\ P!V 4'g\V \.4'gK}VPWJ4'gK–V: RV : 2p VPWW”VWg4Kµ R#R#R#)zU Find tests for the given object and any contained objects, and add them to `tests`. zFinding tests in %sNr³Ú__test__z3DocTestFinder.find: __test__ keys must be strings: z^DocTestFinder.find: __test__ values must be strings, functions, methods, classes, or modules: z .__test__.)rUÚprintr Ú _get_testrrXrYrVrdÚitemsr|rrrvrfrOrZr[rßròrzÚ staticmethodÚ classmethodÚ__func__rs) r:rjrhrJrgr1rQÚseenÚtestÚvalnameÚvals &&&&&&&& r4rfÚDocTestFinder._findùsp€ð �=�=ˆ=Ü Ð'¨$Õ.Ô /ô ˆc‹7�dŒ?٠؈ŒR�‹W‰ ð�~‰~˜c¨¸ ÓEˆØ Ò Ø �L‰L˜Ô ô × Ò ˜C× Ò  T§]§] ]Ø #§ ¡ × 2Ñ 2Ö 4‘ �Û%)ª7Ð3�ð×%Ñ% c×*Ò*¬g¯oªo¸c×.BÔ.BØ×%Ñ% f×2Ô2Ø—J‘J˜u¨7¸LØ$ö,ñ !5ô × Ò ˜C× Ó  T§]§] ]Ü '¨¨Z¸Ó <× BÑ BÖ D‘ �Ü! '¬3×/Ò/Ý$ä&*¨7¥mð&6ó7ð7ô ×)Ò)¨#×.Ò.´'·/²/À#×2FÒ2FÜ×(Ò(¨×-Ò-´¸CÄ×1EÒ1EÝ$ô'+¨3¥ið&2ó3ð3ó/3²GÐ<�Ø— ‘ ˜5 w¸ Ø ö(ñ!Eô �?Š?˜3× Ò  D§M§M MØ #§ ¡ × 2Ñ 2Ö 4‘ �ä˜c¤L´+Ð#>×?Ò?ØŸ,™,�Cô×&Ò& s×+Ò+¬w¯ª¸s×/CÒ/CÜ  ¤h×/Ô/Ø×'Ñ'¨×4Ô4Û)-ªwÐ7�GØ—J‘J˜u¨7¸LØ$ö,ó!5ñ%2Ñ r6c óæ€\V\4'dTpM?VPfRpM-VPp\V\4'g \V4pVP W4pVP 'd V'gR#VfRpM0\VRR4;'g VPpVRRR8XdVRRpVPPWdVW‡4# \\3dRpL–i;i)z[ Return a DocTest for the given object, if it defines a docstring; otherwise, return None. NrÝrÛú.pycéüÿÿÿrŸ) rZr[rØrfrbÚ _find_linenorWrOr=rTr%) r:rhrJrgrQr1rÿrírys &&&&&& r4r�ÚDocTestFinder._get_test6sè€ô �cœ3× Ò Ø‰Ið Ø—;‘;Ò&Ø "‘Ià #§ ¡ �IÜ% i´×5Ò5Ü$'¨ £N˜ ð ×"Ñ" 3Ó5ˆð × × Ð §yÙð Š>؉Hô˜v z°4Ó8×KÐK¸F¿O¹OˆHؘ˜ˆ} Ô&Ø# C R˜=�Ø�|‰|×'Ñ'¨ ¸$Ø(0ó:ð :øô%œ~Ð.ô Ø’ ð ús›C¬-CÃC0Ã/C0c  ó€Rp\VRR4p\P!V4'dVe^p\P!V4'dvVerVfR#\P !R\P !\VRR44,4p\V4F wrgVPV4'gKTpM \P!V4'd VPp\V\4'd VPp\V\P4'd VP p\P"!V4'd7\VRR4'd$\P$!V4pVP&p\P*!V4'd VP,p\P.!V4'd VP0p\P2!V4'dVP4^, pVeaVf V^,#\P !R4p\7V\9V44F$pVPW#,4'gK"Vu# R# \(dR#i;i)zv Return a line number of the given object's docstring. Returns `None` if the given object does not have a docstring. NrØz^\s*class\s*%s\br=Ú-z(^|.*:)\s*\w*("|\'))rOrXrYrrr�rNÚescaperHr.Úismethodr…rZrsÚfgetÚ functoolsÚcached_propertyÚfuncrzryÚ__code__rbÚ istracebackÚtb_frameÚisframeÚf_codeÚiscodeÚco_firstlinenoÚrangerI)r:rhr1rírÿÚpatr¸r®s&&& r4rŽÚDocTestFinder._find_lineno\sí€ð ˆÜ˜C ¨DÓ1ˆ ô × Ò ˜C× Ò  YÒ%:؈Fô �?Š?˜3× Ò  IÒ$9ØÒ#ÙÜ—*’*Ð0ÜŸYšY¤w¨s°JÀÓ'DÓEõFóGˆCä$ \Ö2‘�Ø—9‘9˜T—?”?Ø�FÙñ3ô × Ò ˜C× Ò ¨¯ ©  #Ü �cœ8× $Ò $Ø—(‘(ˆCÜ �cœ9×4Ñ4× 5Ò 5Ø—(‘(ˆCÜ × Ò ˜S× !Ò !¤g¨c°9¸d×&CÒ&Cä—.’. Ó%ˆCð Ø—l‘l�ô × Ò ˜s× #Ò #¨3¯<©< SÜ �?Š?˜3× Ò  s§z¡z Ü �>Š>˜#× Ò Ø×'Ñ'¨!Õ+ˆFð Ò ØÒ#ؘa•x�Ü—*’*Ð3Ó4ˆCÜ ¬¨LÓ(9Ö:�Ø—9‘9˜\Õ1×2Ô2Ø!’Mñ;ñ øô1"ô òð  úsÅ? I0É0 I?É>I?)rWrTrVrU©NNNN)r=r>r?r@rØrrÃr£rvr|rfr�rŽrArBr�s@r4rrLsEø‡€ñð %©]«_بTô,ô,dòLCò: 0ò;,òz$:÷L=ð=r6có¤a€]tRtRtoRtRtRRltRtRtRt Rt R t R t R t ]P!R 4tRR ltRRltRRltRtRtVtR#)riŸa· A class used to run DocTest test cases, and accumulate statistics. The `run` method is used to process a single DocTest case. It returns a TestResults instance. >>> save_colorize = _colorize.COLORIZE >>> _colorize.COLORIZE = False >>> tests = DocTestFinder().find(_TestClass) >>> runner = DocTestRunner(verbose=False) >>> tests.sort(key = lambda test: test.name) >>> for test in tests: ... print(test.name, '->', runner.run(test)) _TestClass -> TestResults(failed=0, attempted=2) _TestClass.__init__ -> TestResults(failed=0, attempted=2) _TestClass.get -> TestResults(failed=0, attempted=2) _TestClass.square -> TestResults(failed=0, attempted=1) The `summarize` method prints a summary of all the test cases that have been run by the runner, and returns an aggregated TestResults instance: >>> runner.summarize(verbose=1) 4 items passed all tests: 2 tests in _TestClass 2 tests in _TestClass.__init__ 2 tests in _TestClass.get 1 test in _TestClass.square 7 tests in 4 items. 7 passed. Test passed. TestResults(failed=0, attempted=7) The aggregated number of tried examples and failed examples is also available via the `tries`, `failures` and `skips` attributes: >>> runner.tries 7 >>> runner.failures 0 >>> runner.skips 0 The comparison between expected outputs and actual outputs is done by an `OutputChecker`. This comparison may be customized with a number of option flags; see the documentation for `testmod` for more information. If the option flags are insufficient, then the comparison may also be customized by passing a subclass of `OutputChecker` to the constructor. The test runner's display output can be controlled in two ways. First, an output function (`out`) can be passed to `TestRunner.run`; this function will be called with strings that should be displayed. It defaults to `sys.stdout.write`. If capturing the output is not sufficient, then the display output can be also customized by subclassing DocTestRunner, and overriding the methods `report_start`, `report_success`, `report_unexpected_exception`, and `report_failure`. >>> _colorize.COLORIZE = save_colorize Nc óà€T;'g \4VnVfR\P9pW nW0nW0n^Vn^Vn^Vn /Vn \4Vn R#)a Create a new test runner. Optional keyword arg `checker` is the `OutputChecker` that should be used to compare the expected outputs and actual outputs of doctest examples. Optional keyword arg 'verbose' prints lots of stuff if true, only failures if false; by default, it's true iff '-v' is in sys.argv. Optional argument `optionflags` can be used to control how the test runner compares expected output to actual output, and how it displays failures. See the documentation for `testmod` for more information. Nú-v) rÚ_checkerr_rãrUÚ optionflagsÚoriginal_optionflagsÚtriesÚfailuresÚskipsÚ_statsr’Ú_fakeout)r:ÚcheckerrXr§s&&&&r4rÃÚDocTestRunner.__init__ásb€ð" ×2Ð2¤=£?ˆŒ Ø Š?ØœcŸh™hÑ&ˆGØŒ Ø&ÔØ$/Ô!ðˆŒ ØˆŒ ؈Œ ؈Œ ô"› ˆŽ r6c ó.€VP'dƒVP'dFV!R\VP4,R,\VP4,4R#V!R\VP4,R,4R#R#)zo Report that the test runner is about to process the given example. (Only displays a message if verbose=True) zTrying: z Expecting: zExpecting nothing N)rUr¤r…rì)r:rÅr‡Úexamples&&&&r4Ú report_startÚDocTestRunner.report_startsn€ð �=�=ˆ=Ø�|�|ˆ|Ù�K¤'¨'¯.©.Ó"9Õ9Ø"õ#Ü%,¨W¯\©\Ó%:õ;ö<ñ�K¤'¨'¯.©.Ó"9Õ9Ø)õ*ö+ñ r6c ó>€VP'd V!R4R#R#)z\ Report that the given example ran successfully. (Only displays a message if verbose=True) zok N)rU©r:rÅr‡r±r¥s&&&&&r4Úreport_successÚDocTestRunner.report_successs€ð �=�=ˆ=Ù �ŽKñ r6c óŠ€V!VPW#4VPPW4VP4,4R#)z' Report that the given example failed. N)Ú_failure_headerr¦Úoutput_differencer§rµs&&&&&r4Úreport_failureÚDocTestRunner.report_failures:€ñ ˆD× Ñ  Ó /Ø �M‰M× +Ñ +¨G¸$×:JÑ:JÓ Kõ Lö Mr6c ót€V!VPW#4R,\\V44,4R#)z? Report that the given example raised an unexpected exception. zException raised: N)r¹r…r�©r:rÅr‡r±r‹s&&&&&r4Úreport_unexpected_exceptionÚ)DocTestRunner.report_unexpected_exception"s6€ñ ˆD× Ñ  Ó /Ø !õ "Ü$+Ô,@ÀÓ,JÓ$Kõ Lö Mr6có–€\4'd!\P\P3MRwr4V VP V 2.pVP 'dvVP e4VP e&VP VP ,^,pMRpVPRVP : RV: RVP: 24M4VPRVP ^,: RVP: 24VPR4VPpVP\V44RPV4#) rÝÚ?zFile "ú", line ú, in zLine zFailed example:r”)rÝrÝ) r'r&ÚREDÚRESETÚDIVIDERryrírrJrìr…râ)r:r‡r±ÚredÚresetrÅrírìs&&& r4r¹ÚDocTestRunner._failure_header)sí€ä2>·.².ŒZ�^‰^œZ×-Ñ-Ñ .Àhñ ˆð��t—|‘|�n U GÐ,Ð-ˆØ �=�=ˆ=Ø�{‰{Ò&¨7¯>©>Ò+EØŸ™ w§~¡~Õ5¸Õ9‘à�Ø �JŠJØŸ œ £v¨t¯y«yð:õ ;ð �JŠJ¨7¯>©>¸!×+;Ð+;¸T¿Y»YÐGÔ HØ � ‰ Ð$Ô%Ø—‘ˆØ � ‰ ”7˜6“?Ô#Ø�y‰y˜‹~Ðr6c  óôa€^;p;rVVPp\^4wr‰p VPPp \ VP 4EF¤wrÍV^, pVP\ ,;'dV^8„pWpnV P'dbV PP4FCwppV'dV;PV,unK)V;PV(,unKE VP\,'d V^, pKÔV'gVPW1V 4RVPV 3,p\\V PVRVR4VP4VP P#4RpTP.P14pTP.P3^4T pTf)T !T P4TTP4'dTpEMS\6P8!TR,!p\;T^,\<4'ddT^,P> R2T^,P@ RT^,P> R23o\CT3Rl\ T444pTTRpR PET4pT'gT\GT4, pT PHfT pM|T !T PHTTP4'dTpMUTP\J,'d9T !\MT PH4\MT4TP4'dTpTTJdT'gTPOY1T T4MUTT Jd&T'gTPQY1T T4T^, pM*TT Jd%T'gTPSY1T T4T^, pT'gEK…TP\T,'gEK¥M WpnVPWWWV4\YWEVR 7# \$dh\&dHp\)T4TTP*P,3pTP P#4Rp?ELÙRp?ii;i) a> Run the examples in `test`. Write the outcome of each example with one of the `DocTestRunner.report_*` methods, using the writer function `out`. `compileflags` is the set of compiler flags that should be used to execute examples. Return a TestResults instance. The examples are run in the namespace `test.globs`. zÚsingleTN:NéNr²r³c3ó^<"€TF"wrVPS4'gKVx€K$ R#5ir,)r¢)Ú.0Úindexr®Úexception_line_prefixess& €r4Ú Ú&DocTestRunner.__run..˜s)øé€ð)á+B™K˜EØŸ?™?Ð+B×C÷šÛ+Bùsƒ-£ -rÝ©r*)-r§rŸr¦Ú check_outputrHrþr rîr‚rr²rJÚexecrNrìrQÚdebuggerrÎÚKeyboardInterruptÚ BaseExceptionròÚ __traceback__Útb_nextr­rŠršr¤rˆÚformat_exception_onlyÚ issubclassÚ SyntaxErrorr?r>Únextrâr�rïrr¹r¶r»r¿rÚ_DocTestRunner__record_outcomer))r:r‡Ú compileflagsrÅrªr1r«r¨ÚSUCCESSÚFAILUREÚBOOMÚcheckÚ examplenumr±ÚquietÚ optionflagr‰ryr‹Úexcr¥ÚoutcomeÚ formatted_exÚ exc_msg_indexrïrÑs&&&& @r4Ú__runÚDocTestRunner.__run@sáø€ð()Ð(ˆÐ(�9ð $×/Ñ/Ðä!& q£Ñˆ˜$à— ‘ ×*Ñ*ˆô$-¨T¯]©]×#;Ñ ˆJØ ˜�NˆIð×%Ñ%Ô(AÕA÷"ð"Ø ‘\ð ð 4Ô Ø��ˆØ)0¯©×)>Ñ)>Ö)@Ñ%�Z ßØ×(Ò(¨JÕ6×(à×(Ò(¨Z¨KÕ7×(ñ *Að×Ѥ$×&Ô&ؘ• �Ù÷Ø×!Ñ! #¨WÔ5ð *¨T¯Y©Y¸ Ð,CÕCˆHð -ä”W˜WŸ^™^¨X°xØ)¨4ó1Ø26·*±*ô>à— ‘ ×*Ñ*Ô,Ø�ð—-‘-×(Ñ(Ó*ˆCØ �M‰M× "Ñ " 1Ô %؈GðÒÙ˜Ÿ™ s¨D×,<Ñ,<×=Ò=Ø%�Gùô )×>Ò>ÀÈÅ ÑM� ܘh q�k¬;×7Ò7ð $ A�;×3Ñ3Ð4°AÐ6Ø# A�;×1Ñ1Ð2°!°H¸QµK×4LÑ4LÐ3MÈQÐOð/Ð+ô%)ô)ä+4°\Ô+Bó)ó%�Mð $0° °Ð#?�LàŸ'™' ,Ó/�ߨÔ/°Ó9Õ9�Cð—?‘?Ò*Ø"‘Gñ˜7Ÿ?™?¨G°T×5EÑ5E×FÒFØ%‘Gð×%Ñ%Ô(?×?Ô?ÙÔ5°g·o±oÓFÜ5°gÓ>Ø!×-Ñ-÷/ò/ð#*˜ð˜'Ó!ߨ×'Ñ'¨°7¸CÔ@øØ˜GÓ#ߨ×'Ñ'¨°7¸CÔ@ؘA• ‘ؘD“ߨ×4Ñ4°SÀØ5=ô?à˜A• �÷Šx˜D×,Ñ,¬y×8×8Ùña$<ðf0Ôð ×јd¨iÔ?ܘ8¸Ô>Ð>øô_%ô ØÜ ô -Ü ›9 c¨3×+<Ñ+<×+DÑ+DÐD�Ø— ‘ ×*Ñ*×,Ò,ûð -úsÅA PÐQ7Ð/Q7Ð0.+)\[(?P\d+)\]>$có`€VPPV4pV'd|VPR4VPP8XdRVPP \ VPR44,pVPPRR7#VPW4#)rJræT©Úkeepends) Ú%_DocTestRunner__LINECACHE_FILENAME_REr.rr‡rJrþÚintrìÚ splitlinesÚsave_linecache_getlines)r:ryÚmodule_globalsr r±s&&& r4Ú__patched_linecache_getlinesÚ*DocTestRunner.__patched_linecache_getlinesÝs}€Ø × (Ñ (× .Ñ .¨xÓ 8ˆß �—‘˜“ D§I¡I§N¡NÔ2Ø—i‘i×(Ñ(¬¨Q¯W©W°\Ó-BÓ)CÕDˆGØ—>‘>×,Ñ,°dÐ,Ó;Ð ;à×/Ñ/°ÓIÐ Ir6c ó0a a€WnVf\VP4p\PoVf:SP o S eS P 4R8XdSPpMV V3RlpVP\n\P!4p\Pp\S4Vn VPP4VPP\n \P VnVP$\n\P&p\P(\n\*P,pR\*nRRRR/p V F%p \.P0P3V R4Wš&K' VP5WV4S\nV\n \P6!V4VP"\nV\nV\*nV P94Fwr«V fK V \.P0V &K V'd'VPP;4^RIp RV n## S\nT\n \P6!T4TP"\nT\nT\*nT P94Fwr«T fK T \.P0T &K T'd'TPP;4^RIp RT nii;i)aÒ Run the examples in `test`, and display the results using the writer function `out`. The examples are run in the namespace `test.globs`. If `clear_globs` is true (the default), then this namespace will be cleared after the test runs, to help with garbage collection. If you would like to examine the namespace after the test completes, then use `clear_globs=False`. `compileflags` gives the set of flags that should be used by the Python compiler when running the examples. If not specified, then it will default to the set of future-import flags that apply to `globs`. The output of each example is checked using `DocTestRunner.check_output`, and the results are formatted by the `DocTestRunner.report_*` methods. Núutf-8cób<€\VPSR4S4pSPV4R#)ÚbackslashreplaceN)r[ÚencodeÚwrite)rƒrrrÔs&€€r4rÅÚDocTestRunner.run..outs)ø€Ü˜AŸH™H XÐ/AÓBÀHÓM�AØ×%Ñ% aÖ(r6có€R#©Fr<)rÓÚkwargss*,r4ÚÚ#DocTestRunner.run..s€¹r6Ú PYTHON_COLORSÚ FORCE_COLOR) r‡rUrQr_r½rrÚlowerrr­ÚgettracerÁrÊr»r×rÉrbrcrûÚ*_DocTestRunner__patched_linecache_getlinesÚ displayhookÚ__displayhook__Ú _colorizer'ràÚenvironÚpopÚ_DocTestRunner__runÚsettracer‚ÚclearÚbuiltinsÚ_)r:r‡rárÅÚ clear_globsÚ save_traceÚsave_set_traceÚsave_displayhookÚsaved_can_colorizeÚcolor_variablesÚkeyÚvaluerrrrÔs&&&&& @@r4ÚrunÚDocTestRunner.runåsBù€ð(Œ à Ò Ü0°·±Ó<ˆLä—j‘jˆ Ø Š;Ø"×+Ñ+ˆHØÒ 8§>¡>Ó#3°wÔ#>Ø!×'Ñ'‘ö)ð—]‘]ŒŒ ô—\’\“^ˆ ÜŸ™ˆÜ-¨kÓ:ˆŒ Ø � ‰ ×ÑÔØŸ ™ ×/Ñ/ŒŒ ô(1×'9Ñ'9ˆÔ$Ø!×>Ñ>Œ ÔôŸ?™?ÐÜ×-Ñ-ŒŒÜ&×3Ñ3ÐÙ!>Œ ÔØ*¨D°-ÀÐFˆÛ"ˆCÜ#%§:¡:§>¡>°#°tÓ#<ˆOÓ ñ#ð "Ø—:‘:˜d°#Ó6à$ŒCŒJØ*ŒCŒMÜ �LŠL˜Ô $Ø!%×!=Ñ!=ŒIÔ Ø.ŒCŒOØ%7ŒIÔ "Ø-×3Ñ3Ö5‘ �ØÔ$Ø&+”B—J‘J˜s“Oñ6÷Ø— ‘ × Ñ Ô"ÛØ!�• ðøð%ŒCŒJØ*ŒCŒMÜ �LŠL˜Ô $Ø!%×!=Ñ!=ŒIÔ Ø.ŒCŒOØ%7ŒIÔ "Ø-×3Ñ3Ö5‘ �ØÔ$Ø&+”B—J‘J˜s“Oñ6÷Ø— ‘ × Ñ Ô"ÛØ!�• ðúsÆIÉA.LËLË.'Lc  óÞ€Vf VPp...rCp^;p;rgVPP4Fjwpwršp WZ, pWi, pW{, pV ^8XdVPV4K;V ^8XdVPWŠ34KVVPW‰W«334Kl \P !4p V P p V PpV PpV PpV PpV PpV'd£V'd?\\V4 R24VP4VFp\RV 24K V'dU\V \V4 RV 24\V4F*wppV^8XdRMRp\RV VR RV R V V 24K, V'da\V VP V 24\\V4 R 24\V4Fwpwršp \RV R R V R R V 24K! V'dbV^8XdRMRp\V RV R \VP4 R 24V'd R V V RV 2MRp\V WV, RV V R 24V'dHV^8XdRMRpV RV RV V 2pV'dV^8XdRMRpV R V V RV V 2p\V R 24MV'd\V RV 24\#WeVR7#)a  Print a summary of all the test cases that have been run by this DocTestRunner, and return a TestResults instance. The optional `verbose` argument controls how detailed the summary is. If the verbosity is not specified, then the DocTestRunner's verbosity is used. z had no tests:z z passed all tests:rÝrƒr€Ú3dz testz in z had failures:z of r³z and z failedz passedz***Test Failed*** z failurez skipped testz Test passed.rÔ)rUr¬r‚rrÚ get_colorsÚ BOLD_GREENÚBOLD_REDÚGREENrÅrÆÚYELLOWr€Ú_n_itemsrgÚsortedrÇr))r:rXÚnotestsÚpassedr0Ú total_triesÚtotal_failuresÚ total_skipsrJrªr©r«ÚansiÚ bold_greenÚbold_redÚgreenrÈrÉÚyellowrrƒÚand_frµs&& r4Ú summarizeÚDocTestRunner.summarize6s€ð Š?Ø—m‘mˆGà"$ b¨"˜ˆØ56Ð6ˆ Ð6�nà.2¯k©k×.?Ñ.?Ö.AÑ *ˆDÑ*�8 Eà Õ ˆKØ Õ &ˆNØ Õ ˆKà˜ŒzØ—‘˜tÖ$ؘQ”Ø— ‘ ˜t˜mÖ,à— ‘ ˜t°Ð%=Ð>Ö?ñ/Bô×#Ò#Ó%ˆØ—_‘_ˆ Ø—=‘=ˆØ— ‘ ˆØ�h‰hˆØ— ‘ ˆØ—‘ˆç ßÜœ 'Ó*Ð+¨>Ð:Ô;Ø— ‘ ”Û#�DܘD  ˜-Ö(ñ$÷ܘ˜¤¨Ó 0Ð1Ð1CÀEÀ7ÐKÔLÜ#)¨&¦>‘K�D˜%Ø# qœj™¨c�AܘA˜e˜W U¨2 J¨e°A°3°d¸4¸&ÀÀÐHÖIñ$2÷ Ü �S�E˜$Ÿ,™,˜¨ wÐ/Ô 0Ü ”X˜fÓ%Ð& nÐ5Ô 6Ü28¸¶.Ñ.�Ñ.�x¨Ü˜˜( 2˜ d¨5°¨*°D¸¸Ð?Ö@ñ3A÷ Ø! QÔ&‘¨CˆAÜ �[�M  q c¨¬h°t·{±{Ó.CÐ-DÀAÐFÔ G÷"ð˜�u˜^Ð,¨G°E°7Ñ;Ø')ð ô �U�G˜KÕ8Ð9¸ÀÀÈÀwÈaÐPÔ Qç Ø$¨Ô)‘¨sˆAØ�JÐ0°Ð0@ÀÈÈÈEÈ7ÐSˆCߨ%¨Ô*‘B°�ؘ˜U 6 (¨;¨-°}ÀQÀCÈÀwÐO�Ü �S�E˜�)Õ ß Ü �Z�L  ¨U¨GÐ4Ô 5ä˜>À ÔLÐLr6cóÊ€VPpVPP4F8wpwrEpW29d$W#,wrxp WG,pWX,pWi,pWEV3W#&K: R#r,)r¬r‚) r:rõÚdrJrªr©r«rðrñròs && r4ÚmergeÚDocTestRunner.merge†s`€Ø �K‰KˆØ.3¯l©l×.@Ñ.@Ö.BÑ *ˆDÑ*�8 EØŒyØ,-­GÑ)�  6Ø#Õ/�Ø��Ø��بÐ.ˆA‹Gó /Cr6) r¦r­r¬rUr×rªr§r¨rûr«r‡r©zF**********************************************************************)NNr±r,©NNT)r=r>r?r@rØrÇrÃr²r¶r»r¿r¹rràr�rNrørr"r8r<rArBr�s@r4rrŸsvø‡€ñ<ð~€Gô$òJ +òòMòMòò.K?òZ ð!Ÿjšjð*FóGÐôJôL"ôbKM÷`/ð/r6cóF€V^8„dQhR\\,R\/#)rÍr‚Úreturn)ÚlistÚdictr[)Úformats"r4Ú __annotate__rD‘s€÷ñ”Dœ4•Kð¤Cñr6có<€\V4pV^8XdRMRpV RV 2#)z4 Helper to pluralise the number of items in a list. rÝrƒz item)rI)r‚Únrƒs& r4r+r+‘s*€ô ˆE‹ €AØ�1Œf‰˜#€A؈S��a�Sˆ>Ðr6có<a€]tRtRtoRtRtRtRtRtRt Vt R#) rišaC A class used to check whether the actual output from a doctest example matches the expected output. `OutputChecker` defines two methods: `check_output`, which compares a given pair of outputs, and returns true if they match; and `output_difference`, which returns a string describing the differences between two outputs. c ó:€\VPRR4R4#)z- Convert string to hex-escaped ASCII string. ÚASCIIr)r[r)r:rƒs&&r4Ú_toAsciiÚOutputChecker._toAscii¢s€ô�1—8‘8˜GÐ%7Ó8¸'ÓBÐBr6c óz€VPV4pVPV4pW!8XdR#V\,'gW!3R8XdR#W!3R8XdR#V\,'gX\P!R\P !\ 4,RV4p\P!RRV4pW!8XdR#V\,'dGRPVP44pRPVP44pW!8XdR#V\,'d\W4'dR#R#) ae Return True iff the actual output from an example (`got`) matches the expected output (`want`). These strings are always considered to match if they are identical; but depending on what option flags the test runner is using, several non-exact match types are also possible. See the documentation for `TestRunner` for more information about option flags. Tz (?m)^%s\s*?$rÝz(?m)^[^\S\n]+$r€F)zTrue z1 )zFalse z0 ) rJrrr�r‚r’ÚBLANKLINE_MARKERrrâr¡rrª©r:r¤r¥r§s&&&&r4rÕÚOutputChecker.check_output¨s€ð �m‰m˜CÓ ˆØ�}‰}˜TÓ"ˆð Œ;ÙðÔ4×4Ô4؈zÐ.Ô.ÙØˆzÐ/Ô/ÙðÔ3×3Ô3ä—6’6˜/¬B¯IªIÔ6FÓ,GÕGؘdó$ˆDô—&’&Ð*¨B°Ó4ˆCØŒ{Ùð Ô-× -Ô -Ø—(‘(˜3Ÿ9™9›;Ó'ˆCØ—8‘8˜DŸJ™J›LÓ)ˆDØŒ{Ùð œ× !Ô !ܘt×)Ò)Ùñr6cóâ€V\\,\,,'gR#V\,'dR#VPR4^8„;'dVPR4^8„#)FTr”)r r r rrNs&&&&r4Ú_do_a_fancy_diffÚOutputChecker._do_a_fancy_diffçsa€àœlÜ*õ+ä*õ+÷,ô,ñð œ× %Ô %Ùð�z‰z˜$Ó !Ñ#×;Ð;¨¯ © °$«¸!Ñ(;Ð;r6c ó®€VPpV\,'g\P!R\V4pVP WBV4'Ed!VP RR7pVP RR7pV\,'d.\P!WV^R7p\V4R,pRpM”V\,'d.\P!WV^R7p\V4R,pRpMTV\,'dB\P!\PR7p \V P!WV44pR pR X,\#R P%X44,#V'd%V'dR \#V4: R \#V4: 2#V'dR\#V4,#V'dR\#V4,#R#)zÓ Return a string describing the differences between the expected output for a given example (`example`) and the actual output (`got`). `optionflags` is the set of option flags used to compare `want` and `got`. z(?m)^[ ]*(?= )Trö)rF:rÍNNz#unified diff with -expected +actualz-context diff with expected followed by actual)Úcharjunkzndiff with -expected +actualzDifferences (%s): rÝz Expected: zGot: zExpected: %sGot nothing zExpected nothing Got: %szExpected nothing Got nothing )r¤rr�r‚rMrQrúr ÚdifflibÚ unified_diffrAr Ú context_diffr ÚDifferÚIS_CHARACTER_JUNKÚcomparer…râ) r:r±r¥r§r¤r3Ú got_linesÚdiffÚkindÚengines &&&& r4rºÚOutputChecker.output_differenceþs[€ð�|‰|ˆðÔ3×3Ô3Ü—&’&Ð*Ô,<¸cÓBˆCð × Ñ  ¨K× 8Ó 8àŸ™°$˜Ó7ˆJØŸ™°˜Ó5ˆIàœ\×)Ô)Ü×+Ò+¨JÀQÔG�ܘD“z "•~�Ø<‘Øœ|×+Ô+Ü×+Ò+¨JÀQÔG�ܘD“z "•~�ØF‘Øœ|×+Ô+Ü Ÿš´×1JÑ1JÔK�ܘFŸN™N¨:ÓAÓB�Ø5�ð)¨4Õ/´'¸"¿'¹'À$»-Ó2HÕHÐ H÷ —C�CÜ.5°d®m¼WÀS½\ÐJÐ Jß Ø/´'¸$³-Õ?Ð ?ß Ø/´'¸#³,Õ>Ð >á4r6r<N) r=r>r?r@rØrJrÕrQrºrArBr�s@r4rršs%ø‡€ñòCò <ò~<÷.,5ð,5r6có0a€]tRtRtoRtRtRtRtVtR#)ri,zÂA DocTest example has failed in debugging mode. The exception instance has variables: - test: the DocTest object being run - example: the Example object that failed - got: the actual output có*€WnW nW0nR#r,)r‡r±r¥)r:r‡r±r¥s&&&&r4rÃÚDocTestFailure.__init__7s€ØŒ ØŒ ØŽr6có,€\VP4#r,©r[r‡rÏs&r4Ú__str__ÚDocTestFailure.__str__<ó€Ü�4—9‘9‹~Ðr6)r±r¥r‡N© r=r>r?r@rØrÃrerArBr�s@r4rr,sø‡€ñ ò÷ ðr6có0a€]tRtRtoRtRtRtRtVtR#)ri?zÒA DocTest example has encountered an unexpected exception The exception instance has variables: - test: the DocTest object being run - example: the Example object that failed - exc_info: the exception info có*€WnW nW0nR#r,)r‡r±r‹)r:r‡r±r‹s&&&&r4rÃÚUnexpectedException.__init__Js€ØŒ ØŒ Ø Ž r6có,€\VP4#r,rdrÏs&r4reÚUnexpectedException.__str__Orgr6)r±r‹r‡Nrhr�s@r4rr?sø‡€ñ ò!÷ ðr6có:a€]tRtRtoRtRRltRtRtRtVt R#) riRaÒRun doc tests but raise an exception as soon as there is a failure. If an unexpected exception occurs, an UnexpectedException is raised. It contains the test, the example, and the original exception: >>> runner = DebugRunner(verbose=False) >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42', ... {}, 'foo', 'foo.py', 0) >>> try: ... runner.run(test) ... except UnexpectedException as f: ... failure = f >>> failure.test is test True >>> failure.example.want '42\n' >>> exc_info = failure.exc_info >>> raise exc_info[1] # Already has the traceback Traceback (most recent call last): ... KeyError We wrap the original exception to give the calling application access to the test and example information. If the output doesn't match, then a DocTestFailure is raised: >>> test = DocTestParser().get_doctest(''' ... >>> x = 1 ... >>> x ... 2 ... ''', {}, 'foo', 'foo.py', 0) >>> try: ... runner.run(test) ... except DocTestFailure as f: ... failure = f DocTestFailure objects provide access to the test: >>> failure.test is test True As well as to the example: >>> failure.example.want '2\n' and the actual output: >>> failure.got '1\n' If a failure or error occurs, the globals are left intact: >>> del test.globs['__builtins__'] >>> test.globs {'x': 1} >>> test = DocTestParser().get_doctest(''' ... >>> x = 2 ... >>> raise KeyError ... ''', {}, 'foo', 'foo.py', 0) >>> runner.run(test) Traceback (most recent call last): ... doctest.UnexpectedException: >>> del test.globs['__builtins__'] >>> test.globs {'x': 2} But the globals are cleared if there is no error: >>> test = DocTestParser().get_doctest(''' ... >>> x = 2 ... ''', {}, 'foo', 'foo.py', 0) >>> runner.run(test) TestResults(failed=0, attempted=1) >>> test.globs {} Ncóx€\PWW#R4pV'dVPP4V#r)rr"rQr)r:r‡rárÅrÚrs&&&&& r4r"ÚDebugRunner.run­s.€Ü × Ñ ˜d¨,¸UÓ Cˆß Ø �J‰J× Ñ Ô Øˆr6có€\W#V4hr,)rr¾s&&&&&r4r¿Ú'DebugRunner.report_unexpected_exception³s€Ü! $°Ó:Ð:r6có€\W#V4hr,)rrµs&&&&&r4r»ÚDebugRunner.report_failure¶s€Ü˜T¨CÓ0Ð0r6r<r>) r=r>r?r@rØr"r¿r»rArBr�s@r4rrRs ø‡€ñX ôtò ;÷1ð1r6Fc ó6€Vf \PPR4p\P!V4'g\ RV: 24hVf VP p\VR7p V'd\W5R7p M \W5R7p V PWW&R7Fp V PV 4K V'dV P4\fV s M\PV 4\V P V P"V P$R7#)aU m=None, name=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False, exclude_empty=False Test examples in docstrings in functions and classes reachable from module m (or the current module if m is not supplied), starting with m.__doc__. Also test examples reachable from dict m.__test__ if it exists. m.__test__ maps names to functions, classes and strings; function and class docstrings are tested even if the name is private; strings are tested directly, as if they were docstrings. Return (#failures, #tests). See help(doctest) for an overview. Optional keyword arg "name" gives the name of the module; by default use m.__name__. Optional keyword arg "globs" gives a dict to be used as the globals when executing examples; by default, use m.__dict__. A copy of this dict is actually used for each docstring, so that each docstring's examples start with a clean slate. Optional keyword arg "extraglobs" gives a dictionary that should be merged into the globals that are used to execute examples. By default, no extra globals are used. This is new in 2.4. Optional keyword arg "verbose" prints lots of stuff if true, prints only failures if false; by default, it's true iff "-v" is in sys.argv. Optional keyword arg "report" prints a summary at the end when true, else prints nothing at the end. In verbose mode, the summary is detailed, else very brief (in fact, empty if all tests passed). Optional keyword arg "optionflags" or's together module constants, and defaults to 0. This is new in 2.3. Possible values (see the docs for details): DONT_ACCEPT_TRUE_FOR_1 DONT_ACCEPT_BLANKLINE NORMALIZE_WHITESPACE ELLIPSIS SKIP IGNORE_EXCEPTION_DETAIL REPORT_UDIFF REPORT_CDIFF REPORT_NDIFF REPORT_ONLY_FIRST_FAILURE Optional keyword arg "raise_on_error" raises an exception on the first unexpected exception or failure. This allows failures to be post-mortem debugged. Advanced tomfoolery: testmod runs methods of a local instance of class doctest.Tester, then merges the results into (or creates) global Tester instance doctest.master. Methods of doctest.master can be called directly too, if you want to do something unusual. Passing report=0 to testmod is especially useful then, to delay displaying a summary. Invoke doctest.master.summarize(verbose) when you're done fiddling. rÜztestmod: module required; )r[©rXr§©rQrirÔ)r_r`rNrXrYrfr=rrrr£r"r8Úmasterr<r)rªr©r«) r rJrQrXÚreportr§riÚraise_on_errorr[ÚfinderÚrunnerr‡s &&&&&&&&& r4rrÂsØ€ðJ ‚yô �K‰K�O‰O˜JÓ 'ˆô × Ò ˜A× Ò Ýº!Ð=Ó>Ð>ð ‚|Ø�z‰zˆô¨Ô 7€FçÜ WÔF‰ä wÔHˆà— ‘ ˜A¨5� ÖHˆØ� ‰ �4ÖñI÷Ø×ÑÔä ‚~؉ä� ‰ �VÔä �v—‘¨¯ © ¸f¿l¹lÔ KÐKr6c ór€V'dV'g \R4h\YTT ;'gR4wrÀVf \PP V4pVf/pMVP 4pVeVP V4RV9dRVR&V 'd\WWR7p M \WWR7p V PWÄW ^4pV PV4V'dV P4\fV s M\PV 4\V PV P V P"R7#)a Test examples in the given file. Return (#failures, #tests). Optional keyword arg "module_relative" specifies how filenames should be interpreted: - If "module_relative" is True (the default), then "filename" specifies a module-relative path. By default, this path is relative to the calling module's directory; but if the "package" argument is specified, then it is relative to that package. To ensure os-independence, "filename" should use "/" characters to separate path segments, and should not be an absolute path (i.e., it may not begin with "/"). - If "module_relative" is False, then "filename" specifies an os-specific path. The path may be absolute or relative (to the current working directory). Optional keyword arg "name" gives the name of the test; by default use the file's basename. Optional keyword argument "package" is a Python package or the name of a Python package whose directory should be used as the base directory for a module relative filename. If no package is specified, then the calling module's directory is used as the base directory for module relative filenames. It is an error to specify "package" if "module_relative" is False. Optional keyword arg "globs" gives a dict to be used as the globals when executing examples; by default, use {}. A copy of this dict is actually used for each docstring, so that each docstring's examples start with a clean slate. Optional keyword arg "extraglobs" gives a dictionary that should be merged into the globals that are used to execute examples. By default, no extra globals are used. Optional keyword arg "verbose" prints lots of stuff if true, prints only failures if false; by default, it's true iff "-v" is in sys.argv. Optional keyword arg "report" prints a summary at the end when true, else prints nothing at the end. In verbose mode, the summary is detailed, else very brief (in fact, empty if all tests passed). Optional keyword arg "optionflags" or's together module constants, and defaults to 0. Possible values (see the docs for details): DONT_ACCEPT_TRUE_FOR_1 DONT_ACCEPT_BLANKLINE NORMALIZE_WHITESPACE ELLIPSIS SKIP IGNORE_EXCEPTION_DETAIL REPORT_UDIFF REPORT_CDIFF REPORT_NDIFF REPORT_ONLY_FIRST_FAILURE Optional keyword arg "raise_on_error" raises an exception on the first unexpected exception or failure. This allows failures to be post-mortem debugged. Optional keyword arg "parser" specifies a DocTestParser (or subclass) that should be used to extract tests from the files. Optional keyword arg "encoding" specifies an encoding that should be used to convert the file to unicode. Advanced tomfoolery: testmod runs methods of a local instance of class doctest.Tester, then merges the results into (or creates) global Tester instance doctest.master. Methods of doctest.master can be called directly too, if you want to do something unusual. Passing report=0 to testmod is especially useful then, to delay displaying a summary. Invoke doctest.master.summarize(verbose) when you're done fiddling. ú8Package may only be specified for module-relative paths.rr=rÜrwrÔ)rßr~ràráÚbasenamerrerrr%r"r8ryr<r)rªr©r«)ryr{rJrzrQrXrzr§rir{rYrrÚtextr}r‡s&&&&&&&&&&&& r4rr+s€÷d—Üð+ó,ð ,ô$ H°Ø$,×$7Ð$7°ó9�N€Dð ‚|Ü�w‰w×Ñ Ó)ˆð ‚}Ø‰à— ‘ “ ˆØÒØ � ‰ �ZÔ Ø˜ÔØ&ˆˆjÑçÜ WÔF‰ä wÔHˆð × Ñ ˜d¨4¸1Ó =€DØ ‡J�JˆtÔç Ø×ÑÔä ‚~؉ä� ‰ �VÔä �v—‘¨¯ © ¸f¿l¹lÔ KÐKr6có�€\VRR7p\W%R7pVPWVR7FpVPW„R7K R#)aB Test examples in the given object's docstring (`f`), using `globs` as globals. Optional argument `name` is used in failure messages. If the optional argument `verbose` is true, then generate output even if there are no failures. `compileflags` gives the set of flags that should be used by the Python compiler when running the examples. If not specified, then it will default to the set of future-import flags that apply to `globs`. Optional keyword arg `optionflags` specifies options for the testing and output. See the documentation for `testmod` for more information. F)rXrZrw)rQ)ráN)rrr£r") r}rQrXrJrár§r|r}r‡s &&&&&& r4rr§s?€ô$ 7°EÔ :€FÜ  7Ô D€FØ— ‘ ˜A¨5� Ö1ˆØ� ‰ �4ˆ Ö3ó2r6cóR€V\,V8wd \RV4h\pVsV#)aóSets the unittest option flags. The old flag is returned so that a runner could restore the old value if it wished to: >>> import doctest >>> old = doctest._unittest_reportflags >>> doctest.set_unittest_reportflags(REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) == old True >>> doctest._unittest_reportflags == (REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) True Only reporting flags can be set: >>> doctest.set_unittest_reportflags(ELLIPSIS) Traceback (most recent call last): ... ValueError: ('Only reporting flags allowed', 8) >>> doctest.set_unittest_reportflags(old) == (REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) True zOnly reporting flags allowed)rrßÚ_unittest_reportflags)rRÚolds& r4rrÄs/€ð: ”Õ EÔ)ÜÐ7¸Ó?Ð?Ü €CØ!ÐØ €Jr6có~a€]tRtRtoRRltRtRtRtRtRt R t R t R t R t ]PtR tRtVtR#)Ú DocTestCaseièNcó€€\PPV4W nWPnWnW0nW@nR#r,)ÚunittestÚTestCaserÃÚ_dt_optionflagsÚ _dt_checkerÚ_dt_testÚ _dt_setUpÚ _dt_tearDown)r:r‡r§ÚsetUpÚtearDownr®s&&&&&&r4rÃÚDocTestCase.__init__ês4€ô ×Ñ×"Ñ" 4Ô(Ø*ÔØ"ÔØŒ ØŒØ$Ör6cóž€VPpVPP4VnVPeVP V4R#R#r,)r�rQrÚ _dt_globsrŽ©r:r‡s& r4r�ÚDocTestCase.setUpôs8€Ø�}‰}ˆØŸ™Ÿ™Ó*ˆŒà �>‰>Ò %Ø �N‰N˜4Ö ñ &r6cóÚ€VPpVPeVPV4VPP4VPP VP 4R#r,)r�r�rQrrer”r•s& r4r‘ÚDocTestCase.tearDownûsM€Ø�}‰}ˆà × Ñ Ò (Ø × Ñ ˜dÔ #ð � ‰ ×ÑÔØ � ‰ ×ј$Ÿ.™.Ö)r6có\€VPp\Pp\4pVPpV\ ,'gV\ ,p\VVPRR7pRVn VPWPRR7pVPVP8Xd\P!R4hV\nVP 'd>VP#VP%VP'4P)R444hR# T\ni;i)F©r§r®rX)rÅrzall examples were skippedr”NzF----------------------------------------------------------------------)r�r_r½r#r‹rr„rrŒrÇr"rr*r1r‰ÚSkipTestr0ÚfailureExceptionÚformat_failurerŠr­)r:r‡r…Únewr§r}r2s& r4ÚrunTestÚDocTestCase.runTest sñ€Ø�}‰}ˆÜ�j‰jˆÜ‹jˆØ×*Ñ*ˆ àœo×-Ô-ð Ô0Õ 0ˆKä¨;Ø'+×'7Ñ'7ÀôHˆð Ø#ˆFŒNØ—j‘j ¯9©9À%�jÓHˆGØ�‰ '×"3Ñ"3Ô3Ü×'Ò'Ð(CÓDÐDð4ðŒCŒJà �>�>ˆ>Ø×'Ñ'¨×(;Ñ(;¸C¿L¹L»N×>> test = DocTestParser().get_doctest('>>> raise KeyError\n42', ... {}, 'foo', 'foo.py', 0) >>> case = DocTestCase(test) >>> try: ... case.debug() ... except UnexpectedException as f: ... failure = f The UnexpectedException contains the test, the example, and the original exception: >>> failure.test is test True >>> failure.example.want '42\n' >>> exc_info = failure.exc_info >>> raise exc_info[1] # Already has the traceback Traceback (most recent call last): ... KeyError If the output doesn't match, then a DocTestFailure is raised: >>> test = DocTestParser().get_doctest(''' ... >>> x = 1 ... >>> x ... 2 ... ''', {}, 'foo', 'foo.py', 0) >>> case = DocTestCase(test) >>> try: ... case.debug() ... except DocTestFailure as f: ... failure = f DocTestFailure objects provide access to the test: >>> failure.test is test True As well as to the example: >>> failure.example.want '2\n' and the actual output: >>> failure.got '1\n' Frš)rN)r�rr‹rŒr"r�r‘)r:r}s& r4r"ÚDocTestCase.debug* sI€ðD � ‰ Œ ܨ×)=Ñ)=Ø%)×%5Ñ%5¸uôFˆà� ‰ �4—=‘=¨eˆ Ô4Ø � ‰ Žr6có.€VPP#r,©r�rJrÏs&r4r ÚDocTestCase.idr s€Ø�}‰}×!Ñ!Ð!r6cóx€\V4\V4Jd\#VPVP8H;'d}VPVP8H;'d\VPVP8H;'d;VP VP 8H;'dVP VP 8H#r,)ròrór�r‹rŽr�rŒrôs&&r4röÚDocTestCase.__eq__u s¥€Ü �‹:œT %›[Ó (Ü!Ð !à�}‰} §¡Ñ.÷5ð5Ø×#Ñ# u×'<Ñ'<Ñ<÷5ð5à�~‰~ §¡Ñ0÷5ð5ð× Ñ  E×$6Ñ$6Ñ6÷5ð5ð×Ñ 5×#4Ñ#4Ñ4ð  5r6cóp€\VPVPVPVP34#r,)rùr‹rŽr�rŒrÏs&r4rúÚDocTestCase.__hash__ s3€Ü�T×)Ñ)¨4¯>©>¸4×;LÑ;LØ×%Ñ%ð'ó(ð (r6có’€VPPPR4pVR,: RRPVRR4: R2#)r³rNr8rŸ)r�rJr¡râ)r:rJs& r4r9ÚDocTestCase.__repr__ƒ s<€Ø�}‰}×!Ñ!×'Ñ'¨Ó,ˆØ  ŸH˜H c§h¡h¨t°C°R¨yÖ&9Ð:Ð:r6có<€RVPP,#)z Doctest: rªrÏs&r4ÚshortDescriptionÚDocTestCase.shortDescription‰ s€Ø˜TŸ]™]×/Ñ/Õ/Ð/r6)rŒr”r‹rŽr�r�)r±NNN)r=r>r?r@rÃr�r‘rŸr�r"r rörúr9rtrer³rArBr�s@r4r‡r‡èsOø‡€ô%ò!ò*òZò2 òFòP"ò5ò(ò;ð�n‰n€G÷0ð0r6r‡có<a€]tRtRtoRtRtRtRt]tRt Vt R#)ÚSkipDocTestCaseiŒ có>€Wn\PVR4R#r,)rgr‡rÃ)r:rgs&&r4rÃÚSkipDocTestCase.__init__� s€ØŒ Ü×јT 4Ö(r6có(€VPR4R#)z-DocTestSuite will not work with -O2 and aboveN)ÚskipTestrÏs&r4r�ÚSkipDocTestCase.setUp‘ s€Ø � ‰ ÐEÖFr6có€R#r,r<rÏs&r4Ú test_skipÚSkipDocTestCase.test_skip” ó€Ù r6có<€RVPP,#)zSkipping tests from %s)rgr=rÏs&r4r³Ú SkipDocTestCase.shortDescription— s€Ø'¨$¯+©+×*>Ñ*>Õ>Ð>r6)rgN) r=r>r?r@rÃr�r½r³rerArBr�s@r4r¶r¶Œ s!ø‡€ò)òGò ò?ð†Gr6r¶có&a€]tRtRtoRtRtVtR#)Ú _DocTestSuitei� có€R#r,r<)r:rÐs&&r4Ú_removeTestAtIndexÚ _DocTestSuite._removeTestAtIndexŸ r¿r6r<N)r=r>r?r@rÅrArBr�s@r4rÃrÃ� sø‡€÷ ð r6rÃc ó€Vf \4p\V4pVPWVR7pV'gF\PP ^8¼d'\ 4pVP\V44V#VP4\ 4pVFmp\VP4^8XdKVP'g"VPpVRRR8XdVRRpW‡n VP\V3/VB4Ko V#)a® Convert doctest tests for a module to a unittest test suite. This converts each documentation string in a module that contains doctest tests to a unittest test case. If any of the tests in a doc string fail, then the test case fails. An exception is raised showing the name of the file containing the test and a (sometimes approximate) line number. The `module` argument provides the module to be tested. The argument can be either a module or a module name. If no argument is given, the calling module is used. A number of options may be provided as keyword arguments: setUp A set-up function. This is called before running the tests in each file. The setUp function will be passed a DocTest object. The setUp function can access the test globals as the globs attribute of the test passed. tearDown A tear-down function. This is called after running the tests in each file. The tearDown function will be passed a DocTest object. The tearDown function can access the test globals as the globs attribute of the test passed. globs A dictionary containing initial global variables for the tests. optionflags A set of doctest option flags expressed as an integer. NrxrŒr�rŸ)rrir£r_rRÚoptimizerÃÚaddTestr¶rgrIrþryrÛr‡) rgrQriÚ test_finderrîrjÚsuiter‡rys &&&&, r4rr£ sÝ€ðJÒÜ#“oˆ ä ˜vÓ &€FØ × Ñ ˜V¸ZÐ Ó H€Eç ”S—Y‘Y×'Ñ'¨!Ô+ä“ˆØ � ‰ ”o fÓ-Ô.؈ à ‡J�J„LÜ ‹O€EãˆÜ ˆt�}‰}Ó  Ô "Ù Ø�}�}ˆ}Ø—‘ˆHؘ˜ˆ} Ô&Ø# C R˜=�Ø$ŒMØ � ‰ ”k $Ñ2¨'Ñ2Ö3ñð €Lr6có2a€]tRtRtoRtRtRtRtVtR#)Ú DocFileCaseiã cój€RPVPPPR44#)rr³)râr�rJr¡rÏs&r4r ÚDocFileCase.idå s&€Ø�x‰x˜Ÿ ™ ×*Ñ*×0Ñ0°Ó5Ó6Ð6r6có.€VPP#r,)r�ryrÏs&r4r9ÚDocFileCase.__repr__è s€Ø�}‰}×%Ñ%Ð%r6cón€RVPP: RVPP: RV: 2#)r¢r£z ", line 0 )r�rJry)r:r¤s&&r4r�ÚDocFileCase.format_failureë s(�à—=‘=×%Ô% t§}¡}×'=Ô'=ºsðDð r6r<N) r=r>r?r@r r9r�rArBr�s@r4rÍrÍã sø‡€ò7ò&÷ðr6rÍc ó*€Vf/pMVP4pV'dV'g \R4h\YTT;'gR4wrpRV9dWR&\PP V4pVP WsW€^4p \V 3/VB#)NrrrÛ)rrßr~ràrár€r%rÍ) rár{rzrQrYrrrîÚdocrJr‡s &&&&&&, r4Ú DocFileTestrÖð s›€ð ‚}Ø‰à— ‘ “ ˆç—Üð+ó,ð ,ô˜t¨oØ'×2Ð2¨7ó4�I€Cð˜ÔØ ˆjÑô �7‰7× Ñ ˜DÓ !€Dð × Ñ ˜c¨$°aÓ 8€DÜ �tÑ '˜wÑ 'Ð'r6cóÌ€\4pVPRR4'd\VPR44VR&VFpVP\ V3/VB4K V#)aåA unittest suite for one or more doctest files. The path to each doctest file is given as a string; the interpretation of that string depends on the keyword argument "module_relative". A number of options may be provided as keyword arguments: module_relative If "module_relative" is True, then the given file paths are interpreted as os-independent module-relative paths. By default, these paths are relative to the calling module's directory; but if the "package" argument is specified, then they are relative to that package. To ensure os-independence, "filename" should use "/" characters to separate path segments, and may not be an absolute path (i.e., it may not begin with "/"). If "module_relative" is False, then the given file paths are interpreted as os-specific paths. These paths may be absolute or relative (to the current working directory). package A Python package or the name of a Python package whose directory should be used as the base directory for module relative paths. If "package" is not specified, then the calling module's directory is used as the base directory for module relative filenames. It is an error to specify "package" if "module_relative" is False. setUp A set-up function. This is called before running the tests in each file. The setUp function will be passed a DocTest object. The setUp function can access the test globals as the globs attribute of the test passed. tearDown A tear-down function. This is called after running the tests in each file. The tearDown function will be passed a DocTest object. The tearDown function can access the test globals as the globs attribute of the test passed. globs A dictionary containing initial global variables for the tests. optionflags A set of doctest option flags expressed as an integer. parser A DocTestParser (or subclass) that should be used to extract tests from the files. encoding An encoding that will be used to convert the files to unicode. r{Trz)rÃrNrirÉrÖ)ÚpathsÚkwrËrás*, r4rr s^€ôp ‹O€Eð  ‡v�vР×&Ò&Ü)¨"¯&©&°Ó*;Ó<ˆˆ9‰ ãˆØ � ‰ ”k $Ñ-¨"Ñ-Ö.ñð €Lr6có°€.p\4PV4FÅp\V\4'dyVP VP RR4VP pV'dEVP R4YPR4RRUu.uF pRV,NK up, pK�K‘TVPR4RRUu.uFp\V4NK up, pKÇ V'd!VR,R8XdVP4K(V'd"V^,R8XdVP^4K)RPV4R,#uupiuupi)aExtract script from text with examples. Converts text with examples to a Python script. Example input is converted to regular code. Example output and all other words are converted to comments: >>> text = ''' ... Here are examples of simple math. ... ... Python has super accurate integer addition ... ... >>> 2 + 2 ... 5 ... ... And very friendly error messages: ... ... >>> 1/0 ... To Infinity ... And ... Beyond ... ... You can use logic if you want: ... ... >>> if 0: ... ... blah ... ... blah ... ... ... ... Ho hum ... ''' >>> print(script_from_examples(text)) # Here are examples of simple math. # # Python has super accurate integer addition # 2 + 2 # Expected: ## 5 # # And very friendly error messages: # 1/0 # Expected: ## To Infinity ## And ## Beyond # # You can use logic if you want: # if 0: blah blah # # Ho hum Nz # Expected:r”z## r¬rŸ) rr!rZrrrìr¤r¡r¯rrâ)rƒrÚpiecer¤rs& r4rrS s €ðt€FÜ“×&Ñ& qÖ)ˆÜ �eœW× %Ò %à �M‰M˜%Ÿ,™, s¨Ð+Ô ,à—:‘:ˆDߨ— ‘ ˜mÔ,دJ©J°tÓ,<¸S¸bÑ,AÓBÑ,A q˜5 Ÿ7˜7Ñ,AÑBÕB’ñð Ø %§ ¡ ¨DÓ 1°#°2Ñ 6ó8Ù 6˜1ô% QÖ'Ù 6ñ8õ 8ŠFñ*÷ �V˜B•Z 3Ô&Ø� ‰ Ž ß �V˜A•Y #Ô%Ø� ‰ �1Ž ð �9‰9�VÓ ˜tÕ #Ð#ùòCùò8s ÂEÃEcó€\V4p\4PV4pVUu.uFq3PV8XgKVNK ppV'g \ VR4hV^,p\ VP 4pV#uupi)zóExtract the test sources from a doctest docstring as a script. Provide the module (or dotted name of the module) containing the test to be debugged and the name (within the module) of the object with the doc string with tests to be debugged. znot found in tests)rirr£rJrßrrÿ)rgrJrjÚtr‡Útestsrcs&& r4r r ¥ sp€ô˜vÓ &€FÜ ‹O× Ñ  Ó (€EÙÓ /‘u�!§¡¨$¡�AˆA‘u€DÐ /ß Ü˜Ð3Ó4Ð4Ø ��7€DÜ" 4§>¡>Ó2€GØ €Nùò 0s ©A<ÁA<có4€\V4p\W1V4R#)z3Debug a single doctest docstring, in argument `src`N)rÚ debug_script)ÚsrcÚpmrQrÞs&&& r4r!r!µ s€ä" 3Ó'€GÜ�˜eÖ$r6có¾€^RIpV'dVP4pM/pV'd\WV4R#VP !RR7PRV,W"4R# \\P !4^,4TP !RR7pTP4TPR\P !4^,4R#;i)z7Debug a test script. `src` is the script, as a string.NT)r¾zexec(%r)) rÁrrÖr€r_r‹rÂrÉÚ interactionr")rárârQrÁÚps&&& r4ràrຠs”€ãç Ø— ‘ “ ‰àˆç ð 3Ü �˜UÖ #ð �Š˜Ô×"Ñ" :°Õ#3°UÖBøð  3Ü ”#—,’,“. Õ#Ô $Ø—’ Ô&ˆAØ �G‰GŒIØ �M‰M˜$¤§ ¢ £¨qÕ 1× 2ús © A#Á#A6Ccó^€\V4p\W4p\W2VP4R#)zÕDebug a single doctest docstring. Provide the module (or dotted name of the module) containing the test to be debugged and the name (within the module) of the object with the docstring with tests to be debugged. N)rir ràrd)rgrJrârÞs&&& r4r"r"Î s&€ô˜vÓ &€FܘÓ&€GÜ�˜fŸo™oÖ.r6có6a€]tRtRtoRtRtRtRtRtVt R#)Ú _TestClassiÜ zÁ A pointless class, for sanity-checking of docstring testing. Methods: square() get() >>> _TestClass(13).get() + _TestClass(-12).get() 1 >>> hex(_TestClass(13).square().get()) '0xa9' c ó€WnR#)zdval -> _TestClass object with associated value val. >>> t = _TestClass(123) >>> print(t.get()) 123 N©r‰)r:r‰s&&r4rÃÚ_TestClass.__init__ê s €ðŽr6c ó6€VP^,VnV#)zWsquare() -> square TestClass's associated value >>> _TestClass(13).square().get() 169 rêrÏs&r4ÚsquareÚ_TestClass.squareô s€ð—8‘8˜q•=ˆŒØˆ r6c ó€VP#)z^get() -> return TestClass's associated value. >>> x = _TestClass(-42) >>> print(x.get()) -42 rêrÏs&r4rNÚ_TestClass.getþ s €ð�x‰xˆr6rêN) r=r>r?r@rØrÃrírNrArBr�s@r4rèrèÜ sø‡€ñ òò÷ðr6rèrzÄ Example of a string object, searched as-is. >>> x = 1; y = 2 >>> x + y, x * y (3, 2) zbool-int equivalenceaÜ In 2.2, boolean expressions displayed 0 or 1. By default, we still accept them. This can be disabled by passing DONT_ACCEPT_TRUE_FOR_1 to the new optionflags argument. >>> 4 == 4 1 >>> 4 == 4 True >>> 4 > 4 0 >>> 4 > 4 False z blank lineszç Blank lines can be marked with : >>> print('foo\n\nbar\n') foo bar Úellipsiszú If the ellipsis flag is used, then '...' can be used to elide substrings in the desired output: >>> print(list(range(1000))) #doctest: +ELLIPSIS [0, 1, 2, ..., 999] zwhitespace normalizationaƒ If the whitespace normalization flag is used, then differences in whitespace are ignored. >>> print(list(range(30))) #doctest: +NORMALIZE_WHITESPACE [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] c ó:€^RIpVPRRR7pVPRRRRR R 7VPR R R \P 4.RR7VPRRRRR7VPRRRR7VP 4pVP pVPp^pVPFpV\V,,pK VP'dV\,pVF¥pVPR4'dq\PPV4wr‡\PP!^V4\#VRR4p \P^\%W”VR7wr«M\'VRWER7wr«V 'gK¤^# ^#)r±Nzdoctest runnerT)Ú descriptionÚcolorr¥z --verboseÚ store_trueFz'print very verbose output for all tests)ÚactionÚdefaultÚhelpz-oz--optionrzqspecify a doctest option flag to apply to the test run; may be specified more than once to apply multiple options)röÚchoicesr÷røz-fz --fail-fastzystop running tests after first failure (this is a shorthand for -o FAIL_FAST, and is in addition to any other -o options))rörør‡r9z file containing the tests to run)Únargsrøz.pyrw)r{rXr§éýÿÿÿ)ÚargparseÚArgumentParserÚ add_argumentrGÚkeysÚ parse_argsr‡rXr=Ú fail_fastrr•ràrár¡r_Úinsertr\rr) rürYrÓÚ testfilesrXrîr=ryÚdirnamer rªrs r4Ú_testr; s�€Ûà × $Ñ $Ð1AÈÐ $Ó N€FØ ×ј˜k°,ÈØFðôHà ×ј˜j°Ü 3× 8Ñ 8Ó :ÀBðEðôGð  ×ј˜m°LðFðôHð ×ј cØ?ðôAà × Ñ Ó €DØ— ‘ €Ið�l‰l€GØ€GØ—+”+ˆØÔ& vÕ.Õ.Šñà ‡~‡~€~Ø”9ÕˆÛˆØ × Ñ ˜U× #Ò #ô!#§¡§ ¡ ¨hÓ 7Ñ ˆGÜ �H‰H�O‰O˜A˜wÔ 'ܘ8 C R˜=Ó)ˆAÜ—‘˜� Ü! !À'ÔJ‰KˆH�aä" 8¸UØ-4ôK‰KˆHç ‰8Úññ r6rÜ)rÍ)é) NNNNTr±NFF)FÚNoNameNr±r¢)FNr)ZrØÚ __docformat__Ú__all__rLrUr•rXrbràrÁr�r_rˆr‰Úior#r$Ú collectionsr%rr&r'Ú __unittestr)rGrrrrrrrr r r r r rrrMr rUrirmr~r…r�r’rªr¯r¹rÂr»rsrrrrrr+rÚ Exceptionrrrryrrrr„rrŠr‡r¶Ú TestSuiterÃrrÍrÖrrr r!ràr"rèrrr=Úexitr<r6r4Úrsµðñ%ðN&€ ð+ àð+ ðð+ ðð + ð ð + ð ð + ð ð+ ðð+ ðð+ ðð+ ðð+ ðð+ ð ð+ ðð+ ðð+ ð$ð%+ ð&ð'+ ð*ð++ ð.ð/+ ð2ð3+ ð4ð5+ ð6ð7+ ð8ð9+ ð:ð;+ ð>ð?+ ð@ðA+ ðBðC+ ðFðG+ ðHðI+ ðJðK+ ðNðO+ ðPðQ+ ðRðS+ ðT ðU+ €óZÛÛÛÛÛ Û Û Û ÛÛß2Ý"Ûß.ð€ ô&‘*˜]Ð,>Ó?ô&ðLÐòOñ-Ð-EÓFÐÙ+Ð,CÓDÐÙ*Ð+AÓBÐÙ ˜zÓ *€Ù˜6Ó"€Ù-Ð.GÓHÐà*Ø)õ*à(õ)ðõðõ ð ,õ ,Ðñ# >Ó2€ Ù" >Ó2€ Ù" >Ó2€ Ù/Ð0KÓLÐÙ   Ó ,€ àØõ àõ ð-õ-ðõ €ð!ÐØ€ò& ô>ò2Dò"ô$/ò ô  �ô  ò/òbòô4"%˜CŸG™Gô"%òJ ,÷\B$ñB$÷HGDñGD÷Zd;ñd;÷VMñM÷f o/ño/õd÷P5ñP5ôd�Yôô&˜)ôô&e1�-ôe1ð\ €ôfLðR(,°$ÀØ ¨dÀبU¹=»?ØôyLôx4ð6Ðò!ôHb0�(×#Ñ#ôb0ôH�kôô" �H×&Ñ&ô ô >ô@ �+ô ð'+°DØ¡=£?Øô(ò4CòRP$òdô %ô Cô( /÷*ñ*ðX ˜*Ø ðð #ð%(ð ðð ðð 'ð)ðQ0 €òf* ðZ ˆzÔØ‡H‚H‰U‹WÖñr6