+
    Bi`c                       ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIH t H!t! ^ RIH"t" ^ RIH#t# ^ RIH$t$ ^ RI%H&t&H't'H(t( ^ R	IH)t) ^ R
IH*t*H+t+H,t,H-t-H.t.H/t/ ^ RI0H1t1H2t2H3t3 ^ RI4H5t5 ^ RI4H6t6  ! R R4      t7]PD                  Pp                  '       d   R?t9MR@t9RPu                  4       t;]<;QJ d    . R ]9 4       F  NK  	  5M! R ]9 4       4      t=Rt>]<;QJ d    . R ]9 4       F  NK  	  5M! R ]9 4       4      t?RP                  R]P                  4      tBRtCRPu                  4       tDRPu                  4       tERPu                  4       tFRPu                  4       tGRPu                  4       tHR tIR tJR tKR tLR  tMR! tNR" tOR# tP ! R$ R%]P                  4      tR ! R& R']P                  4      tS ! R( R)]R4      tT ! R* R+4      tU ! R, R-]U4      tV ! R. R/]P                  4      tW ! R0 R1]P                  4      tX]P                  ! ]-R24       ! R3 R4]P                  4      4       tZ ! R5 R6]R4      t[ ! R7 R8]P                  4      t\ ! R9 R:]P                  4      t] ! R; R<]P                  4      t^R= t_]`R>8X  d   ]P                  ! 4        R# R# )A    N)StringIO)
namedtuple)urlopen
urlcleanup)support)import_helper)	os_helper)assert_python_okassert_python_failurespawn_python)threading_helper)reap_childrencaptured_stdoutcaptured_stderr	is_wasm32requires_docstringsMISSING_C_DOCSTRINGS)TESTFNrmtreeunlink)	pydoc_mod)pydocfodderc                       ] tR t^*tRtR# )nonascii N__name__
__module____qualname____firstlineno____static_attributes__r       1/usr/lib/python3.14/test/test_pydoc/test_pydoc.pyr   r   *   s    r"   r   a:  
NAME
    test.test_pydoc.pydoc_mod - This is a test module for test_pydoc
%s
CLASSES
    builtins.object
        A
        B
        C

    class A(builtins.object)
     |  Hello and goodbye
     |
     |  Methods defined here:
     |
     |  __init__()
     |      Wow, I have no function!
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__%s
     |
     |  __weakref__%s

    class B(builtins.object)
     |  Data descriptors defined here:
     |
     |  __dict__%s
     |
     |  __weakref__%s
     |
     |  ----------------------------------------------------------------------
     |  Data and other attributes defined here:
     |
     |  NO_MEANING = 'eggs'

    class C(builtins.object)
     |  Methods defined here:
     |
     |  get_answer(self)
     |      Return say_no()
     |
     |  is_it_true(self)
     |      Return self.get_answer()
     |
     |  say_no(self)
     |
     |  ----------------------------------------------------------------------
     |  Class methods defined here:
     |
     |  __class_getitem__(item)
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables
     |
     |  __weakref__
     |      list of weak references to the object

FUNCTIONS
    doc_func()
        This function solves all of the world's problems:
        hunger
        lack of Python
        war

    nodoc_func()

DATA
    __xyz__ = 'X, Y and Z'
    c_alias = test.test_pydoc.pydoc_mod.C[int]
    list_alias1 = typing.List[int]
    list_alias2 = list[int]
    type_union1 = int | str
    type_union2 = int | str

VERSION
    1.2.3.4

AUTHOR
    Benjamin Peterson

CREDITS
    Nobody

FILE
    %s
c              #   H   "   T F  pV'       d
   R V,           MRx  K  	  R# 5i)z
     |       Nr   .0ss   & r#   	<genexpr>r)      s&      &I/G! ?@&6&:R&G/G   ""a6  
test.test_pydoc.pydoc_mod (version 1.2.3.4)
This is a test module for test_pydoc

Modules
    types
    typing

Classes
    builtins.object
    A
    B
    C

class A(builtins.object)
    Hello and goodbye

    Methods defined here:
        __init__()
            Wow, I have no function!
    ----------------------------------------------------------------------
    Data descriptors defined here:
        __dict__
            dictionary for instance variables
        __weakref__
            list of weak references to the object

class B(builtins.object)
    Data descriptors defined here:
        __dict__
            dictionary for instance variables
        __weakref__
            list of weak references to the object
    ----------------------------------------------------------------------
    Data and other attributes defined here:
        NO_MEANING = 'eggs'


class C(builtins.object)
    Methods defined here:
        get_answer(self)
            Return say_no()
        is_it_true(self)
            Return self.get_answer()
        say_no(self)
    ----------------------------------------------------------------------
    Class methods defined here:
        __class_getitem__(item)
    ----------------------------------------------------------------------
    Data descriptors defined here:
        __dict__
            dictionary for instance variables
        __weakref__
             list of weak references to the object

Functions
    doc_func()
        This function solves all of the world's problems:
        hunger
        lack of Python
        war
    nodoc_func()

Data
    __xyz__ = 'X, Y and Z'
    c_alias = test.test_pydoc.pydoc_mod.C[int]
    list_alias1 = typing.List[int]
    list_alias2 = list[int]
    type_union1 = int | str
    type_union2 = int | str

Author
    Benjamin Peterson

Credits
    Nobody
c              #   F   "   T F  pVP                  R R4      x  K  	  R# 5i) &nbsp;N)replacer&   s   & r#   r)   r)      s&      &I/G! '(iiX&>&>/Gs   !z~No Python documentation found for %r.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
z7problem in %s - ModuleNotFoundError: No module named %ra%  
Help on class DA in module %s:

class DA(builtins.object)
 |  Data descriptors defined here:
 |
 |  __dict__%s
 |
 |  __weakref__%s
 |
 |  ham
 |
 |  ----------------------------------------------------------------------
 |  Data and other attributes inherited from Meta:
 |
 |  ham = 'spam'
z
Help on class Class in module %s:

class Class(builtins.object)
 |  Data and other attributes inherited from Meta:
 |
 |  LIFE = 42
z
Help on class Class1 in module %s:

class Class1(builtins.object)
 |  Data and other attributes inherited from Meta1:
 |
 |  one = 1
a  
Help on class Class2 in module %s:

class Class2(Class1)
 |  Method resolution order:
 |      Class2
 |      Class1
 |      builtins.object
 |
 |  Data and other attributes inherited from Meta1:
 |
 |  one = 1
 |
 |  ----------------------------------------------------------------------
 |  Data and other attributes inherited from Meta3:
 |
 |  three = 3
 |
 |  ----------------------------------------------------------------------
 |  Data and other attributes inherited from Meta2:
 |
 |  two = 2
z~
Help on class C in module %s:

class C(builtins.object)
 |  Data and other attributes defined here:
 |
 |  here = 'present!'
c                 v    W3,           p\        R \        P                  .VO5/ VB w  r4pVP                  4       # z-B)r
   pydoc__file__stripmodule_nameargsenvrcouterrs   &*,   r#   	run_pydocr<   4  s8    
 . D#D%..G4G3GLBS99;r"   c                 v    W3,           p\        R \        P                  .VO5/ VB w  r4pVP                  4       # r1   )r   r2   r3   r4   r5   s   &*,   r#   run_pydoc_failr>   >  s8     . D(u~~LLLLBS99;r"   c                     \         P                  ! 4       pVP                  V 4      pVP                  \        4      ;'       g    R pV'       d   RV,           R,           pVP                  4       V3# )r%   z<br><a href="z">Module Docs</a>)r2   HTMLDoc	docmodule	getdoclocr   r4   )moduledocoutputlocs   &   r#   get_pydoc_htmlrG   F  sU    
--/C]]6"F
--	
"
(
(bC
$';;<<>3r"   c                 2    \         P                  ! R RV 4      # )z.r%   )resubrD   s   &r#   
clean_textrL   O  s    66%S!!r"   c           	          \         P                  P                  p\         P                  P                  pV! V! V! V! \        4      4      4      4      p\
        P                  ! 4       pVP                  WR 7      pV# ))basedir)ospathabspathdirnamer3   r2   TextDocrB   )rC   rQ   rR   rN   rD   rF   s   &     r#   get_pydoc_linkrT   S  sU    ggooGggooGgggh&789:G
--/C
---
0CJr"   c                     \         P                  ! 4       pVP                  \        4      ;'       g    R pV'       d   RV,           R,           pVP	                  V 4      p\        V4      pVP                  4       V3# )r%   z
MODULE DOCS
    r/   )r2   rS   rB   r   rA   rL   r4   )rC   rD   rF   rE   s   &   r#   get_pydoc_textrV   \  s^    
--/C
--	
"
(
(bC
#c)D0]]6"FF<<>3r"   c                     V P                  R 4      w  p pVP                  R4      w   r#VP                  R4      w  p pV# )z</head>z<title>z</title>)	partition)textheader_titles   &   r#   get_html_titler]   g  sC    >>),LFAq""9-KAq//*-KE1aLr"   c           	          V P                  R R4      p V P                  RR4      p \        P                  ! RRV 4      p \        P                   ! V RRRRR	R
4      p V # )z<dd>r/   z<hr>z<.*?>r%   r-   r,   z&gt;>z&lt;<F----------------------------------------------------------------------)r.   rI   rJ   r2   )htmls   &r#   	html2textrc   o  sU    
 <<%D<<'D66'2t$D==xfc63GDKr"   c                   ^   a  ] tR tRt o R tRR lt]P                  RR l4       tR t	Rt
V tR# )	PydocBaseTesti{  c                \    V P                  \        P                  R ,          \        4       R# r2   NassertIssysmodulesr2   selfs   &r#   tearDownPydocBaseTest.tearDown|  s     	ckk'*E2r"   Nc                x   aa T;'       g%    \         P                  P                  \        4      .oRVV3R llpV# )Nc                 *   < S! T ;'       g    SW4      # Nr   )rP   prefixonerrordefault_pathwalk_packagess   &&&r#   wrapper8PydocBaseTest._restricted_walk_packages.<locals>.wrapper  s     !5!5vGGr"   )Nr%   N)rO   rP   rR   r3   )rm   rv   rP   rw   ru   s   &f& @r#   _restricted_walk_packages'PydocBaseTest._restricted_walk_packages  s3    
 :: 9:	H 	Hr"   c              #     "   \         P                  pV P                  VV4      \         n         R x  V\         n        R #   T\         n        i ; i5irr   )pkgutilrv   ry   )rm   rP   rv   s   && r#   restrict_walk_packages$PydocBaseTest.restrict_walk_packages  sA     -- $ > >}?C!E	2$1G!MG!s   ,AA  A AAc                n    \         P                  ! VR 4      p\        V4      pV P                  WBV4       V# )z	text/html)r2   _url_handlerr]   assertEqual)rm   urlexpected_titlerY   results   &&&  r#   call_url_handlerPydocBaseTest.call_url_handler  s3    !!#{3%6r"   r   rr   )r   r   r   r    rn   ry   
contextlibcontextmanagerr}   r   r!   __classdictcell____classdict__s   @r#   re   re   {  s3     3 2 2 r"   re   c                     a  ] tR tRt o RtR t]P                  ! ]! ]	R4      ;'       d    ]	P                  ! 4       R4      ]R 4       4       t]P                  ! ]! ]	R4      ;'       d    ]	P                  ! 4       R4      ]R 4       4       tR tR	 tR
 tR tR tR tR t]R 4       tR tR tR tR tR tR tR tR tR t]P                  ! ]! ]	R4      ;'       d    ]	P                  ! 4       R4      ]P>                  PA                  R4      ]R 4       4       4       t!]P                  ! ]! ]	R4      ;'       d    ]	P                  ! 4       R4      ]]P>                  PA                  R4      R 4       4       4       t"]P                  ! ]! ]	R4      ;'       d    ]	P                  ! 4       R4      ]R 4       4       t#R t$R t%]P>                  PA                  R4      R 4       t&]P                  ! ]! ]	R4      ;'       d    ]	P                  ! 4       R4      ]]P>                  PA                  R4      R  4       4       4       t'R! t(R" t)R# t*R$ t+R% t,R& t-R' t.]R( 4       t/R) t0R* t1R+ t2R, t3R- t4]R. 4       t5R/ t6R0 t7R1t8V t9R# )2PydocDocTesti  Nc                \    V P                  \        P                  R ,          \        4       R# rg   rh   rl   s   &r#   rn   PydocDocTest.tearDown      ckk'*E2r"   gettrace1trace function introduces __locals__ unexpectedlyc                `   \        \        4      w  r\        V4      pVP                  4        Uu. uF  qDP	                  4       NK  	  ppV Uu. uF  qD'       g   K  VNK  	  ppV^ \
        P                  4       pV Uu. uF  qD'       g   K  VP	                  4       NK  	  ppV P                  WV4       \        P                  ! \        4      p\        P                  P                  V4      pV P                  W4       V P                  Wq4       V P                  W!4       R# u upi u upi u upi    N)rG   r   rc   
splitlinesr4   html2text_of_expectedr   inspect
getabsfileurllibparsequoteassertIn)	rm   r   doc_loctext_resultline
text_linesexpected_linesmod_filemod_urls	   &        r#   test_html_docPydocDocTest.test_html_doc  s     )3'/:/E/E/GH/Gtjjl/G
H'1:ztTddz
:qM.99;3AJ>4T,$**,>J4%%i0,,$$X.g&h'g& I: Ks   D!	D&D&>	D+D+c                    \        \        4      w  r\        V3\        ,           \        P
                  ! \        4      3,           ,          pV P                  W14       R # rr   )rV   r   expected_text_patternexpected_text_data_docstringsr   r   r   )rm   r   r   expected_texts   &   r#   test_text_docPydocDocTest.test_text_doc  sM     )3- 
56 ++I689: 	/r"   c                    ^ RI p ! R RVP                  4      p\        P                  ! V4      pV P	                  RV4       R# )r   Nc                       ] tR tRt^ t^tRtR# )IPydocDocTest.test_text_enum_member_with_value_zero.<locals>.BinaryIntegeri  r   N)r   r   r   r    zerooner!   r   r"   r#   BinaryIntegerr     s    DCr"   r   zBinaryInteger.zero)enumIntEnumr2   
render_docr   )rm   r   r   rD   s   &   r#   %test_text_enum_member_with_value_zero2PydocDocTest.test_text_enum_member_with_value_zero  s8     		DLL 	 }-*C0r"   c                   a ^ RI oSP                  RR7       ! V3R lR4      4       p\        P                  ! V4      pV P	                  RV4       R# )r   NT)slotsc                   T   <a  ] tR tRt o  ZP	                  RR7      tV 3R ltRtV tR# )?PydocDocTest.test_slotted_dataclass_with_field_docs.<locals>.Myi  Docstring for xrK   c                &   < V ^8  d   Qh/ S[ ;R&   # )   xint)formatr   s   "r#   __annotate__LPydocDocTest.test_slotted_dataclass_with_field_docs.<locals>.My.__annotate__  s     = r"   r   N)	r   r   r   r    fieldr   __annotate_func__r!   r   )r   dataclassess   @r#   Myr     s       &&+<&=A  r"   r   r   )r   	dataclassr2   r   r   )rm   r   rD   r   s   &  @r#   &test_slotted_dataclass_with_field_docs3PydocDocTest.test_slotted_dataclass_with_field_docs  sJ    			T		*	> 	> 
+	>r"'-r"   c                p    \        \        P                  P                  4      pV P	                  R V4       R# )zxml.etree.elementtreeN)rT   xmletreeElementTreer   )rm   doc_links   & r#   ,test_mixed_case_module_names_are_lower_cased9PydocDocTest.test_mixed_case_module_names_are_lower_cased  s%    !#))"7"78-x8r"   c                b    \        \        P                  4      w  rV P                  VR R4       R# )r%   z'MODULE DOCS incorrectly includes a linkN)rV   r   r   r   )rm   r   r   s   &  r#   test_issue8225PydocDocTest.test_issue8225  s%    (3"&OPr"   c                    \         P                  p R \         n        \        P                  ! 4        V\         n        R #   T\         n        i ; irr   )rj   stdinr2   getpager)rm   previous_stdins   & r#   test_getpager_with_stdin_none*PydocDocTest.test_getpager_with_stdin_none  s0    	'CINN&CICIs	    ? Ac                     ! R  R4      p ! R R4      p\         P                  ! V! 4       4      p\         P                  ! V! 4       4      pV P                  VP                  RR4      V4       R# )c                       ] tR tRt^*t RtR# ))PydocDocTest.test_non_str_name.<locals>.Ai  r   Nr   r   r"   r#   Ar     s    Hr"   r   c                       ] tR tRtRtR# ))PydocDocTest.test_non_str_name.<locals>.Bi  r   Nr   r   r"   r#   Br         r"   r   N)r2   r   r   r.   )rm   r   r   adocbdocs   &    r#   test_non_str_namePydocDocTest.test_non_str_name  sU    	 		 	$$c3/6r"   c                r    R p\        \        V4      R4      p\        V,          pV P                  W2R4       R# )test.i_am_not_hereasciiz&documentation for missing module foundN)strr>   missing_patternr   rm   missing_moduler   expecteds   &   r#   test_not_herePydocDocTest.test_not_here  s5    -^N3W="^34	6r"   c                    \        R RR7      p\        P                  P                  RR4      pV P	                  W!4       R# )z#test.test_pydoc.test_pydoc.nonasciir   )PYTHONIOENCODINGbackslashreplaceN)r<   r   __doc__encoder   )rm   r   encodeds   &  r#   test_not_asciiPydocDocTest.test_not_ascii  s5    @SZ[""))'3EFg&r"   c                    R p\        \        V4      R4      p\        VP                  4       ,          pV P	                  W24       R# )z test.i_am_not_here r   N)r   r>   r   r4   r   r   s   &   r#   test_input_stripPydocDocTest.test_input_strip  s9    /^N3W="^%9%9%;;*r"   c                    \         P                  pV P                  V! R 4      R4       V P                  V! R4      R4       V P                  V! R4      R4       V P                  V! R4      R4       R# )z<function stripid at 0x88dcee4>z<function stripid>z <function stripid at 0x01F65390>42z<type 'exceptions.Exception'>N)r2   stripidr   )rm   r   s   & r#   test_stripidPydocDocTest.test_stripid  sl    --!BC-	/!CD-	/ 	-!@A8	:r"   c                    \         P                  ! 4       p ^ RIHp VP                  \        4      pRpV P                  W44       R#   \         d     L7i ; i)r   )HeapTypez |  Built-in subclasses:
 |      async_generator
 |      BaseException
 |      builtin_function_or_method
 |      bytearray
 |      ... and \d+ other subclassesN)r2   rS   	_testcapir  ImportErrordocclassobjectassertRegex)rm   rD   r  rY   snips   &    r#   )test_builtin_with_more_than_four_children6PydocDocTest.test_builtin_with_more_than_four_children  sT    * mmo	
 + ||F#8 	$  		s   A AAc                    \         P                  ! 4       pVP                  \        4      pR pV P	                  W24       R# )zc |  Built-in subclasses:
 |      FloatingPointError
 |      OverflowError
 |      ZeroDivisionErrorN)r2   rS   r  ArithmeticErrorr   rm   rD   rY   r	  s   &   r#   test_builtin_with_child$PydocDocTest.test_builtin_with_child7  s2    & mmo||O,, 	d!r"   c                    \         P                  ! 4       pVP                  \        4      pR pV P	                  W24       V P                  RV4       R# )z^ |  Built-in subclasses:
 |      ArithmeticError
 |      AssertionError
 |      AttributeErrorZeroDivisionErrorN)r2   rS   r  	Exceptionr   assertNotInr  s   &   r#   test_builtin_with_grandchild)PydocDocTest.test_builtin_with_grandchildR  sC    , mmo||I&) 	d!,d3r"   c                ~    \         P                  ! 4       pVP                  \        4      pV P	                  R V4       R# zBuilt-in subclassesN)r2   rS   r  r  r  rm   rD   rY   s   &  r#   test_builtin_no_child"PydocDocTest.test_builtin_no_childr  s/    . mmo||-..5r"   c                ~    \         P                  ! 4       pVP                  \        4      pV P	                  R V4       R# r  )r2   rS   r  typer  r  s   &  r#   test_builtin_on_metaclasses(PydocDocTest.test_builtin_on_metaclasses  s.     mmo||D!.5r"   c                \   \         R ,          P                  4       p\        R4      ;_uu_ 4       pVP                  R4      w  r4VP	                  4       P                  4       RR pV^ ,          P                  R4      V^ &   V P                  W4       RRR4       R#   + '       g   i     R# ; i)abdz-chelp()s   abdzhelp> Nii)r   r   r   communicatedecoderemoveprefixr   )rm   elinesprocr:   r[   oliness   &     r#   test_fail_help_cliPydocDocTest.test_fail_help_cli  s    !E)557-((D%%f-FCZZ\,,.r"5Fq	..x8F1IV,	 )(((s   A!BB+	c           	     d   \        4       ;_uu_ 4       p\        P                  ! VR 7      pVP                  R4       \        R,          pV P                  W1P                  4       P                  4       P                  R\        P                  4      4       RRR4       R#   + '       g   i     R# ; i)rE   r!  r/   N)r   r2   Helperhelpr   r   getvaluer4   r.   rO   linesep)rm   bufhelperr   s   &   r#   test_fail_help_output_redirect+PydocDocTest.test_fail_help_output_redirect  si    ZZ3\\-FKK&.HX||~';';'='E'EdBJJ'WX	 ZZZs   BBB/	pydoc.pagerc           	     $   R V n         \        \        4      w  r#RpRP                  4       p\        P
                  ! V4      pV\        ,           p\        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        4       p	\        P                  ! V	R7      p
V
P                  V4       V	P                  4       P                  4       pVV3\        ,           \         P"                  ! \        4      3,           ,          pV P%                  RVP                  4       4       V P%                  RVP                  4       4       V P%                  W4       R R R 4       R R R 4       VP'                  4        R #   + '       g   i     L*; i  + '       g   i     L5; i)Nztest.test_pydoc.pydoc_modzO
        Help on module test.test_pydoc.pydoc_mod in test.test_pydoc:

        r+  r%   )maxDiffrV   r   lstriptextwrapdedentr   r   r   r   r2   r,  r-  r.  r4   r   r   r   r   assert_not_called)rm   
pager_mockunusedr   rC   help_headerexpected_help_patternrE   r;   r0  r1  r   r   s   &&           r#   test_help_output_redirect&PydocDocTest.test_help_output_redirect  s%    (3, FH 	 ook2 +.C C&/*;*;s*C\\-FKK\\^))+F1$J9:$//	:<=>M R!23R0]3 +< 	$$& +<*;s%    E?3CE,	
E?,E<7E??F	c                  a a VV 3R  lpRS n         V! RR4       V! RR4       V! RR4       V! RR	4       V! R
R4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! \        P                  P                  R4       R# )c                 H  < \        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        4       p\        P                  ! VR 7      pVP                  V 4       VP                  4       P                  4       pSP                  RVP                  4       RV  R2R7       SP                  RVP                  4       RV  R2R7       SP                  WRV  R2R7       SP                  4        RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)r+  r%   zfailed on request "")msgN)r   r   r   r2   r,  r-  r.  r4   r   r   r:  )	requestexpected_text_partrE   r;   r0  r1  r   r;  rm   s	   &&     r#   run_pydoc_for_requestVPydocDocTest.test_help_output_redirect_various_requests.<locals>.run_pydoc_for_request  s     ""fo.?.?3jS1G$--/  V__%6>QRYQZZ[<\ ]  S\\^;NwiWX9Y Z0@ST[S\\]>^_,,. /@"".?.?"""s#   DCC=	+D=DDD!	Nkeywordsz&Here is a list of the Python keywords.symbolsz)Here is a list of the punctuation symbolstopicsz#Here is a list of available topics.%zThe power operatorTruezclass bool(int)FalseNonezclass NoneType(object)assertThe "assert" statementTYPESThe standard type hierarchypydoc.Helper.help&Help on function help in pydoc.Helper:&Help on function help in module pydoc:)r6  r2   r,  r-  )rm   r;  rG  s   ff r#   *test_help_output_redirect_various_requests7PydocDocTest.test_help_output_redirect_various_requests  s    
	/  	j*RSi)TUh(MN 	c#78f&78g'89f&>?h(@Ag'DE13[\ell//1YZr"   c                V  a  V 3R  lpV! RRR4       V! RRR4       V! RRR4       V! RRR	4       V! R
R
R4       V! RRR4       V! \         P                  P                  RR4       V! RRR4       V! \        RR4       V! RRR4       V! \        P                  RR4       V! RP                  RR4       V! \        P
                  RR4       V! RP
                  RR4       V! \        P                  RR4       V! \        \        ,          RR4       V! RRR4       V! \        RR4       R # )!c                   < \        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        P                  P	                  R 4      ;_uu_ 4       pSP                  \        V 4      4      ;_uu_ 4        \        P                  ! 4       pVP                  V 4       SP                  RVP                  4       4       SP                  RVP                  4       4       VP                  4        \        VP                  P                  ^ ,          4      pSP                  VP!                  4       ^ ,          V4       SP                  VP                  P                  ^,          RV 24       RRR4       RRR4       RRR4       RRR4       R#   + '       g   i     L*; i  + '       g   i     L5; i  + '       g   i     L@; i  + '       g   i     R# ; i)r4  r%   r/   zHelp on N)r   r   unittestmockpatchsubTestreprr2   r,  r-  r   r.  assert_called_oncerL   	call_argsr7   r   )	rE  whatexpected_first_linerE   r;   r;  r1  r   rm   s	   &&&     r#   run_pydoc_pager<PydocDocTest.test_help_output_pager.<locals>.run_pydoc_pager  s3   !##v!##s--%%m44
,,tG}--G$  S\\^4  v'89--/#J$8$8$=$=a$@A  !2!2!4Q!79LM  !5!5!:!:1!=$?PQ . 5 $ $# .- 54 $# $##sS   G(F.	#F2C4F&F.F.	6GFFF+&F.	.F>9GG	rL  EXPRESSIONSzOperator precedencerM  zbool objectzHelp on bool object:TrP  rQ  rR  rS  rT  rU  zHelper.helprV  r   z%Help on class str in module builtins:z	str.upperz'Help on method descriptor upper in str:z Help on method descriptor upper:r%   z Help on built-in function upper:zstr.__add__z"Help on method descriptor __add__:zHelp on method wrapper __add__:zint.numeratorz1Help on getset descriptor builtins.int.numerator:listz(Help on GenericAlias in module builtins:rj   zHelp on built-in module sys:N)
r2   r,  r-  r   upper__add__r   	numeratorrg  rj   )rm   rd  s   f r#   test_help_output_pager#PydocDocTest.test_help_output_pager  s4   	R 	],AB/EFm-CD(,DE*GH+-@@	B))=@	Bu&MNU$KL[A	C		;:	<+:	<%'K	M

%'H	JK	MS	6B	Du&DEU$BCr"   c                    \        4       ;_uu_ 4       p\        P                  ! 4       pVP                  R 4       RRR4       XP	                  4       pV P                  RV4       R#   + '       g   i     L4; i)withNThe "with" statement)r   r2   r,  	showtopicr.  r   )rm   showtopic_ior1  helptexts   &   r#   test_showtopicPydocDocTest.test_showtopic$  sS    ,\\^FV$   ((*,h7	 s   'A&&A6	c                   \        4       ;_uu_ 4       p\        P                  ! 4       pVP                  R 4       RpV P	                  W1P                  4       P                  4       4       RRR4       R#   + '       g   i     R# ; i)r!   no documentation found for 'abd'N)r   r2   r,  rp  r   r.  r4   )rm   rq  r1  r   s   &   r#   test_fail_showtopic PydocDocTest.test_fail_showtopic+  sZ    ,\\^FU#9HX'<'<'>'D'D'FG	 s   AA33B	c                0   \        4       ;_uu_ 4       p\        P                  ! VR 7      pVP                  R4       RpV P	                  WBP                  4       P                  4       4       RRR4       VP                  4        R#   + '       g   i     L"; i)r+  r!  rv  N)r   r2   r,  rp  r   r.  r4   r:  )rm   r;  r0  r1  r   s   &&   r#   #test_fail_showtopic_output_redirect0PydocDocTest.test_fail_showtopic_output_redirect2  sd    ZZ3\\-FU#9HX||~';';'=>	  	$$& Zs   ABB	c           	     0   R V n         \        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        4       p\        P
                  ! VR7      pVP                  R4       VP                  4       P                  4       pV P                  RVP                  4       4       V P                  RVP                  4       4       V P                  RV4       R R R 4       R R R 4       VP                  4        R #   + '       g   i     L*; i  + '       g   i     L5; i)Nr+  rn  r%   ro  )r6  r   r   r   r2   r,  rp  r.  r4   r   r   r:  )rm   r;  rE   r;   r0  r1  r   s   &&     r#   test_showtopic_output_redirect+PydocDocTest.test_showtopic_output_redirect<  s     &/*;*;s*C\\-FV$\\^))+FR!23R0MM0&9 +< 	$$& +<*;s#   DB#C2	D2D=DD	c                    R  pR\         /Vn        \        4       ;_uu_ 4       p\        P                  ! V4       RRR4       XP                  4       pV P                  RV4       R#   + '       g   i     L4; i)c                     ^# r   r   abcs   &&&r#   <lambda>APydocDocTest.test_lambda_with_return_annotation.<locals>.<lambda>Q      qr"   returnNzlambda (a, b, c) -> intr   __annotations__r   r2   r-  r.  r   rm   funchelp_iorr  s   &   r#   "test_lambda_with_return_annotation/PydocDocTest.test_lambda_with_return_annotationP  sU      (#'JJt ##%/: s   A&&A6	c                
   R  pR\         R\         R\         /Vn        \        4       ;_uu_ 4       p\        P                  ! V4       RRR4       XP                  4       pV P                  RV4       R#   + '       g   i     L4; i)c                     ^# r  r   r  s   &&&r#   r  DPydocDocTest.test_lambda_without_return_annotation.<locals>.<lambda>Y  r  r"   r  r  r  Nzlambda (a: int, b: int, c: int)r  r  s   &   r#   %test_lambda_without_return_annotation2PydocDocTest.test_lambda_without_return_annotationX  s^      #S#sC='JJt ##%7B s   A22B	c                   R  pR\         R\         R\         R\         /Vn        \        4       ;_uu_ 4       p\        P                  ! V4       RRR4       XP                  4       pV P                  RV4       R#   + '       g   i     L4; i)c                     ^# r  r   r  s   &&&r#   r  LPydocDocTest.test_lambda_with_return_and_params_annotation.<locals>.<lambda>a  r  r"   r  r  r  r  Nz&lambda (a: int, b: int, c: int) -> intr  r  s   &   r#   -test_lambda_with_return_and_params_annotation:PydocDocTest.test_lambda_with_return_and_params_annotation`  sb      #S#sChL'JJt ##%>I s   A88B	c                Z   \        R RR.4      p\        4       ;_uu_ 4       p\        P                  ! V4       RRR4       XP	                  4       pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       R#   + '       g   i     Lj; i)Personnickname	firstnameNzAlias for field number 0zAlias for field number 1r   r   r2   r-  r.  r   )rm   r  r  rr  s   &   r#   test_namedtuple_fields#PydocDocTest.test_namedtuple_fieldsh  s    Hz;&?@'JJv ##%j(+k8,0(;0(; s   BB*	c                :   \        R RR.RR7      p\        4       ;_uu_ 4       p\        P                  ! V4       RRR4       XP	                  4       pV P                  RV4       V P                  RV4       V P                  RV4       R#   + '       g   i     LX; i)	NTabcdefT)renameN_1_replace_asdictr  )rm   r  r  rr  s   &   r#   !test_namedtuple_public_underscore.PydocDocTest.test_namedtuple_public_underscorer  sp    uenT:'JJrN ##%dH%j(+i* s   B

B	c                   V P                  \        \        4       R
 F  p\        \        RVR7      ;_uu_ 4       pVR8w  d   \	        RP                  V4      VR7       \	        RVR7       \	        RVR7       RRR4       \        P                  ! \        / 4      pV P                  VR	4       K  	  R#   + '       g   i     LC; i)
ISO-8859-1UTF-8wencodingz#coding: {})fileu   """line 1: hézline 2: hi"""Nu   line 1: hé)r  r  )	
addCleanupr   r   openprintr   r2   synopsisr   )rm   r  scriptr  s   &   r#   test_synopsisPydocDocTest.test_synopsis{  s    '/HfcH55w&-..x8vF(v6oF3	 6
 ~~fb1HX7 055s   >B33Cc                X  a  R6V 3R llpV! RR4       V! RR4       V! RR4       V! RR4       V! R	R 4       V! R
R4       V! RR4       V! RR4       V! RR4       V! RR 4       V! RR 4       V! RR 4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR4       V! RR 4       V! R R!4       V! R"R 4       V! R#R 4       V! R$R%4       V! R&R 4       V! R'R(4       V! R)R*4       V! R+R 4       V! R,R-R.R/7       V! R0R R1R/7       \         P                  ! R2R1R37      ;_uu_ 4       pVP                  R44       VP                  4        VP	                  ^ 4       \
        P                  ! V4      pS P                  VR54       R R R 4       R #   + '       g   i     R # ; i)7Nc                 @  < \        V \        4      '       d   \        V 4      pM,\        P                  ! \        P
                  ! V 4      VR 7      pV;_uu_ 4        \        P                  ! V4      pSP                  WA4       RRR4       R#   + '       g   i     R# ; i)r  N)	
isinstancer   r   ioTextIOWrapperBytesIOr2   source_synopsisr   )sourcer   r  source_filer   rm   s   &&&  r#   check0PydocDocTest.test_source_synopsis.<locals>.check  sd    &#&&&v. ..rzz&/AHU..{;  2 s   (BB	z"""Single line docstring."""zSingle line docstring.z7"""First line of docstring.
Second line.
Third line."""zFirst line of docstring.z9"""First line of docstring.\nSecond line.\nThird line."""z&"""  Whitespace around docstring.  """zWhitespace around docstring.zimport sys
"""No docstring"""z$  
"""Docstring after empty line."""zDocstring after empty line.z(# Comment
"""Docstring after comment."""zDocstring after comment.z3  # Indented comment
"""Docstring after comment."""z""""""r%   z"""Embedded null byte"""z"""Embedded null byte""" u   """Café and résumé."""u   Café and résumé.z'''Triple single quotes'''zTriple single quotesz"Single double quotes"zSingle double quotesz'Single single quotes'zSingle single quotesz"""split\
line"""	splitlinez#"""Unrecognized escape \sequence"""zUnrecognized escape \sequencez"""Invalid escape seq\uence"""zr"""Raw \stri\ng"""zRaw \stri\ngzb"""Bytes literal"""zf"""f-string"""z("""Concatenated""" \
"string" 'literals'Concatenatedstringliteralsz"""String""" + """expression"""z("""In parentheses""")zIn parenthesesz,("""Multiple lines """
"""in parentheses""")zMultiple lines in parentheses()s%   # coding: iso-8859-15
"""uro sign"""u   €uro signziso-8859-15r  s   """"""zutf-8zw+)moder  z"""Real file test."""
zReal file test.rr   )tempfileNamedTemporaryFilewriteflushseekr2   r  r   )rm   r  	temp_filer   s   f   r#   test_source_synopsis!PydocDocTest.test_source_synopsis  s   	3 	,&	(I(	*K(	*6,	..	5+	-9(	*D(	*h	b	)	*	)#	%*$	&&$	&&$	&#	4.	0/	%	 $		<*	,/	&	 =-	/d	:m	5mW	& ((dWEEOO56OONN1**95FV%67 FEEEs   3AFF)	c                    \         P                  ! R 4      pVP                  P                  4       ^ ,          pVP                  P
                  p\        P                  ! V4      pV P                  WB4       R# )rO   N)	r   import_fresh_moduler   r   __spec__cachedr2   r  r   )rm   rO   r   filenamer  s   &    r#   test_synopsis_sourceless%PydocDocTest.test_synopsis_sourceless  sT    ..t4::((*1-;;%%>>(+,r"   c           	     F   \         P                  ! 4       ;_uu_ 4       p\        P                  P	                  VR 4      p\
        P                  P                  V4      p\        VR4      ;_uu_ 4       pVP                  R4       RRR4       \        P                  ! V4       \        P                  ! V/ 4      pV P                  V4       \        P                  ! V/ 4      pV P                  V4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)zfoomod42.pyr  foo = 1N)r	   temp_cwdrO   rP   join	importlibutilcache_from_sourcer  r  
py_compilecompiler2   r  assertIsNone)rm   test_dir	init_pathcached_pathfobjr  synopsis_cacheds   &      r#   "test_synopsis_sourceless_empty_doc/PydocDocTest.test_synopsis_sourceless_empty_doc  s    !!XX}=I#..::9EKi%%

9% &y)~~i4Hh'#nn["=Oo. "! &% "!!s%   AD2C<	A.D<DDD 	c                V    R pV P                  \        P                  ! V4      R4       R# )z#I Am A Doc


Here is my descriptionN)z
I Am A Docz
Here is my description)r   r2   splitdoc)rm   example_strings   & r#   test_splitdoc_with_description+PydocDocTest.test_splitdoc_with_description  s$    A7C	Er"   c           	     v   \         P                  ! 4       ;_uu_ 4       pV P                  \        4      ;_uu_ 4       pV P	                  \
        P                  ! V4      4       R R R 4       V P                  XP                  \        4       R R R 4       R #   + '       g   i     L:; i  + '       g   i     R # ; irr   )
r	   r  assertWarnsDeprecationWarningassertFalser2   	ispackager   r  r3   )rm   r  cms   &  r#    test_is_package_when_not_package-PydocDocTest.test_is_package_when_not_package  sr    !!X!!"455  !:; 6R[[(3 "!55 "!!s"   B'&B	"(B'B$B''B8	c           	        \         P                  ! 4       ;_uu_ 4       p\        P                  P	                  VR 4      p\        VR4      P                  4        V P                  \        4      ;_uu_ 4       pV P                  \        P                  ! V4      4       RRR4       \        P                  ! V4       V P                  XP                  \        4       RRR4       R#   + '       g   i     LP; i  + '       g   i     R# ; i)__init__.pyr  N)r	   r  rO   rP   r  r  closer  r  
assertTruer2   r  remover   r  r3   )rm   r  r  r  s   &   r#   test_is_package_when_is_package,PydocDocTest.test_is_package_when_is_package  s    !!XX}=IC &&(!!"455 9: 6IIi R[[(3 "! 65 "!!s$   AC76&C$	>C7$C4/C77D	c                    ! R  R\         4      p\        \        \         4      4      pVP                  VR&   VR VR VP                  VR&   VP
                  VR&   \        P                  ! V4      pV P                  W24       R# )c                   &   a  ] tR tRt o R tRtV tR# )/PydocDocTest.test_allmethods.<locals>.TestClassi  c                    R # )Tr   rl   s   &r#   method_returning_trueEPydocDocTest.test_allmethods.<locals>.TestClass.method_returning_true  s    r"   r   N)r   r   r   r    r  r!   r   r   s   @r#   	TestClassr    s      r"   r  r  r   	__class____subclasshook____init_subclass__N)	r  dictvarsr  r  r  r2   
allmethodsassertDictEqual)rm   r  r   methodss   &   r#   test_allmethodsPydocDocTest.test_allmethods  s    	 	
 V%,5,K,K()Y[! (1'A'A#$(1(C(C$%""9-W/r"   c                  a  ! R  R4      o ! V3R lRS4      p\         P                  ! V4      p\        V4      pV P                  VR\        ,          4       \         P                  ! V\         P
                  ! 4       R7      pR\         R2p\        V4      pVP                  R4       Uu. uF  qU'       g   K  VP                  4       NK  	  ppV F  pV P                  Wt4       K  	  R	# u upi )
c                   4   a  ] tR tRt o RR lt]tR tRtV tR# )+PydocDocTest.test_method_aliases.<locals>.Ai  Nc                    R # rr   r   )rm   	aboveThiss   &&r#   tkraise3PydocDocTest.test_method_aliases.<locals>.A.tkraise      r"   c                    R # rr   r   rl   s   &r#   a_size2PydocDocTest.test_method_aliases.<locals>.A.a_size  r  r"   r   rr   )	r   r   r   r    r  liftr  r!   r   r   s   @r#   r   r    s     ?D" "r"   r   c                   J   <a  ] tR tRt o RR lt]t ZP                  tRtV t	R# )+PydocDocTest.test_method_aliases.<locals>.Bi  Nc                    R # rr   r   )rm   tagOrIdcnfkws   &&&,r#   itemconfigure9PydocDocTest.test_method_aliases.<locals>.B.itemconfigure  r  r"   r   rr   )
r   r   r   r    r   
itemconfigr  b_sizer!   r   )r   r   s   @r#   r   r    s     >&JXXFr"   r   am  Python Library Documentation: class B in module %s

class B(A)
 |  Method resolution order:
 |      B
 |      A
 |      builtins.object
 |
 |  Methods defined here:
 |
 |  b_size = a_size(self)
 |
 |  itemconfig = itemconfigure(self, tagOrId, cnf=None, **kw)
 |
 |  itemconfigure(self, tagOrId, cnf=None, **kw)
 |      Configure resources of an item TAGORID.
 |
 |  ----------------------------------------------------------------------
 |  Methods inherited from A:
 |
 |  a_size(self)
 |      Return size
 |
 |  lift = tkraise(self, aboveThis=None)
 |
 |  tkraise(self, aboveThis=None)
 |      Raise this widget in the stacking order.
 |
 |  ----------------------------------------------------------------------
 |  Data descriptors inherited from A:
 |
 |  __dict__
 |      dictionary for instance variables
 |
 |  __weakref__
 |      list of weak references to the object
rendererz1
Python Library Documentation

class B in module a  
class B(A)
    Method resolution order:
        B
        A
        builtins.object

    Methods defined here:
        b_size = a_size(self)
        itemconfig = itemconfigure(self, tagOrId, cnf=None, **kw)
        itemconfigure(self, tagOrId, cnf=None, **kw)
            Configure resources of an item TAGORID.

    Methods inherited from A:
        a_size(self)
            Return size
        lift = tkraise(self, aboveThis=None)
        tkraise(self, aboveThis=None)
            Raise this widget in the stacking order.

    Data descriptors inherited from A:
        __dict__
            dictionary for instance variables
        __weakref__
            list of weak references to the object
r/   N)
r2   r   rL   r   r   r@   rc   splitr4   r   )	rm   r   rD   r   as_textr   r   expected_liner   s	   &       @r#   test_method_aliases PydocDocTest.test_method_aliases  s    	" 	"	 	 q!o %J K% %	N q5==?; * : C.3@3F3Ft3LU3L4PT,$**,3LU+MMM-1 , Vs   +	C+9C+c           
       aaa ^ RI Ho ^ RIHoHo  ! VVV3R lR4      p\
        P                  ! V4      p\        V4      pT P                  TR\        : R\        '       d   RMR: R	\        '       d   RMR
: R24       VVV3R lR lp\
        P                  ! V4      p\        V4      pV P                  VR\        ,          4       R R lp\
        P                  ! V4      p\        V4      pV P                  VR\        ,          4       R p\
        P                  ! V4      p\        V4      pV P                  VR\        ,          4       R# )r   )Callable)Literal	Annotatedc                   :   <a  ] tR tRt o VVVV 3R lR ltRtV tR# ),PydocDocTest.test_long_signatures.<locals>.Air  c                r   < V ^8  d   QhRSZS[ S[ S[ .S[3,          RSZR,          RSZS[ R3,          RR/# )r   arg1arg2arg3zsome docs about this typer  N)z
some valuezother valuer   r   )r   r.  r,  r-  r   s   "r#   r   9PydocDocTest.test_long_signatures.<locals>.A.__annotate__s  sR      'c3(<=&'BC  ).I)IJ #	r"   c                    R # rr   r   )rm   r2  r3  r4  s   &&&&r#   __init__5PydocDocTest.test_long_signatures.<locals>.A.__init__s  s    
 r"   r   N)r   r   r   r    r8  r!   r   )r   r.  r,  r-  s   @r#   r   r0  r  s       r"   r   z0Python Library Documentation: class A in module a2  

class A(builtins.object)
 |  A(
 |      arg1: Callable[[int, int, int], str],
 |      arg2: Literal['some value', 'other value'],
 |      arg3: Annotated[int, 'some docs about this type']
 |  ) -> None
 |
 |  Methods defined here:
 |
 |  __init__(
 |      self,
 |      arg1: Callable[[int, int, int], str],
 |      arg2: Literal['some value', 'other value'],
 |      arg3: Annotated[int, 'some docs about this type']
 |  ) -> None
 |
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |
 |  __dict__r%   z*
 |      dictionary for instance variablesz
 |
 |  __weakref__z.
 |      list of weak references to the objectr/   c                   < V ^8  d   QhRSS\         R3,          .\        3,          RSR,          RS\         R3,          /# )r   r2  zSome docr3  r  z
Some other)r   r                     r5  )r   r.  r,  r-  s   "r#   r   7PydocDocTest.test_long_signatures.<locals>.__annotate__  sM     	 	Ic:o67<=	01	 sL()	r"   c                     R # rr   r   r2  r3  s   &&r#   r  /PydocDocTest.test_long_signatures.<locals>.func       r"   zPython Library Documentation: function func in module %s

func(
    arg1: Callable[[Annotated[int, 'Some doc']], str],
    arg2: Literal[1, 2, 3, 4, 5, 6, 7, 8]
) -> Annotated[int, 'Some other']
c                0    V ^8  d   QhR\         R\        /# )r   r2  r3  r5  )r   s   "r#   r   rA    s     	 			r"   c                     R # rr   r   rC  s   &&r#   Afunction_with_really_long_name_so_annotations_can_be_rather_smalllPydocDocTest.test_long_signatures.<locals>.function_with_really_long_name_so_annotations_can_be_rather_small  rE  r"   zPython Library Documentation: function function_with_really_long_name_so_annotations_can_be_rather_small in module %s

function_with_really_long_name_so_annotations_can_be_rather_small(
    arg1: int,
    arg2: str
)
c                     R # ).r   )?very_long_parameter_name_that_should_not_fit_into_a_single_linesecond_very_long_parameter_names   &&r#   r  3PydocDocTest.test_long_signatures.<locals>.<lambda>  s    -0r"   zPython Library Documentation: function <lambda> in module %s

<lambda> lambda very_long_parameter_name_that_should_not_fit_into_a_single_line, second_very_long_parameter_name
N)collections.abcr,  typingr-  r.  r2   r   rL   r   r   r   )	rm   r   rD   r  rH  does_not_have_namer.  r,  r-  s	   &     @@@r#   test_long_signatures!PydocDocTest.test_long_signaturesn  s+   ,-	 	 q!o0 !!r'TT!!r'XX5 		:	 	 t$o   		 `ao   	1 12o   	r"   c                J   ^ RI p\        V4      w  r#\        V4      w  rC\        \        4      w  rS\        \        4      w  rcVP                   FR  pV R2pRV R2p	V P                  W4       V P                  W4       V P                  W4       V P                  W4       KT  	  R# )r   Nz = _Featurez<strong>z</strong> = _Feature)
__future__rV   rG   r   all_feature_namesr   r  )
rm   rT  future_textr[   future_htmlpydoc_mod_textpydoc_mod_htmlfeaturetxtrb   s
   &         r#   test__future__imports"PydocDocTest.test__future__imports  s     	'
3'
3*95*95!33GI[)CgY&:;DMM#+MM$,S1T2 4r"   )r6  ):r   r   r   r    r6  rn   r[  skipIfhasattrrj   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r
  r  r  r  r  r(  r2  r\  r]  r?  rW  rk  rs  rw  rz  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r)  rQ  r\  r!   r   r   s   @r#   r   r     s    G3 __WS*-@@#,,.HJ' J' __WS*-@@#,,.HJ0 J01.9
Q
'
76 ' '
+:%%N"64@68	6-Y __WS*-@@#,,.HJ]]''  (J': __WS*-@@#,,.HJ]]'&[ ( J&[R __WS*-@@#,,.HJ)D J)DV8H ]]'' (' __WS*-@@#,,.HJ]]'' ( J' ;CJ<+	8J8X - -
/E
4402 W2 W2rTl3 3r"   r   c                      a  ] tR tRt o R tR tR tR tR tR t	]
P                  ! R4      R	 4       t]
P                  ! R4      R
 4       t]
P                  ! R4      R 4       tR tRtV tR# )PydocImportTesti  c                    \         P                  ! \        4      V n        V P	                  \
        \        4       \        P                  ! 4        R # rr   )rO   mkdirr   r  r  r   r  invalidate_cachesrl   s   &r#   setUpPydocImportTest.setUp  s,    ('##%r"   c                .   R pR
RRRP                  V4      R3RP                  V4      RP                  V4      33p\        P                  P                  \        V4      \        P
                  ,           R,           pV F  w  rE\        VR4      ;_uu_ 4       pVP                  RP                  V4      4       RRR4       \        V\        R7      P                  R	4      p\        W3,          pV P                  W4       K  	  R#   + '       g   i     LU; i)testmod_xyzzyi_am_not_herezi_am_not_here.{}ztest.{}pyr  z
import {}
N)
PYTHONPATHr   )ri  ri  )test.i_am_not_here_eitherrl  )ztest.i_am_not_here.neither_am_ir   )r   rO   rP   r  r   extsepr  r  r>   r#  badimport_patternr   )	rm   modname	testpairssourcefnimportstringexpectedinmsgfr   r   s	   &        r#   test_badimportPydocImportTest.test_badimport  s     ".FE&&w/Ag&	(8(8(AB	 77<<0299<tC+4'Lh$$,,\:; %#G?FFwOF(G+CCHX. ,5$$s   !DDc                   \         P                  P                  \        R 4      p\         P                  ! V4       \         P                  P                  VR4      \         P
                  ,           R,           p\        VR4      ;_uu_ 4       pVP                  R4       RRR4       V P                  \        .R7      ;_uu_ 4        \        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        P                  ! R4       RRR4       RRR4       V P                  XP                  4       R4       V P                  XP                  4       R4       \        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        P                  ! R 4       RRR4       RRR4       V P                  VP                  4       P                  4       R 4       V P                  VP                  4       R4       RRR4       R#   + '       g   i     ELa; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)		syntaxerrr8  rj  r  zinvalid python syntax = $1
NrP   xyzzyr%   )rO   rP   r  r   rc  rm  r  r  r}   r   r   r2   aproposr   r.  r4   )rm   pkgdir	badsyntaxrt  r:   r;   s   &     r#   test_apropos_with_bad_package-PydocImportTest.test_apropos_with_bad_package  s   fk2
GGLL4ryy@4G	)S!!QGG23 "((vh(77 ""c$&&#MM'* ' # S\\^R0S\\^R0 ""c$&&#MM+. ' # S\\^113[AS\\^R0 87 "!! '&& #"" '& #" 877sz   G5IH	*H	H		AI#I	6H1I	AI5H		H	H	H.(	I1I<I	III(	c                   \         P                  P                  \        R 4      V n        \         P
                  ! V P                  ^ 4       V P                  \         P                  V P                  4       V P                  \        .R7      ;_uu_ 4        \        4       ;_uu_ 4       p\        4       ;_uu_ 4       p\        P                  ! R4       RRR4       RRR4       RRR4       V P                  XP                  4       R4       V P                  XP                  4       R4       R#   + '       g   i     Lb; i  + '       g   i     Lm; i  + '       g   i     Lx; i)
unreadablery  SOMEKEYNr%   )rO   rP   r  r   unreadable_dirrc  r  rmdirr}   r   r   r2   r{  r   r.  )rm   r:   r;   s   &  r#    test_apropos_with_unreadable_dir0PydocImportTest.test_apropos_with_unreadable_dir  s     ggll6<@
$$a($"5"56 ((vh(77 ""c$&&#MM), ' # 8
 	,,	 '& #" 87s<   E'D>	:D+D>	E+D;6D>	>E	EE!	c           	        \         P                  P                  \        R 4      p\         P                  ! V4       V P                  \        V4       \         P                  P                  VR4      p\        VR4      ;_uu_ 4       pVP                  R4       RRR4       V P                  \        .R7      ;_uu_ 4        \        4       ;_uu_ 4       p\        P                  ! R4       RRR4       RRR4       V P                  R XP                  4       4       R#   + '       g   i     L; i  + '       g   i     LM; i  + '       g   i     LX; i)walkpkgr  r  r  Nry  r%   )rO   rP   r  r   rc  r  r   r  r  r}   r   r2   r{  r   r.  )rm   r|  r  r  stdouts   &    r#   test_apropos_empty_doc&PydocImportTest.test_apropos_empty_doc  s    fi0
'GGLL7	)S!!TJJy! "((vh(779J9JfMM" :K7i!23	 "!9J9J77s0   D>E D-	(E D*	-D=8E  E	c           	     R   \         P                  P                  \        R 4      p\         P                  ! V4       \         P                  P                  VR4      p\        VRRR7      ;_uu_ 4       pVP                  R4       RRR4       V P                  \        .R7      ;_uu_ 4        \        \        P                  4      p\        P                  P                  ^ \        4        V P                  \        R4      ;_uu_ 4        ^ RIpRRR4       V P                  R	R
4      pRpV P                  Wv4       V\        P                  R&    RRR4       R#   + '       g   i     L; i  + '       g   i     Lf; i  T\        P                  R&   i ; i  + '       g   i     R# ; i)test_error_packager  wtr   r  zraise ValueError("ouch")
Nry  ouchzsearch?key=test_error_packagePydoc: Search Resultsz8<a href="test_error_package.html">test_error_package</a>:NNN)rO   rP   r  r   rc  r  r  r}   tuplerj   insertassertRaisesRegex
ValueErrorr  r   r   )rm   r|  initrt  saved_pathsr  rY   founds   &       r#   test_url_search_package_error-PydocImportTest.test_url_search_package_error!  s   f&:;
ww||FM2$w//1GG45 0((vh(77/KHHOOAv&*++J??- @ ,,-L+--e*) 87 0/ @? * 877sH   1E*>F)E=E*	-E=9FE'	*E:5E==FFF&	z(causes undesirable side-effects (#20128)c                   ^p^p^pW,           V,           p\        4       p\        P                  ! VR7      pV! R4       VP                  4       P	                  4       p\        VP                  4       4      pV P                  W4       R# )r   r+  rk   N)r   r2   r,  r.  r4   lenr   assertGreaterEqual)	rm   num_header_linesnum_module_lines_minnum_footer_linesr   rE   r1  r   	num_liness	   &        r#   test_modulesPydocImportTest.test_modules9  sw      #:=MMV,y"((*))+,		4r"   c                    R p\        4       p\        P                  ! VR7      p\        4       ;_uu_ 4       pV! R4       RRR4       XP	                  4       pV P                  W4       R#   + '       g   i     L3; i)zpydoc - r+  zmodules pydocN)r   r2   r,  r   r.  r   rm   r   rE   r1  r  r   s   &     r#   test_modules_search#PydocImportTest.test_modules_searchI  sY     V,'?# !!#h'	    	A**A:	z+some buildbots are not cooperating (#20128)c                    R p\        4       p\        P                  ! VR7      p\        4       ;_uu_ 4       pV! R4       RRR4       XP	                  4       pV P                  WQ4       R#   + '       g   i     L3; i)zgc - r+  zmodules garbageN)r   r2   r,  r   r.  assertStartsWithr  s   &     r#   test_modules_search_builtin+PydocImportTest.test_modules_search_builtinV  sZ    V,'$% !!#f/	 r  c                    \         P                  ! \         P                  4      pV P                  V\         4       V P	                  VP
                  R 4       V P	                  VP                  \         P                  4       V P	                  VP                  \         P                  4       \         \        P                  R &   R#   \         \        P                  R &   i ; irg   )	r2   
importfiler3   assertIsNotr   r   r  rj   rk   )rm   loaded_pydocs   & r#   test_importfilePydocImportTest.test_importfileb  s    	) ++ENN;L\51\22G<\22ENNC\22ENNC#(CKK 5CKK s   B*C C)r  r  N)r   r   r   r    re  ru  r~  r  r  r  r[  skipr  r  r  r  r!   r   r   s   @r#   ra  ra    s     &
/*1*-	4*0 ]]=>5 ?5 ]]=>
( ?
( ]]@A	0 B	0	) 	)r"   ra  c                   0   a  ] tR tRt o ]R 4       tRtV tR# )Rectin  c                <    V P                   V P                  ,          # rr   )r  hrl   s   &r#   area	Rect.areao  s     vvr"   r   N)r   r   r   r    propertyr  r!   r   r   s   @r#   r  r  n  s      r"   r  c                   (    ] tR tRt]! R 4      tRtR# )Squareiu  c                (    V P                   ^,          # )r   )siderl   s   &r#   r  Square.<lambda>v  s    Ar"   r   N)r   r   r   r    r  r  r!   r   r"   r#   r  r  u  s    -.Dr"   r  c                     a  ] tR tRt o R tR tR tR tR tR t	R t
R	 t]R
 4       t]R 4       tR t]R 4       tR tR t]R 4       t]R 4       tR tR tR tR tR tR tR tR tR tR tR t R t!]"PF                  ]R 4       4       t$]"PF                  ]R 4       4       t%]"PF                  ]R  4       4       t&]"PF                  ]R! 4       4       t']"PF                  ]R" 4       4       t(]"PF                  ]R# 4       4       t)R$ t*]R% 4       t+]R& 4       t,]R' 4       t-]R( 4       t.]R) 4       t/]R* 4       t0]R+ 4       t1]R, 4       t2]R- 4       t3]R. 4       t4]R/ 4       t5R0 t6R1 t7]R2 4       t8R3 t9R4t:V t;R5# )6TestDescriptionsiy  c                \    V P                  \        P                  R ,          \        4       R# rg   rh   rl   s   &r#   rn   TestDescriptions.tearDownz  r   r"   c                ^    \         P                  ! \        4      pV P                  R V4       R# )r   N)r2   r   r   r   rm   rD   s   & r#   test_moduleTestDescriptions.test_module}  s     {+mS)r"   c                &    ! R  R4      pV! 4       pV P                  \        P                  ! V4      R4       V P                  \        P                  ! V4      R4       R\        ,          pV P	                  V\        P
                  ! V4      4       R# )c                       ] tR tRtRtR# )&TestDescriptions.test_class.<locals>.Ci  r   Nr   r   r"   r#   Cr    s    r"   r  zclass CzC in module %s objectN)r   r2   describer   r   r   )rm   r  r  r   s   &   r#   
test_classTestDescriptions.test_class  sd    ""C*I6*C0*X5h 0 0 34r"   c                   V P                  \        P                  ! \        P                  \
        ,          4      R 4       \        P                  ! \        P                  \
        ,          \        P                  R7      pV P                  RV4       V P                  RV4       \        '       gD   V P                  \        P                  P                  4       P                  4       ^ ,          V4       V P                  \        P                  ! \        \
        ,          4      R4       \        P                  ! \        \
        ,          \        P                  R7      pV P                  RV4       V P                  RV4       \        '       gF   V P                  \        P                  P                  4       P                  4       ^ ,          V4       R# R# )_GenericAliasr$  z_GenericAlias in module typingzList = class list(object)GenericAliaszGenericAlias in module builtinsz
class list(object)N)r   r2   r  rO  Listr   r   	plaintextr   r   rg  r   r4   r   r  s   & r#   test_generic_alias#TestDescriptions.test_generic_alias  s   C(89?Kv{{3/%//J6<137##MM$,,,,.99;A>DS	2NCtCy5??C7=,c2##MM$,,,,.99;A>D $r"   c                   V P                  \        P                  ! \        P                  \
        \        3,          4      R 4       \        P                  ! \        P                  \
        \        3,          \        P                  R7      pV P                  RV4       V P                  RV4       \        P                  P                  '       dN   V P                  \        P                  P                  P                  4       P                  4       ^ ,          V4       V P                  \        P                  ! \
        \        ,          4      R 4       \        P                  ! \
        \        ,          \        P                  R7      pV P                  RV4       V P                  RV4       \        '       gP   V P                  \        P                  P                  P                  4       P                  4       ^ ,          V4       R# R# )Unionr$  zUnion in module typingzclass Union(builtins.object)N)r   r2   r  rO  r  r   r   r   r  r   r   r4   r   r   types	UnionTyper  s   & r#   test_union_type TestDescriptions.test_union_type  s7   S#X(>?Iv||CH5P.44c:<<MM&,,..446AACAFLc	2G<sSy5??C.44c:##MM%//11779DDFqI3O $r"   c                    V P                  \        P                  ! \        P                  4      R 4       \        P
                  ! \        P                  \        P                  R7      pV P                  RV4       \        P                  P                  '       db   V P                  RV4       V P                  \        P                  P                  P                  4       P                  4       ^ ,          V4       R# V P                  RV4       R# )_SpecialFormr$  z_SpecialForm in module typingzNoReturn = typing.NoReturnz%NoReturn = class _SpecialForm(_Final)N)r   r2   r  rO  NoReturnr   r  r   r   r4   r   r  s   & r#   test_special_form"TestDescriptions.test_special_form  s    8.IvI5s;??"""MM6<MM&//11779DDFqI3OMMA3Gr"   c                   R  R lp\         P                  ! R4      p ! R R\         P                  V,          \         P                  \        \
        3,          4      pV P                  \        P                  ! V4      P                  4       R,          R4       V P                  \        P                  ! V4      P                  4       ^,          R4       R# )	c          	          V ^8  d   QhR\         P                  \         P                  ,          R\        R\         P                  \         P
                  \        \         P                  3,          ,          /# )r   datar   r  )rO  r  Anyr   IteratorTuple)r   s   "r#   r   8TestDescriptions.test_typing_pydoc.<locals>.__annotate__  sJ     	 	fkk&**- 		!??6<<VZZ+HI	r"   c                     R # rr   r   )r  r   s   &&r#   foo/TestDescriptions.test_typing_pydoc.<locals>.foo  s    r"   Tc                       ] tR tRtRtR# )-TestDescriptions.test_typing_pydoc.<locals>.Ci  r   Nr   r   r"   r#   r  r    s    cr"   r  zbffoooo(data: typing.List[typing.Any], x: int) -> typing.Iterator[typing.Tuple[int, typing.Any]]z2class CC(collections.abc.Mapping, typing.Generic)N)
rO  TypeVarGenericMappingr   r   r   r2   r   r   )rm   r  r  r  s   &   r#   test_typing_pydoc"TestDescriptions.test_typing_pydoc  s    	 NN3Aq!6>>#s(#;A))#.99;B?N	O 	))!,779!<P	Rr"   c                   R F?  pV P                  \        P                  ! V4      4        \        P                  ! V4       KA  	  R FM  pV P                  \        P                  ! V4      4       V P                  \        \        P                  V4       KO  	  R#   \         d%    T P                  RP                  T4      4        K  i ; i)r   zfinding the doc of {!r} failedN)r   zstr.translatezbuiltins.strzbuiltins.str.translate)notbuiltinsstrrrzstrr.translatezstr.trrrranslatezbuiltins.strrrzbuiltins.str.trrranslate)	assertIsNotNoner2   locater   r  failr   r  assertRaises)rm   names   & r#   test_builtinTestDescriptions.test_builtin  s    /D   d!34I  &/1D ell401k5+;+;TB	1  I		:AA$GHIs   B+C
	C
c                    \         P                  ! \         P                  ! V 4      4      pVP                  R 4      pV^,          # )r/   )r2   plainr   r&  orY   liness   &  r#   _get_summary_line"TestDescriptions._get_summary_line  s2    {{5++A./

4 Qxr"   c                    \         P                  ! \         P                  ! V 4      4      pVP                  R 4      pR P	                  VR,          4      # )r/   :r   NN)r2   r  r   r&  r  r  s   &  r#   _get_summary_lines#TestDescriptions._get_summary_lines  s<    {{5++A./

4 yyr##r"   c                x    V P                  V P                  \        P                  P                  4      R 4       R# )zwrap(self, text)N)r   r  r8  TextWrapperwraprl   s   &r#   test_unbound_python_method+TestDescriptions.test_unbound_python_method  s,    //0D0D0I0IJ	 r"   c                x    V P                  V P                  \        P                  P                  4      R 4       R# )z1dump(self, obj, /) unbound _pickle.Pickler methodN)r   r  _picklePicklerdumprl   s   &r#   test_unbound_builtin_method,TestDescriptions.test_unbound_builtin_method  s+    //0D0DE?	Ar"   c                    \         P                  ! 4       pV P                  V P                  VP                  4      R 4       R# )z2wrap(text) method of textwrap.TextWrapper instanceN)r8  r  r   r  r	  )rm   ts   & r#   test_bound_python_method)TestDescriptions.test_bound_python_method  s3      "//7@	Br"   c                   \        R . R	O4      p\        P                  ! V4      pV P                  VP	                  R4      VP	                  R4      4       V P                  VP	                  R4      VP	                  R4      4        ! R R4      p ! R R4      p\        P                  ! V4       \        P                  ! V4       R# )
r  r  r  agegroupc                       ] tR tRtRtRtR# )MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonIterableFieldsi  Nr   r   r   r   r    _fieldsr!   r   r"   r#   NonIterableFieldsr    s    Gr"   r  c                       ] tR tRt. .tRtR# )MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonHashableFieldsi  r   Nr  r   r"   r#   NonHashableFieldsr    s	    dGr"   r  N)r  r  r  )r   r2   r   
assertLessindex)rm   r  r(   r  r  s   &    r#   !test_field_order_for_named_tuples2TestDescriptions.test_field_order_for_named_tuples  s    H&KLV$
+QWW[-AB,aggj.AB	 		 	 	*+*+r"   c                    \        4       p\        P                  ! V4      pV P                  V P	                  VP
                  4      R 4       R# )z/dump(obj, /) method of _pickle.Pickler instanceN)r   r  r  r   r  r  )rm   r(   ps   &  r#   test_bound_builtin_method*TestDescriptions.test_bound_builtin_method  s9    JOOA//7=	?r"   c                d    V P                  V P                  \        P                  4      R 4       R# )z0stat(path, *, dir_fd=None, follow_symlinks=True)N)r   r  rO   statrl   s   &r#   test_module_level_callable+TestDescriptions.test_module_level_callable  s%    //8>	@r"   c                d    V P                  V P                  \        P                  4      R 4       R# )ztime()N)r   r  timerl   s   &r#   !test_module_level_callable_noargs2TestDescriptions.test_module_level_callable_noargs	  s$    //		:	r"   c                     ^ RI pV P                  V P	                  XP
                  4      R4       R#   \         d    T P                  R4        LKi ; i)r   Nz_stat extension is missingzS_IMODE(object, /))_statr  skipTestr   r  S_IMODE)rm   r1  s   & r#   test_module_level_callable_o-TestDescriptions.test_module_level_callable_o  sL    	8
 	//> 	"	  	8MM67	8s   3 AAc                d    V P                  V P                  \        P                  4      R 4       R# )z*lower(self, /) unbound builtins.str methodN)r   r  r   lowerrl   s   &r#   "test_unbound_builtin_method_noargs3TestDescriptions.test_unbound_builtin_method_noargs  s$    //		:8	:r"   c                \    V P                  V P                  R P                  4      R4       R# )r%   z'lower() method of builtins.str instanceN)r   r  r7  rl   s   &r#    test_bound_builtin_method_noargs1TestDescriptions.test_bound_builtin_method_noargs  s$    //95	7r"   c                d    V P                  V P                  \        P                  4      R 4       R# )z0add(self, object, /) unbound builtins.set methodNr   r  setaddrl   s   &r#   test_unbound_builtin_method_o.TestDescriptions.test_unbound_builtin_method_o  s%    //8>	@r"   c                l    V P                  V P                  \        4       P                  4      R 4       R# )z.add(object, /) method of builtins.set instanceNr>  rl   s   &r#   test_bound_builtin_method_o,TestDescriptions.test_bound_builtin_method_o#  s&    //		:<	>r"   c                d    V P                  V P                  \        P                  4      R 4       R# )z9__contains__(self, object, /) unbound builtins.set methodNr   r  r?  __contains__rl   s   &r#   %test_unbound_builtin_method_coexist_o6TestDescriptions.test_unbound_builtin_method_coexist_o'  s'    //0@0@AG	Ir"   c                l    V P                  V P                  \        4       P                  4      R 4       R# )z7__contains__(object, /) method of builtins.set instanceNrG  rl   s   &r#   #test_bound_builtin_method_coexist_o4TestDescriptions.test_bound_builtin_method_coexist_o+  s)    //0B0BCE	Gr"   c                    V P                  V P                  \        P                  P                  R ,          4      R4       R# )utcnowz0utcnow(type, /) unbound datetime.datetime methodN)r   r  datetime__dict__rl   s   &r#   'test_unbound_builtin_classmethod_noargs8TestDescriptions.test_unbound_builtin_classmethod_noargs/  s2    //0A0A0J0J80TU>	@r"   c                x    V P                  V P                  \        P                  P                  4      R 4       R# )z*utcnow() class method of datetime.datetimeN)r   r  rP  rO  rl   s   &r#   %test_bound_builtin_classmethod_noargs6TestDescriptions.test_bound_builtin_classmethod_noargs3  s,    //0A0A0H0HI8	:r"   c                r    V P                  V P                  \        P                  R ,          4      R4       R# )__class_getitem__z?__class_getitem__(type, object, /) unbound builtins.dict methodN)r   r  r  rQ  rl   s   &r#   "test_unbound_builtin_classmethod_o3TestDescriptions.test_unbound_builtin_classmethod_o7  s+    //>Q0RSM	Or"   c                d    V P                  V P                  \        P                  4      R 4       R# )z:__class_getitem__(object, /) class method of builtins.dictN)r   r  r  rX  rl   s   &r#    test_bound_builtin_classmethod_o1TestDescriptions.test_bound_builtin_classmethod_o;  s'    //0F0FGH	Jr"   c                    \         P                  ! R 4      pVP                  pV P                  V P	                  V4      R4       R# )r  z-func_with_unrepresentable_signature(a, b=<x>)N)r   import_module#func_with_unrepresentable_signaturer   r  )rm   r  builtins   &  r#   2test_module_level_callable_unrepresentable_defaultCTestDescriptions.test_module_level_callable_unrepresentable_default?  s=     "//<	??//8;	=r"   c                    V P                  V P                  \        P                  4      R 4       \        P
                  ! R4      pVP                  pV P                  V P                  VP                  4      R4       R# )z9maketrans(x, y=<unrepresentable>, z=<unrepresentable>, /)r  zstaticmeth(a, b=<x>)N)r   r  r   	maketransr   r_  %DocStringUnrepresentableSignatureTest
staticmethrm   r  clss   &  r#   1test_builtin_staticmethod_unrepresentable_defaultBTestDescriptions.test_builtin_staticmethod_unrepresentable_defaultG  sd     	//>G	I!//<	==//?"	$r"   c                    V P                  V P                  \        P                  4      R 4       \        P
                  ! R4      pVP                  pV P                  V P                  VP                  4      R4       R# )zIpop(self, key, default=<unrepresentable>, /) unbound builtins.dict methodr  zVmeth(self, /, a, b=<x>) unbound _testcapi.DocStringUnrepresentableSignatureTest methodN)r   r  r  popr   r_  rf  methrh  s   &  r#   3test_unbound_builtin_method_unrepresentable_defaultDTestDescriptions.test_unbound_builtin_method_unrepresentable_defaultQ  sk     	//9+	, "//<	==//9E	Fr"   c                    V P                  V P                  / P                  4      R 4       \        P                  ! R4      pVP                  4       pV P                  V P                  VP                  4      R4       R# )zGpop(key, default=<unrepresentable>, /) method of builtins.dict instancer  zQmeth(a, b=<x>) method of _testcapi.DocStringUnrepresentableSignatureTest instanceN)r   r  rm  r   r_  rf  rn  )rm   r  objs   &  r#   1test_bound_builtin_method_unrepresentable_defaultBTestDescriptions.test_bound_builtin_method_unrepresentable_default]  sn     	//7/	0 "//<	==?//9Q	Rr"   c                    \         P                  ! R 4      pVP                  pVP                  R,          pV P	                  V P                  V4      R4       R# )r  	classmethz[classmeth(type, /, a, b=<x>) unbound _testcapi.DocStringUnrepresentableSignatureTest methodN)r   r_  rf  rQ  r   r  )rm   r  ri  descrs   &   r#   8test_unbound_builtin_classmethod_unrepresentable_defaultITestDescriptions.test_unbound_builtin_classmethod_unrepresentable_defaulti  sO     "//<	==[)//6E	Fr"   c                    \         P                  ! R 4      pVP                  pV P                  V P	                  VP
                  4      R4       R# )r  zSclassmeth(a, b=<x>) class method of _testcapi.DocStringUnrepresentableSignatureTestN)r   r_  rf  r   r  rv  rh  s   &  r#   6test_bound_builtin_classmethod_unrepresentable_defaultGTestDescriptions.test_bound_builtin_classmethod_unrepresentable_defaults  sC     "//<	==//>>	?r"   c           	         ! R  R4      pR EF>  w  r#pV P                  V4      ;_uu_ 4        W!P                  n        V P                  V P	                  VP                  4      RV,           4       V P                  V P	                  V! 4       P                  4      RV,           R,           4       W!P
                  P                  n        V P                  V P	                  VP
                  4      RV,           R,           4       W!P                  n        V P                  V P	                  VP                  4      RV,           4       RRR4       EKA  	  R#   + '       g   i     EKW  ; i)	c                   F   a  ] tR tRt o R t]R 4       t]R 4       tRt	V t
R# ):TestDescriptions.test_overridden_text_signature.<locals>.Ci}  c                     R # rr   r   r7   kwargss   *,r#   rn  ?TestDescriptions.test_overridden_text_signature.<locals>.C.meth~  r  r"   c                     R # rr   r   r  s   *,r#   cmeth@TestDescriptions.test_overridden_text_signature.<locals>.C.cmeth      r"   c                     R # rr   r   r  s   *,r#   smeth@TestDescriptions.test_overridden_text_signature.<locals>.C.smeth  r  r"   r   N)r   r   r   r    rn  classmethodr  staticmethodr  r!   r   r   s   @r#   r  r  }  s.       r"   r  rn  z0 method of test.test_pydoc.test_pydoc.C instancer  z- class method of test.test_pydoc.test_pydoc.Cr  N))z($slf)(slf, /)r  )z	($slf, /)r  r  )z($slf, /, arg)(slf, /, arg)(arg))z($slf, /, arg=<x>)(slf, /, arg=<x>)	(arg=<x>))z($slf, arg, /)(slf, arg, /)(arg, /))z($slf, arg=<x>, /)(slf, arg=<x>, /)(arg=<x>, /))(/, slf, arg)r  r  )(/, slf, arg=<x>)r  r  )r  r  r  )r  r  r  )r  r  r  )r  r  r  )r^  rn  __text_signature__r   r  r  __func__r  )rm   r  text_signatureunboundbounds   &    r#   test_overridden_text_signature/TestDescriptions.test_overridden_text_signature|  s   	 	/
*NU n--,:)  !7!7!?(*  !7!7!A)[[]6D  3  !7!7!@%*YY[-;*  !7!7!@')+ .-/
 .--s   DEE$c                H    ! R  R4      pV P                  V P                  VP                  R,          4      R4       V P                  V P                  VP                  4      R4       V P	                  R\
        P                  ! \
        P                  ! V4      4      4       R# )c                   0   a  ] tR tRt o ]R 4       tRtV tR# )-TestDescriptions.test_staticmethod.<locals>.Xi  c                    R # rr   r   r   ys   &&r#   sm0TestDescriptions.test_staticmethod.<locals>.X.sm       r"   r   N)r   r   r   r    r  r  r!   r   r   s   @r#   Xr    s      r"   r  r  zsm(x, y)
    A static method
zJ
 |  Static methods defined here:
 |
 |  sm(x, y)
 |      A static method
N)r   r  rQ  r  r   r2   r  r   rm   r  s   & r#   test_staticmethod"TestDescriptions.test_staticmethod  s    	 	
 	00D1AB1	2 	006 9 	 	 
 [[!!!$%	'r"   c                H    ! R  R4      pV P                  V P                  VP                  R,          4      R4       V P                  V P                  VP                  4      R4       V P	                  R\
        P                  ! \
        P                  ! V4      4      4       R# )c                   0   a  ] tR tRt o ]R 4       tRtV tR# ),TestDescriptions.test_classmethod.<locals>.Xi  c                    R # rr   r   )ri  r   s   &&r#   r  /TestDescriptions.test_classmethod.<locals>.X.cm  r  r"   r   N)r   r   r   r    r  r  r!   r   r   s   @r#   r  r    s      r"   r  r  zcm(...)
    A class method
zFcm(x) class method of test.test_pydoc.test_pydoc.X
    A class method
zE
 |  Class methods defined here:
 |
 |  cm(x)
 |      A class method
N)r   r  rQ  r  r   r2   r  r   r  s   & r#   test_classmethod!TestDescriptions.test_classmethod  s    	 	
 	00D1AB0	1 	006 9 	 	 
 [[!!!$%	'r"   c                ~   V P                  V P                  \        P                  4      R 4       V P                  V P                  \        P
                  4      R4       V P                  V P                  \        P                  4      R4       V P                  V P                  \        P                  4      R4       R# )rj  realr7   rr  N)
r   r  r   rj  floatr  r  r7   
memoryviewrr  rl   s   &r#   test_getset_descriptor'TestDescriptions.test_getset_descriptor  s     	//>L//

;VD//	?H//
?Gr"   c                   V P                  V P                  \        P                  4      R 4       V P                  V P                  \        P
                  4      R4       V P                  V P                  \        P
                  4      R4       V P                  V P                  \        P                  4      R4       V P                  V P                  \        P                  4      R4       R# )r  startfgetvalueN)r   r  complexr  ranger  slicer  r  StopIterationr  rl   s   &r#   test_member_descriptor'TestDescriptions.test_member_descriptor  s     	//=vF//<gF//<gF//>G//0C0CDgNr"   c                p     ! R  R4      pV P                  V P                  VP                  4      R4       R# )c                       ] tR tRtRtRtR# )4TestDescriptions.test_slot_descriptor.<locals>.Pointi  r   Nr  )r   r   r   r    	__slots__r!   r   r"   r#   Pointr    s     Ir"   r  r   N)r   r  r   )rm   r  s   & r#   test_slot_descriptor%TestDescriptions.test_slot_descriptor  s+    	! 	!//8#>r"   c                ~     ! R  R4      pV P                  V P                  VP                  R,          4      R4       R# )c                       ] tR tRtRtR# )6TestDescriptions.test_dict_attr_descriptor.<locals>.NSi  r   Nr   r   r"   r#   NSr    r   r"   r  rQ  N)r   r  rQ  )rm   r  s   & r#   test_dict_attr_descriptor*TestDescriptions.test_dict_attr_descriptor  s3    	 	//J0GH#	%r"   c                   V P                  V P                  \        \        P                  4      P
                  4      R 4       V P                  V P                  \        \        P                  4      P                  4      R4       V P                  V P                  \        \        P                  4      P                  4      R4       V P                  V P                  \        \        P                  4      P                  4      R4       R# )widthdebugmajormaxN)r   r  r  rj   	hash_infor  flagsr  version_infor  
float_infor  rl   s   &r#    test_structseq_member_descriptor1TestDescriptions.test_structseq_member_descriptor  s    //S]]0C0I0IJ 	"//SYY0E0EF 	"//S5E5E0F0L0LM 	"//S^^0D0H0HI	 r"   c                t    \        R R4      pV P                  V P                  VP                  4      R4       R# )Boxz    Alias for field number 0
N)r  height)r   r   r  r  )rm   r  s   & r#    test_namedtuple_field_descriptor1TestDescriptions.test_namedtuple_field_descriptor  s3     3400; > 	r"   c                >   V P                  V P                  \        P                  4      R 4       V P                  V P                  \        P                  4      R 4       V P                  R\        P                  ! \        P                  ! \        4      4      4       R# )zarea
    Area of the rect
z#
 |  area
 |      Area of the rect
N)	r   r  r  r  r  r   r2   r  r   rl   s   &r#   test_propertyTestDescriptions.test_property  sy    00; > 	
 	00= @ 	 	  [[!!$'(	*r"   c                  a  ! R  R4      o ! V3R lR4      pV P                  V P                  VP                  4      R\         R24       RVP                  n        V P                  V P                  VP                  4      R\         R24       RVP                  n        V P                  V P                  VP                  4      R	4       R
# )c                   &   a  ] tR tRt o R tRtV tR# )?TestDescriptions.test_custom_non_data_descriptor.<locals>.Descri  c                    Vf   V # ^*# rr   r   rm   rr  ri  s   &&&r#   __get__GTestDescriptions.test_custom_non_data_descriptor.<locals>.Descr.__get__      ;Kr"   r   N)r   r   r   r    r  r!   r   r   s   @r#   Descrr    s      r"   r  c                   (   < ] tR tRt Z ! 4       tRtR# );TestDescriptions.test_custom_non_data_descriptor.<locals>.Xi  r   Nr   r   r   r    attrr!   r  s   r#   r  r    
    7Dr"   r  r`   zH.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>Custom descriptorz_.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>
    Custom descriptor
r  zfoo(...)
    Custom descriptor
N)r   r  r  r   r   rm   r  r  s   & @r#   test_custom_non_data_descriptor0TestDescriptions.test_custom_non_data_descriptor  s    	 	
	 	 	008 ?
S;W 	X -008 ?
 ; 	
  008 ; 	r"   c                |  a  ! R  R4      o ! V3R lR4      pV P                  V P                  VP                  4      R4       RVP                  n        V P                  V P                  VP                  4      R4       RVP                  n        V P                  V P                  VP                  4      R4       R	# )
c                   ,   a  ] tR tRt o R tR tRtV tR# );TestDescriptions.test_custom_data_descriptor.<locals>.Descri(  c                    Vf   V # ^*# rr   r   r  s   &&&r#   r  CTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__get__)  r  r"   c                    ^^ ,           R# r   r   r  s   &&&r#   __set__CTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__set__-  s    !r"   r   N)r   r   r   r    r  r  r!   r   r   s   @r#   r  r  (  s      r"   r  c                   (   < ] tR tRt Z ! 4       tRtR# )7TestDescriptions.test_custom_data_descriptor.<locals>.Xi/  r   Nr  r  s   r#   r  r  /  r  r"   r  r%   r  z    Custom descriptor
r  zfoo
    Custom descriptor
N)r   r  r  r   r   r  s   & @r#   test_custom_data_descriptor,TestDescriptions.test_custom_data_descriptor&  s    	 		 	 	008"=,008 ; 	  008 ; 	r"   c                   R  R lp\         P                  ! \         P                  P                  V4      4      pV P	                  RV4       \         P
                  ! 4       P                  V4      pV P	                  RV4       R# )c                $    V ^8  d   QhR\         /# )r   r  r   )r   s   "r#   r   <TestDescriptions.test_async_annotation.<locals>.__annotate__@  s     	 	 	r"   c                    "   ^# 5ir  r   )igns   &r#   coro_function=TestDescriptions.test_async_annotation.<locals>.coro_function@  s     s   zasync coro_functionz4async <a name="-coro_function"><strong>coro_functionNr2   r  r  documentr   r@   )rm   r  rY   rb   s   &   r#   test_async_annotation&TestDescriptions.test_async_annotation?  s]    	 {{5??33MBC+T2}}''6B	r"   c                   R  p\         P                  ! \         P                  P                  V4      4      pV P	                  RV4       \         P
                  ! 4       P                  V4      pV P	                  RV4       R# )c                    "   ^5x  R# 5ir   r   r   r"   r#   an_async_generatorLTestDescriptions.test_async_generator_annotation.<locals>.an_async_generatorL  s
     Gs   
zasync an_async_generatorz>async <a name="-an_async_generator"><strong>an_async_generatorNr	  )rm   r  rY   rb   s   &   r#   test_async_generator_annotation0TestDescriptions.test_async_generator_annotationK  s_    	 {{5??334FGH0$7}}''(:;L	r"   c                x    R  p\         P                  ! 4       P                  V4      pV P                  RV4       R# )c                      R # rr   r   r   r"   r#   a_fn_with_https_linkHTestDescriptions.test_html_for_https_links.<locals>.a_fn_with_https_linkY  s    r"   z3<a href="https://localhost/">https://localhost/</a>N)r2   r@   r
  r   )rm   r  rb   s   &  r#   test_html_for_https_links*TestDescriptions.test_html_for_https_linksW  s2    	 }}''(<=A	
r"   c                >    ^ RI Hp \        P                  ! V4       R# )r   )module_noneN)test.test_pydocr  r2   r   )rm   r  s   & r#   test_module_none!TestDescriptions.test_module_nonec  s    /%r"   r   N)<r   r   r   r    rn   r  r  r  r  r  r  r  r  r  r  r
  r   r  r  r"  r&  r*  r.  r4  r8  r;  rA  rD  rI  rL  rR  rU  rY  r\  r   cpython_onlyrb  rj  ro  rs  rx  r{  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r!   r   r   s   @r#   r  r  y  s    3*
5EPH
RC"   $ $  A A
B,  ? ? @ @":7@>IG@:OJ =  = $  $ F  F R  R F  F ?  ?#+J ' '( ' '( H H O O ? ?
 % %       * *  0  0

 	
 	
& &r"   r  c                      a  ] tR tRt o R tR t]P                  3R lt]P                  3R lt	R t
R tR tR	 tR
tV tR# )PydocFodderTestii  c                \    V P                  \        P                  R ,          \        4       R# rg   rh   rl   s   &r#   rn   PydocFodderTest.tearDownj  r   r"   c                    VP                  4       p^ RreVe   VP                  V4      pVe   VP                  W54      pWEV # )r   N)r   r!  )rm   rY   	beginlineendliner  
beginindexendindexs   &&&&   r#   
getsectionPydocFodderTest.getsectionm  sH    ! $H Y/J{{77H))r"   c                   \         P                  ! 4       pVP                  V4      p\        V4      pV\        P
                  J d   R MRpV P                  VRV R2R!4      pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  R	V4       V P                  R
V4       \        P                  '       gJ   V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       MHV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  VRV R2R!4      pV P                  RV4       V\        P
                  J d   RMRpV P                  RV,           V4       V P                  RV4       \        P                  '       g&   V P                  RV4       V P                  RV4       M$V P                  RV4       V P                  RV4       V P                  VRV R2R!4      pV P                  RV4       V P                  RV4       R # )"defined hereinherited from Bz |  Methods :z# |  A_method_alias = A_method(self)z# |  B_method_alias = B_method(self)z; |  A_staticmethod(x, y) from test.test_pydoc.pydocfodder.Az/ |  A_staticmethod_alias = A_staticmethod(x, y)z6 |  global_func(x, y) from test.test_pydoc.pydocfodderz) |  global_func_alias = global_func(x, y)zL |  global_func2_alias = global_func2(x, y) from test.test_pydoc.pydocfodderz, |  count(self, value, /) from builtins.listz& |  list_count = count(self, value, /)z* |  __repr__(self, /) from builtins.objectz# |  object_repr = __repr__(self, /)z- |  count(self, object, /) from builtins.listz' |  list_count = count(self, object, /)z& |  __repr__(...) from builtins.objectz |  object_repr = __repr__(...)z |  Static methods zV |  A_classmethod_ref = A_classmethod(x) class method of test.test_pydoc.pydocfodder.Ar%   . class method of test.test_pydoc.pydocfodder.Bz( |  B_classmethod_ref = B_classmethod(x)zN |  A_method_ref = A_method() method of test.test_pydoc.pydocfodder.A instancez> |  get(key, default=None, /) method of builtins.dict instancezI |  dict_get = get(key, default=None, /) method of builtins.dict instancez- |  get(...) method of builtins.dict instancez8 |  dict_get = get(...) method of builtins.dict instancez |  Class methods z |  B_classmethod(x)z* |  B_classmethod_alias = B_classmethod(x)NzJ |  ----------------------------------------------------------------------)
r2   rS   r  rL   r   r   r(  r   r   r   rm   ri  rD   r   wherer  notes   &&     r#   test_text_doc_routines_in_class/PydocFodderTest.test_text_doc_routines_in_classv  s+   mmoc"F#"%"6<N,ugQ(?Q;UC;UCSUZ[GONPUVA5Idfkl+++MMH%PMMBEJMMFNMM?GMMI5QMMCUKMMBEJMM;UC*=eWA(FXnpuvKMM)r/_@4GOfhmn+++MMZ\abMMeglmMMI5QMMTV[\*<UG1(EW,e4BEJr"   c                ^   \         P                  ! 4       pVP                  V4      p\        V4      pV\        P
                  J d   R MRpV P                  VRV R2R4      pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  R	V4       V P                  R
V4       \        P                  '       gJ   V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       MHV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  VRV R2R4      pV P                  RV4       V\        P
                  J d   RMRpV P                  RV,           V4       V P                  RV4       V P                  VRV R2R4      pV P                  RV4       V P                  RV4       R# )r+  r,  zMethods r-  zA_method_alias = A_method(self)zB_method_alias = B_method(self)z7A_staticmethod(x, y) from test.test_pydoc.pydocfodder.Az+A_staticmethod_alias = A_staticmethod(x, y)z2global_func(x, y) from test.test_pydoc.pydocfodderz%global_func_alias = global_func(x, y)zHglobal_func2_alias = global_func2(x, y) from test.test_pydoc.pydocfodderz(count(self, value, /) from builtins.listz"list_count = count(self, value, /)z&__repr__(self, /) from builtins.objectzobject_repr = __repr__(self, /)z)count(self, object, /) from builtins.listz#list_count = count(self, object, /)z"__repr__(...) from builtins.objectzobject_repr = __repr__(...)zStatic methods zRA_classmethod_ref = A_classmethod(x) class method of test.test_pydoc.pydocfodder.Ar%   r.  z$B_classmethod_ref = B_classmethod(x)zJA_method_ref = A_method() method of test.test_pydoc.pydocfodder.A instancezClass methods zB_classmethod(x)z&B_classmethod_alias = B_classmethod(x)Nra   )
r2   r@   r  rc   r   r   r(  r   r   r   r/  s   &&     r#   test_html_doc_routines_in_class/PydocFodderTest.test_html_doc_routines_in_class  s   mmoc"6""%"6<N(5'(;VD7?7?OQVWCUKJER=uE`bgh+++MMDeLMM>FMMBEJMM;UCMMEuMMM?GMM>FMM7?/%(BFKjlqrKMM)r/_<tCUKbdij.q(A6J(%0>Fr"   c                D    V P                  \        P                  4       R # rr   )r2  r   Drl   s   &r#   )test_text_doc_inherited_routines_in_class9PydocFodderTest.test_text_doc_inherited_routines_in_class      ,,[]];r"   c                D    V P                  \        P                  4       R # rr   )r5  r   r8  rl   s   &r#   )test_html_doc_inherited_routines_in_class9PydocFodderTest.test_html_doc_inherited_routines_in_class  r;  r"   c                x   \         P                  ! 4       pVP                  \        4      p\	        V4      pV P                  VR R4      pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  R	V4       V P                  R
V4       V P                  RV4       V P                  RV4       \        P                  '       g&   V P                  RV4       V P                  RV4       M$V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       \        P                  '       gK   V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       R# V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       R# )	FUNCTIONSFILEz)    global_func_alias = global_func(x, y)z    A_staticmethod(x, y)z/    A_staticmethod_alias = A_staticmethod(x, y)z&    A_classmethod(x) class method of Az7    A_classmethod2 = A_classmethod(x) class method of Az7    A_classmethod3 = A_classmethod(x) class method of Bz#    A_method() method of A instancez/    A_method2 = A_method() method of A instancez/    A_method3 = A_method() method of B instancez-    A_staticmethod_ref = A_staticmethod(x, y)z@    A_staticmethod_ref2 = A_staticmethod(y) method of B instancez>    get(key, default=None, /) method of builtins.dict instancezI    dict_get = get(key, default=None, /) method of builtins.dict instancez-    get(...) method of builtins.dict instancez8    dict_get = get(...) method of builtins.dict instancez    B_method(self)z    B_method2 = B_method(self)z6    count(self, value, /) unbound builtins.list methodzC    list_count = count(self, value, /) unbound builtins.list methodz4    __repr__(self, /) unbound builtins.object methodzB    object_repr = __repr__(self, /) unbound builtins.object methodz7    count(self, object, /) unbound builtins.list methodzD    list_count = count(self, object, /) unbound builtins.list methodz0    __repr__(...) unbound builtins.object methodz>    object_repr = __repr__(...) unbound builtins.object methodN)	r2   rS   rA   r   rL   r(  r   r   r   rm   rD   r   r  s   &   r#    test_text_doc_routines_in_module0PydocFodderTest.test_text_doc_routines_in_module  s   mmo{+F#V<A5I0%8GO>FOQVWOQVW;UCGOGOEuMXZ_`+++MMZ\abMMeglmMMI5QMMTV[\ 	*E26>+++MMRTYZMM_afgMMPRWXMM^`efMMSUZ[MM`bghMMLeTMMZ\abr"   c                x   \         P                  ! 4       pVP                  \        4      p\	        V4      pV P                  VR R4      pV P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       V P                  R	V4       V P                  R
V4       V P                  RV4       V P                  RV4       \        P                  '       g&   V P                  RV4       V P                  RV4       M$V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       \        P                  '       gK   V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       R# V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       R# )z
 FunctionsNz& global_func_alias = global_func(x, y)z A_staticmethod(x, y)z, A_staticmethod_alias = A_staticmethod(x, y)z"A_classmethod(x) class method of Az4 A_classmethod2 = A_classmethod(x) class method of Az4 A_classmethod3 = A_classmethod(x) class method of Bz  A_method() method of A instancez, A_method2 = A_method() method of A instancez, A_method3 = A_method() method of B instancez* A_staticmethod_ref = A_staticmethod(x, y)z= A_staticmethod_ref2 = A_staticmethod(y) method of B instancez; get(key, default=None, /) method of builtins.dict instancezF dict_get = get(key, default=None, /) method of builtins.dict instancez* get(...) method of builtins.dict instancez5 dict_get = get(...) method of builtins.dict instancez B_method(self)z B_method2 = B_method(self)z3 count(self, value, /) unbound builtins.list methodz@ list_count = count(self, value, /) unbound builtins.list methodz1 __repr__(self, /) unbound builtins.object methodz? object_repr = __repr__(self, /) unbound builtins.object methodz4 count(self, object, /) unbound builtins.list methodzA list_count = count(self, object, /) unbound builtins.list methodz- __repr__(...) unbound builtins.object methodz; object_repr = __repr__(...) unbound builtins.object method)	r2   r@   rA   r   rc   r(  r   r   r   rB  s   &   r#    test_html_doc_routines_in_module0PydocFodderTest.test_html_doc_routines_in_module  s   mmo{+6"d;>F-u5DeL:EBLeTLeT8%@DeLDeLBEJUW\]+++MMWY^_MMbdijMMFNMMQSXY'/3U;+++MMOQVWMM\^cdMMMuUMM[]bcMMPRWXMM]_deMMI5QMMWY^_r"   r   N)r   r   r   r    rn   r(  r   r   r2  r5  r9  r=  rC  rF  r!   r   r   s   @r#   r   r   i  sL     3* 3>-- &KP 3>--  GD<<&cR%` %`r"   r   z/Socket server not available on Emscripten/WASI.c                   ,   a  ] tR tRt o R tR tRtV tR# )PydocServerTesti  c                \    V P                  \        P                  R ,          \        4       R# rg   rh   rl   s   &r#   rn   PydocServerTest.tearDown  r   r"   c           	     @  a R  p\         P                  ! VR^ R7      oV P                  SP                  R4       V P	                  SP
                  4       V P                  V3R l4       V P                  RSP                  4       V P                  \        4       V P                  R\        \        P                  P                  SP                  R4      4      P                  4       4       V P                  R\        \        P                  P                  SP                  R4      4      P                  4       4       SP                  4        V P!                  SP
                  4       V P#                  SP$                  4       V P#                  SP                  4       R# )	c                     R V : RV: R2pV# )zthe URL sent was: (z, )r   )r   content_typerY   s   && r#   my_url_handler3PydocServerTest.test_server.<locals>.my_url_handler#  s    36EDKr"   	localhost)hostnameportNc                  L   < S P                   '       d   S P                  4       # R # rr   )servingstop)serverthreads   r#   r  -PydocServerTest.test_server.<locals>.<lambda>/  s!    <+?+?+?L%%'ITIr"   s$   the URL sent was: (/test, text/html)z/tests'   the URL sent was: (/test.css, text/css)z	/test.css)r2   _start_serverr   errorr  rV  r  r   r   r   r   r   r   urljoinreadrW  r  r  	docserver)rm   rP  rX  s   & @r#   test_serverPydocServerTest.test_server   s<   	 ** 
 	++T2,,-I	 	k<#3#34
#3FLL(()9)97CDIIK	 	6FLL(()9)9;GHMMO	
 	--.,001,**+r"   r   N)r   r   r   r    rn   r_  r!   r   r   s   @r#   rI  rI    s     3 ,  ,r"   rI  c                   ,   a  ] tR tRt o R tR tRtV tR# )PydocUrlHandlerTestiC  c                    \         P                  pV P                  \        VR R4       V P                  \        VRR4       R# )r   r%   r   foobarN)r2   r   r  	TypeError)rm   rt  s   & r#   test_content_type_err)PydocUrlHandlerTest.test_content_type_errF  s5    )QR0)QX6r"   c                l   . ROpV P                  \        P                  R,          \        4        V P	                  4       ;_uu_ 4        V F  w  r#V P                  W#4       K  	  RRR4       \        \        P                  R&   R#   + '       g   i     L); i  \        \        P                  R&   i ; i)r%   r2   N))r%   Pydoc: Index of Modules)zget?key=ri  )r!  ri  )rK  zPydoc: Topics)rI  zPydoc: Keywords)r2   Pydoc: module pydoc)zget?key=pydocrj  )zsearch?key=pydocr  )ztopic?key=defzPydoc: KEYWORD def)ztopic?key=STRINGSzPydoc: TOPIC STRINGS)rd  zPydoc: Error - foobar)ri   rj   rk   r2   r}   r   )rm   requestsr   r\   s   &   r#   test_url_requests%PydocUrlHandlerTest.test_url_requestsK  s     	ckk'*E2	),,.."*JC))#5 #+ /
 $)CKK  /.
 $)CKK s#   B 	B&B B	B B3r   N)r   r   r   r    rf  rl  r!   r   r   s   @r#   rb  rb  C  s     7
) )r"   rb  c                   &   a  ] tR tRt o R tRtV tR# )
TestHelperig  c                    V P                  \        \        P                  P                  4      \        \
        P                  4      4       R # rr   )r   sortedr2   r,  rI  keywordkwlistrl   s   &r#   test_keywordsTestHelper.test_keywordsh  s-     5 56/	1r"   r   N)r   r   r   r    rt  r!   r   r   s   @r#   ro  ro  g  s     1 1r"   ro  c                     a  ] tR tRt o R t]P                  ! ]! ]R4      ;'       d    ]P                  ! 4       R4      ]
R 4       4       t]P                  ! ]! ]R4      ;'       d    ]P                  ! 4       R4      ]
R 4       4       t]P                  ! ]! ]R4      ;'       d    ]P                  ! 4       R4      ]
R 4       4       t]P                  ! ]! ]R4      ;'       d    ]P                  ! 4       R4      ]
R 4       4       tR	 tR
tV tR# )PydocWithMetaClassesim  c                \    V P                  \        P                  R ,          \        4       R# rg   rh   rl   s   &r#   rn   PydocWithMetaClasses.tearDownn  r   r"   r   r   c                    ! R  R\         4      p ! R RVR7      p\        ;QJ d    . R \         4       F  NK  	  5M! R \         4       4      p\        4       p\        P
                  ! VR7      pV! V4       \        \        3VR,          ,           ,          pVP                  4       P                  4       pV P                  Wg4       R# )	c                   2   a a ] tR tRt oV 3R ltRtVtV ;t# )=PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.Metaiu  c                4   < VR 8X  d   R# \         SV `  V4      # )hamspamsuper__getattr__rm   r  r  s   &&r#   r  IPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.Meta.__getattr__v  s    5=!w*400r"   r   )r   r   r   r    r  r!   r   __classcell__r  r   s   @@r#   Metar|  u  s     1 1r"   r  c                   D   a  ] tR tRt o ]P
                  R 4       tRtV tR# );PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DAiz  c                    R # )eggsr   rl   s   &r#   r~  ?PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DA.ham{  s    r"   r   N)	r   r   r   r    r  DynamicClassAttributer~  r!   r   r   s   @r#   DAr  z  s     (( )r"   r  	metaclassc              3   H   "   T F  pV'       d
   R V,           MRx  K  	  R# 5i)z	
 |      r%   Nr   r&   s   & r#   r)   BPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.<genexpr>~  s&      .I/G! CDlQ.>.K/Gr*   r+  :Nr   NN)r  r  expected_data_docstringsr   r2   r,  !expected_dynamicattribute_patternr   r.  r4   r   )rm   r  r  r   rE   r1  r   r   s   &       r#   test_DynamicClassAttribute/PydocWithMetaClasses.test_DynamicClassAttributeq  s    	14 	1
	4 	 ). .I/G.I .I/G.I )I%V,r
9;B??A"((*/r"   c                    ! R  R\         4      p ! R RVR7      p\        4       p\        P                  ! VR7      pV! V4       \        \
        ,          pVP                  4       P                  4       pV P                  WV4       R# )c                   8   a a ] tR tRt oR tV 3R ltRtVtV ;t# )HPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Metai  c                
    . RO# )r  )r  r   r   LIFEr   ri  s   &r#   __dir__PPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__dir__  s    FFr"   c                4   < VR 8X  d   ^*# \         SV `  V4      # )r  )r  _Meta__getattrr  s   &&r#   r  TPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__getattr__  s    &=w(..r"   r   	r   r   r   r    r  r  r!   r   r  r  s   @@r#   r  r    s     G/ /r"   r  c                       ] tR tRtRtR# )IPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Classi  r   Nr   r   r"   r#   Classr    r   r"   r  r  r+  N)	r  r   r2   r,  "expected_virtualattribute_pattern1r   r.  r4   r   )rm   r  r  rE   r1  r   r   s   &      r#   %test_virtualClassAttributeWithOneMeta:PydocWithMetaClasses.test_virtualClassAttributeWithOneMeta  sc    	/4 	/	d 	V,u:XE"((*/r"   c                :  a
a  ! R  R\         4      o
 ! R R\         4      o ! V
V3R lRS
S4      p ! R RS
R7      p ! R	 R
W!R7      p\        4       p\        P                  ! VR7      pV! V4       \        \
        ,          pVP                  4       P                  4       pV P                  Wg4       \        4       p\        P                  ! VR7      pV! V4       \        \
        ,          pVP                  4       P                  4       p	V P                  W4       R# )c                   8   a a ] tR tRt oR tV 3R ltRtVtV ;t# )IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1i  c                
    . RO# )r  )r  r   r   r   r   r  s   &r#   r  QPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__dir__      EEr"   c                4   < VR 8X  d   ^# \         SV `  V4      # )r   r  r  s   &&r#   r  UPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__getattr__      %<w*400r"   r   r  r  s   @@r#   Meta1r         F1 1r"   r  c                   8   a a ] tR tRt oR tV 3R ltRtVtV ;t# )IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2i  c                
    . RO# )r  )r  r   r   twor   r  s   &r#   r  QPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__dir__  r  r"   c                4   < VR 8X  d   ^# \         SV `  V4      # )r  r  r  s   &&r#   r  UPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__getattr__  r  r"   r   r  r  s   @@r#   Meta2r    r  r"   r  c                   B   <a a ] tR tRt oVV3R ltV 3R ltRtVtV ;t# )IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3i  c           
        < \        \        \        . ROSP                  V 4      ,           SP                  V 4      ,           4      4      4      # )r  )r  r   r   three)rg  rq  r?  r  )ri  r  r  s   &r#   r  QPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__dir__  sC    F3DMM#&').s);<$= > ? ?r"   c                4   < VR 8X  d   ^# \         SV `  V4      # )r  r  r  s   &&r#   r  UPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__getattr__  s    '>w*400r"   r   r  )r  r   r  r  s   @@r#   Meta3r    s     ?1 1r"   r  c                       ] tR tRtRtR# )JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class1i  r   Nr   r   r"   r#   Class1r    r   r"   r  r  c                       ] tR tRtRtR# )JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class2i  r   Nr   r   r"   r#   Class2r    r   r"   r  r+  N)
r  r   r2   r,  "expected_virtualattribute_pattern2r   r.  r4   r   "expected_virtualattribute_pattern3)rm   r  r  r  rE   r1  expected_text1result1expected_text2result2r  r  s   &         @@r#   %test_virtualClassAttributeWithTwoMeta:PydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta  s    	1D 	1	1D 	1	1 	1E5 	1	u 		V 	V,v;hF//#))+1V,v;hF//#))+1r"   c                    ! R  R\         4      p ! R RVR7      p\        4       p\        P                  ! VR7      pV! V4       \        \
        ,          pVP                  4       P                  4       pV P                  WV4       R# )c                   &   a  ] tR tRt o R tRtV tR# ).PydocWithMetaClasses.test_buggy_dir.<locals>.Mi  c                
    . RO# )r  )r  r   missingherer   r  s   &r#   r  6PydocWithMetaClasses.test_buggy_dir.<locals>.M.__dir__  s    CCr"   r   N)r   r   r   r    r  r!   r   r   s   @r#   Mr    s     D Dr"   r  c                       ] tR tRtRtRtR# ).PydocWithMetaClasses.test_buggy_dir.<locals>.Ci  zpresent!r   N)r   r   r   r    r  r!   r   r"   r#   r  r    s    Dr"   r  r  r+  N)	r  r   r2   r,  !expected_missingattribute_patternr   r.  r4   r   )rm   r  r  rE   r1  r   r   s   &      r#   test_buggy_dir#PydocWithMetaClasses.test_buggy_dir  se    	D 	D	! 	V,q	9HD"((*/r"   c                    \        4       ;_uu_ 4       p\        P                  ! R 4       RRR4       XP                  4       pV P	                  RV4       R#   + '       g   i     L4; i)z	enum.EnumNz
class Enum)r   r2   r-  r.  r   )rm   r  rr  s   &  r#   test_resolve_false'PydocWithMetaClasses.test_resolve_false  sE     'JJ{# ##%lH- s   AA&	r   N)r   r   r   r    rn   r[  r^  r_  rj   r   r   r  r  r  r  r  r!   r   r   s   @r#   rw  rw  m  s    3 __WS*-@@#,,.HJ0 J0( __WS*-@@#,,.HJ0 J0" __WS*-@@#,,.HJ'2 J'2R __WS*-@@#,,.HJ0 J0. .r"   rw  c                   N   a  ] tR tRt o R tRR ltR tR tR tR t	R	 t
R
tV tR# )TestInternalUtilitiesi  c                N   \         P                  ! 4       pVP                  V n        \        P
                  P                  VP                  R 4      V n        V P                  VP                  4       \        P                  ! 4       ;V n        pR\        P                  V.V n        R# )nonexistentr%   N)r  TemporaryDirectoryr  argv0dirrO   rP   r  argv0r  cleanupgetcwd
abs_curdircurdircurdir_spellings)rm   tmpdirr  s   &  r#   re  TestInternalUtilities.setUp  sj    ,,.WW\\&++}=
'')yy{2*!#RYY
 ;r"   Nc                N    Vf   V P                   p\        P                  ! W4      # rr   )r  r2   _get_revised_path)rm   
given_pathr  s   &&&r#   r  'TestInternalUtilities._get_revised_path  s#     =JJE&&z99r"   c                    \         P                  P                  4       pV P                   F5  p\	        VP                  V4      4       F  pVP                  V4       K  	  K7  	  V# rr   )rj   rP   copyr  r  countr  )rm   
clean_pathspelling__s   &   r#   _get_starting_path(TestInternalUtilities._get_starting_path  sQ    XX]]_
--HJ,,X67!!(+ 8 . r"   c                    V P                  4       pV P                  .V,           pV P                  V P                  V4      V4       R # rr   )r  r  r   r  )rm   r  expected_paths   &  r#   ,test_sys_path_adjustment_adds_missing_curdirBTestInternalUtilities.test_sys_path_adjustment_adds_missing_curdir  s<    ,,.
)J6//
;]Kr"   c                    V P                  4       pV P                  .V,           pV P                  .V,           pV P                  V P	                  V4      V4       WP                  .,           pV P                  V P	                  V4      V4       R # rr   )r  r  r  r   r  )rm   r  r  leading_argv0dirtrailing_argv0dirs   &    r#   *test_sys_path_adjustment_removes_argv0_dir@TestInternalUtilities.test_sys_path_adjustment_removes_argv0_dir  sy    ,,.
)J6 MM?Z7//0@A=Q&--8//0ABMRr"   c                4  a  V 3R  lpS P                  4       pS P                  .V,           pS P                  .V,           pS P                  V! V4      V4       VS P                  .,           pS P                  .V,           pS P                  V! V4      V4       R# )c                 F   < SP                  V \        P                  R 7      # ))r  )r  r2   r3   )r  rm   s   &r#   r  \TestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dir.<locals>._get_revised_path	  s    ))*ENN)KKr"   N)r  r  r  r   )rm   r  r  r  r  r  s   f     r#   +test_sys_path_adjustment_protects_pydoc_dirATestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dir	  s    	L,,.
 MM?Z7),<<*+;<mL&$--8),==*+<=}Mr"   c                .   V P                  4       pV P                   F  pV P                  VR 7      ;_uu_ 4        V.V,           pV P                  V P	                  V4      4       W.,           pV P                  V P	                  V4      4       V P
                  .V,           pV P                  V P	                  V4      4       W@P
                  .,           pV P                  V P	                  V4      4       RRR4       K  	  R#   + '       g   i     K  ; i))curdir_spellingN)r  r  r^  r  r  r  )rm   r  r  leading_curdirtrailing_curdirr  r  s   &      r#   5test_sys_path_adjustment_when_curdir_already_includedKTestInternalUtilities.test_sys_path_adjustment_when_curdir_already_included	  s    ,,.
--Hh77"*j!8!!$"8"8"HI",z"9!!$"8"8"IJ$(MM?^#C !!$"8"89I"JK$3}}o$E!!!$"8"89J"KL 87 .777s   B;DD)r  r  r  r  rr   )r   r   r   r    re  r  r  r  r  r  r  r!   r   r   s   @r#   r  r    s2     <:L
S	NM Mr"   r  c                      \         P                  ! 4       p \        P                  ! \         P                  .V O5!   \        P                  ! \
        4       R # rr   )r   threading_setupr[  addModuleCleanupthreading_cleanupr   )thread_infos    r#   setUpModuler  !	  s8    "224K.@@O;Om,r"   __main__)!dictionary for instance variables%list of weak references to the objectr  r  )r%   r%   r%   r%   )brP  rO   rj   r   importlib.utilr  r   r  r2   r  rr  r  r|   rI   r  test.supporttestr-  r  rO  r[  unittest.mockurllib.parser   	xml.etreer   xml.etree.ElementTreer8  r   collectionsr   urllib.requestr   r   r   r   r	   test.support.script_helperr
   r   r   r   r   r   r   r   r   r   test.support.os_helperr   r   r   r  r   r   r   HAVE_DOCSTRINGSr  r4   r   r  r   r   expected_html_data_docstringsr.   r/  r   rn  r  r  r  r  r  r<   r>   rG   rL   rT   rV   r]   rc   TestCasere   r   ra  r  r  r  r   r^  rI  rb  ro  rw  r  r  r   mainr   r"   r#   <module>r(     s    	 
    	      	             " .  & "M M )E E < ; % '	 	 << 
  0Zt 
EGu x !& &I/G&I &I/G&I !I L \ !& &I/G&I &I/G&I !I , -4GD"**,E  N %  
EG! "$& 
EG #& 
EG #&, 
EG- #0% 
EG ""		 H%%  Fu38$$ u3pU)m U)p /T /m&x(( m&`k`h'' k`\ 
5%,h'' %,	%,P!)- !)H1"" 1q.8,, q.h=MH-- =M@- zMMO r"   