python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_pydoc.cpython-311.opt-1.pyc

eddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlmZddlmZddlmZmZddlm Z ddlm!Z!ddl"m#Z#m$Z$m%Z%ddlm&Z&dd	lm'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-dd
l.m/Z/m0Z0m1Z1ddlm2Z2Gdd
Z3ej4j5rdZ6ndZ6d7Z8e9de6DZ:dZ;e9de6DZ<d=dej>Z?dZ@d7ZAd7ZBd7ZCd7ZDd7ZEdZFdZGdZHdZId ZJd!ZKd"ZLGd#d$ejMZNGd%d&ejMZOGd'd(eNZPGd)d*ejMZQejRe+pe,d+Gd,d-ejMZSGd.d/eNZTGd0d1ejMZUGd2d3ejMZVGd4d5ejMZWd6ZXeYd7krejZdSdS)8N)StringIO)
namedtuple)urlopen
urlcleanup)
import_helper)	os_helper)assert_python_okassert_python_failurespawn_python)threading_helper)
reap_childrencaptured_outputcaptured_stdoutcaptured_stderr
is_emscriptenis_wasirequires_docstrings)TESTFNrmtreeunlink)	pydoc_modceZdZdZdS)nonasciiuЦе не латиницяN__name__
__module____qualname____doc__C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_pydoc.pyrr%s  Dr r)!dictionary for instance variables%list of weak references to the objectr"r#)r$r$r$a
NAME
    test.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'
     |  
     |  __annotations__ = {'NO_MEANING': <class 'str'>}
    
    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) from builtins.type
     |  
     |  ----------------------------------------------------------------------
     |  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.pydoc_mod.C[int]
    list_alias1 = typing.List[int]
    list_alias2 = list[int]
    type_union1 = typing.Union[int, str]
    type_union2 = int | str

VERSION
    1.2.3.4

AUTHOR
    Benjamin Peterson

CREDITS
    Nobody

FILE
    %s
c#(K|]
}|rd|zndVdS)z
     |      r$Nr.0ss  r!	<genexpr>r)sO&I&I*+?@&G&6&:&:R&I&I&I&I&I&Ir aM
test.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'
        __annotations__ = {'NO_MEANING': <class 'str'>}


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) from builtins.type
    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.pydoc_mod.C[int]
    list_alias1 = typing.List[int]
    list_alias2 = list[int]
    type_union1 = typing.Union[int, str]
    type_union2 = int | str

Author
    Benjamin Peterson

Credits
    Nobody
c#BK|]}|ddVdS) &nbsp;N)replacer&s  r!r)r)sL&I&I*+'(iiX&>&>&I&I&I&I&I&Ir 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!'
ct||fz}tdtjg|Ri|\}}}|S)zW
    Runs pydoc on the specified module. Returns the stripped
    output of pydoc.
    -B)r	pydoc__file__stripmodule_nameargsenvrcouterrs      r!	run_pydocr;/sE
;. D#D%.G4GGG3GGLBS99;;r ct||fz}tdtjg|Ri|\}}}|S)zA
    Runs pydoc on the specified module expecting a failure.
    r0)r
r1r2r3r4s      r!run_pydoc_failr=9sE;. D(u~LLLLLLLBS99;;r ctj}||}|tpd}|rd|zdz}||fS)z&Returns pydoc generated output as htmlr$z
<br><a href="z">Module Docs</a>)r1HTMLDoc	docmodule	getdoclocrr3)moduledocoutputlocs    r!get_pydoc_htmlrFAs_
-//C
]]6
"
"F

--	
"
"
(bC
<$';;<<>>3r ctjj}tjj}|||t}tj}|||}|S)z,Returns a documentation web link of a module)basedir)ospathabspathdirnamer2r1TextDocrA)rBrKrLrHrCrEs      r!get_pydoc_linkrNJs\goGgoGgggggh//0011G
-//C

---
0
0CJr ctj}|tpd}|rd|zdz}||}tjd}|d|}||fS)z&Returns pydoc generated output as textr$z
MODULE DOCS
    r..)	r1rMrArr@recompilesubr3)rBrCrErDpatts     r!get_pydoc_textrUSs
-//C

--	
"
"
(bC
1#c)D0
]]6
"
"F:eD
XXb&
!
!F<<>>3r c|d\}}}|d\}}}|d\}}}|S)Nz</head>z<title>z</title>)	partition)textheader_titles    r!get_html_titler\asN>>),,LFAq""9--KAq%//*--KE1aLr c	|dd}tjdd|}tj|ddddd	d
}|S)zWA quick and dirty implementation of html2text.

    Tailored for pydoc tests only.
    z<dd>r.z<.*?>r$r,r+z&gt;>z&lt;<)r-rQrSr1)htmls r!	html2textraisJ
<<%%D
6'2t$$D=xfc63GGDKr c>eZdZddZejddZdZdS)
PydocBaseTestNcf|p$tjtgdfd	}|S)zi
        A version of pkgutil.walk_packages() that will restrict itself to
        a given path.
        Nr$c"|p||SNr)rJprefixonerrordefault_path
walk_packagess   r!wrapperz8PydocBaseTest._restricted_walk_packages.<locals>.wrapper|s =!5vwGGGr )Nr$N)rIrJrLr2)selfrjrJrkris `  @r!_restricted_walk_packagesz'PydocBaseTest._restricted_walk_packagesvsP
: 9 9:	H	H	H	H	H	H	Hr c#Ktj}|||t_	dV|t_dS#|t_wxYwrf)pkgutilrjrm)rlrJrjs   r!restrict_walk_packagesz$PydocBaseTest.restrict_walk_packagess]-
 $ > >}?C!E!E	2EEE$1G!!!MG!1111sAAc|tj|d}t|}|||||S)Nz	text/html)r1_url_handlerr\assertEqual)rlurlexpected_titlerXresults     r!call_url_handlerzPydocBaseTest.call_url_handlers>!#{33%%666r rf)rrrrm
contextlibcontextmanagerrprwrr r!rcrcts[2222r rccFeZdZdZejeedoejde	dZ
ejeedoejde	dZdZdZ
dZd	Zd
ZdZe	dZd
ZdZdZdZdZdZdZdZdZejeedoejde	dZdZdZdZe	dZ dZ!dZ"dZ#dZ$dZ%e	d Z&d!Z'dS)"PydocDocTestNgettrace1trace function introduces __locals__ unexpectedlyctt\}}t|}d|D}d|D}|d=t}d|D}|||t
jt}tj	
|}|||||||||dS)Nc6g|]}|Srr3r'lines  r!
<listcomp>z.PydocDocTest.test_html_doc.<locals>.<listcomp>s HHHtdjjllHHHr cg|]}||Srrrs  r!rz.PydocDocTest.test_html_doc.<locals>.<listcomp>s:::tT:d:::r c:g|]}||Srrrs  r!rz.PydocDocTest.test_html_doc.<locals>.<listcomp>s%JJJ4TJ$**,,JJJr )rFrra
splitlineshtml2text_of_expectedrsinspect
getabsfileurllibparsequoteassertIn)rlrvdoc_loctext_result
text_linesexpected_linesmod_filemod_urls        r!
test_html_doczPydocDocTest.test_html_docs)33''HH{/E/E/G/GHHH
::z:::
qM.99;;JJ>JJJ^444%i00,$$X..

gv&&&

h'''

gv&&&&&r ctt\}}t|ftzt	jtfzz}|||dSrf)rUrexpected_text_patternexpected_text_data_docstringsrrrs)rlrvr
expected_texts    r!
test_text_doczPydocDocTest.test_text_docs`)33- 
56 +I6689:
	
/////r cddl}Gdd|j}tj|}|d|dS)NrceZdZdZdZdS)IPydocDocTest.test_text_enum_member_with_value_zero.<locals>.BinaryIntegerrrN)rrrzeroonerr r!
BinaryIntegerrsDCCCr rzBinaryInteger.zero)enumIntEnumr1
render_docr)rlrrrCs    r!%test_text_enum_member_with_value_zeroz2PydocDocTest.test_text_enum_member_with_value_zerosf						DL			}--

*C00000r cnttjj}|d|dS)Nzxml.etree.elementtree)rNxmletreeElementTreer)rldoc_links  r!,test_mixed_case_module_names_are_lower_casedz9PydocDocTest.test_mixed_case_module_names_are_lower_caseds/!#)"788

-x88888r clttj\}}||dddS)Nr$z'MODULE DOCS incorrectly includes a link)rUrrrs)rlrvrs   r!test_issue8225zPydocDocTest.test_issue8225s4(33"&OPPPPPr ctj}	dt_tj|t_dS#|t_wxYwrf)sysstdinr1getpager)rlprevious_stdins  r!test_getpager_with_stdin_nonez*PydocDocTest.test_getpager_with_stdin_nonesA	'CIN&CIIICI&&&&s	;A	cGdd}Gdd}tj|}tj|}||dd|dS)NceZdZdZdS))PydocDocTest.test_non_str_name.<locals>.A*Nrrrrr r!ArsHHHr rceZdZdS))PydocDocTest.test_non_str_name.<locals>.BNrrr r!BrDr r)r1rrsr-)rlrradocbdocs     r!test_non_str_namezPydocDocTest.test_non_str_names																$$$$c3//66666r cd}tt|d}t|z}|||ddS)Ntest.i_am_not_hereasciiz&documentation for missing module found)strr=missing_patternrsrlmissing_modulervexpecteds    r!
test_not_herezPydocDocTest.test_not_heresQ-^N33W=="^364	6	6	6	6	6r ctdd}tjdd}|||dS)Nztest.test_pydoc.nonasciir)PYTHONIOENCODINGbackslashreplace)r;rrencoder)rlrvencodeds   r!test_not_asciizPydocDocTest.test_not_asciisH5PPP"))'3EFF

gv&&&&&r cd}tt|d}t|z}|||dS)Nz test.i_am_not_here r)rr=rr3rsrs    r!test_input_stripzPydocDocTest.test_input_stripsP/^N33W=="^%9%9%;%;;6*****r ctj}||dd||dd||dd||dddS)Nz<function stripid at 0x88dcee4>z<function stripid>z <function stripid at 0x01F65390>42z<type 'exceptions.Exception'>)r1stripidrs)rlrs  r!test_stripidzPydocDocTest.test_stripids-!BCC-	/	/	/!CDD-	/	/	/	
---!@AA8	:	:	:	:	:r ctj}|t}d}|||dS)aTests help on builtin object which have more than four child classes.

        When running help() on a builtin class which has child classes, it
        should contain a "Built-in subclasses" section and only 4 classes
        should be displayed with a hint on how many more subclasses are present.
        For example:

        >>> help(object)
        Help on class object in module builtins:

        class object
         |  The most base type
         |
         |  Built-in subclasses:
         |      async_generator
         |      BaseException
         |      builtin_function_or_method
         |      bytearray
         |      ... and 82 other subclasses
        z |  Built-in subclasses:
 |      async_generator
 |      BaseException
 |      builtin_function_or_method
 |      bytearray
 |      ... and \d+ other subclassesN)r1rMdocclassobjectassertRegexrlrCrXsnips    r!)test_builtin_with_more_than_four_childrenz6PydocDocTest.test_builtin_with_more_than_four_childrensE*moo||F##8	
t$$$$$r ctj}|t}d}|||dS)a1Tests help on builtin object which have only child classes.

        When running help() on a builtin class which has child classes, it
        should contain a "Built-in subclasses" section. For example:

        >>> help(ArithmeticError)
        Help on class ArithmeticError in module builtins:

        class ArithmeticError(Exception)
         |  Base class for arithmetic errors.
         |
         ...
         |
         |  Built-in subclasses:
         |      FloatingPointError
         |      OverflowError
         |      ZeroDivisionError
        zc |  Built-in subclasses:
 |      FloatingPointError
 |      OverflowError
 |      ZeroDivisionErrorN)r1rMrArithmeticErrorrrs    r!test_builtin_with_childz$PydocDocTest.test_builtin_with_childsC&moo||O,,,	


dD!!!!!r ctj}|t}d}||||d|dS)aTests help on builtin classes which have grandchild classes.

        When running help() on a builtin class which has child classes, it
        should contain a "Built-in subclasses" section. However, if it also has
        grandchildren, these should not show up on the subclasses section.
        For example:

        >>> help(Exception)
        Help on class Exception in module builtins:

        class Exception(BaseException)
         |  Common base class for all non-exit exceptions.
         |
         ...
         |
         |  Built-in subclasses:
         |      ArithmeticError
         |      AssertionError
         |      AttributeError
         ...
        z^ |  Built-in subclasses:
 |      ArithmeticError
 |      AssertionError
 |      AttributeErrorZeroDivisionErrorN)r1rMr	ExceptionrassertNotInrs    r!test_builtin_with_grandchildz)PydocDocTest.test_builtin_with_grandchild4sZ,moo||I&&)	


dD!!!,d33333r ctj}|t}|d|dS)aTests help on builtin object which have no child classes.

        When running help() on a builtin class which has no child classes, it
        should not contain any "Built-in subclasses" section. For example:

        >>> help(ZeroDivisionError)

        Help on class ZeroDivisionError in module builtins:

        class ZeroDivisionError(ArithmeticError)
         |  Second argument to a division or modulo operation was zero.
         |
         |  Method resolution order:
         |      ZeroDivisionError
         |      ArithmeticError
         |      Exception
         |      BaseException
         |      object
         |
         |  Methods defined here:
         ...
        Built-in subclassesN)r1rMrrrrlrCrXs   r!test_builtin_no_childz"PydocDocTest.test_builtin_no_childTs>.moo||-...55555r ctj}|t}|d|dS)zTests help on metaclasses.

        When running help() on a metaclasses such as type, it
        should not contain any "Built-in subclasses" section.
        rN)r1rMrtyperrs   r!test_builtin_on_metaclassesz(PydocDocTest.test_builtin_on_metaclassesps=moo||D!!.55555r ctdz}td5}|d\}}|dd}|dd|d<|||ddddS#1swxYwYdS)Nabdz-chelp()sabdiirzhelp> )rrrcommunicatedecoderemoveprefixrs)rlelinesprocr9rZoliness      r!test_fail_help_clizPydocDocTest.test_fail_help_cli{s!E)5577
-
(
(	-D%%f--FCZZ\\,,..r"u5Fq	..x88F1IVV,,,		-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-sA;B44B8;B8clt5}tj|}|dtdz}|||dtj
ddddS#1swxYwYdS)NrDrr.)rr1Helperhelprrsgetvaluer3r-rIlinesep)rlbufhelperrs    r!test_fail_help_output_redirectz+PydocDocTest.test_fail_help_output_redirects
ZZ	Y3\---FKK&.HXs||~~';';'='='E'EdBJ'W'WXXX		Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	Y	YsB
B))B-0B-ctj}d}d|_t}tj|}tt\}}d}d}tj	|}|tz}	|t_	td5}
td5}|||
}|	|ftzt!jtfzz}
|d|

|d|
||
|dddn#1swxYwYdddn#1swxYwY|t_dS#|t_wxYw)NcdS)Nc|Srfr)xs r!<lambda>zJPydocDocTest.test_help_output_redirect.<locals>.<lambda>.<locals>.<lambda>s!r rrr r!rz8PydocDocTest.test_help_output_redirect.<locals>.<lambda>sr rztest.pydoc_modz9
        Help on module test.pydoc_mod in test:

        stdoutstderrr$)r1rmaxDiffrrrUrlstriptextwrapdedentrrrrr3rrrrs)rlgetpager_oldgetpager_newrrunusedrrBhelp_headerexpected_help_patternrDr:rvrs              r!test_help_output_redirectz&PydocDocTest.test_help_output_redirects~,,jjS)))(33!
FHH	ok22 +.C C%
	* **

8f **

8.1F###--// 5!(
 =!>!(!3I!>!> @!A!B
  V__%6%6777  S\\^^444  777

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8

8*ENNN\EN))))sUF8!F1CF<FF	FF	FF8F##F8&F#'F88Gcvtdddg}t5}tj|dddn#1swxYwY|}|d||d||d||d|dS)NPersonnickname	firstnamezAlias for field number 0zAlias for field number 1rrr1rrr)rlrhelp_iohelptexts    r!test_namedtuple_fieldsz#PydocDocTest.test_namedtuple_fieldssHz;&?@@


	'Jv															##%%

j(+++

k8,,,

0(;;;

0(;;;;;sAA	AcNtdddgd}t5}tj|dddn#1swxYwY|}|d||d||d|dS)	NNTabcdefT)rename_1_replace_asdictr)rlrrrs    r!!test_namedtuple_public_underscorez.PydocDocTest.test_namedtuple_public_underscores
uenT
:
:
:


	'JrNNN															##%%

dH%%%

j(+++

i*****sAAAc|ttdD]}ttd|5}|dkr$t	d||t	d|t	d|dddn#1swxYwYt
jti}||d	dS)
N)z
ISO-8859-1UTF-8wencodingr z#coding: {})fileu"""line 1: héz
line 2: hi"""uline 1: hé)	
addCleanuprropenprintformatr1synopsisrs)rlr#scriptr)s    r!
test_synopsiszPydocDocTest.test_synopsiss'''/	8	8HfcH555
4w&&-..x88vFFFF(v6666oF3333	
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
~fb11HX7777	8	8sA
BB	B	ctjd}|jd}|j}tj|}|||dS)NrIr)rimport_fresh_modulerr
__cached__r1r)rs)rlrIrfilenamer)s     r!test_synopsis_sourcelessz%PydocDocTest.test_synopsis_sourcelesss\

.t
4
4:((**1-=>(++8,,,,,r c&tj5}tj|d}t
j|}t|d5}|	ddddn#1swxYwYtj|tj
|i}||tj
|i}||ddddS#1swxYwYdS)Nzfoomod42.pyr!foo = 1)rtemp_cwdrIrJjoin	importlibutilcache_from_sourcer&write
py_compilerRr1r)assertIsNone)rltest_dir	init_pathcached_pathfobjr)synopsis_cacheds       r!"test_synopsis_sourceless_empty_docz/PydocDocTest.test_synopsis_sourceless_empty_docsk


!
!		/XX}==I#.::9EEKi%%
&

9%%%
&
&
&
&
&
&
&
&
&
&
&
&
&
&
&y)))~i44Hh'''#n["==Oo...		/		/		/		/		/		/		/		/		/		/		/		/		/		/		/		/		/		/s7AD$B:DB
	
D
B
	A+DD

D
cZd}|tj|ddS)Nz#I Am A Doc


Here is my description)z
I Am A Docz
Here is my description)rsr1splitdoc)rlexample_strings  r!test_splitdoc_with_descriptionz+PydocDocTest.test_splitdoc_with_descriptions=A77C	E	E	E	E	Er ctj5}|tj|ddddS#1swxYwYdSrf)rr3assertFalser1	ispackage)rlr;s  r! test_is_package_when_not_packagez-PydocDocTest.test_is_package_when_not_packages


!
!	8XU_X66777	8	8	8	8	8	8	8	8	8	8	8	8	8	8	8	8	8	8s(A		A
A
cXtj5}tj|d}t|d|tj	|tj
|ddddS#1swxYwYdS)N__init__.pyr!)rr3rIrJr4r&close
assertTruer1rGremove)rlr;r<s   r!test_is_package_when_is_packagez,PydocDocTest.test_is_package_when_is_packages


!
!	!XX}==IC  &&(((OOEOH55666Ii   		!	!	!	!	!	!	!	!	!	!	!	!	!	!	!	!	!	!sA>BB#&B#c
Gddt}ttt}|j|d<|d=|d=|j|d<|j|d<t
j|}|||dS)NceZdZdZdS)/PydocDocTest.test_allmethods.<locals>.TestClasscdS)NTrrls r!method_returning_truezEPydocDocTest.test_allmethods.<locals>.TestClass.method_returning_truestr N)rrrrTrr r!	TestClassrQs#




r rUrTr	__class____subclasshook____init_subclass__)	rdictvarsrTrWrXr1
allmethodsassertDictEqual)rlrUrmethodss    r!test_allmethodszPydocDocTest.test_allmethodss								
V%%,5,K()Y[!(1'A#$(1(C$%"9--Wh/////r cGddGfdd}tj|}tjdd|}||dt
ztj|tj}d	t
d
}t|}d|dD}|D]}|	||dS)
Nc eZdZddZeZdZdS)+PydocDocTest.test_method_aliases.<locals>.ANcdS)z(Raise this widget in the stacking order.Nr)rl	aboveThiss  r!tkraisez3PydocDocTest.test_method_aliases.<locals>.A.tkraiser cdS)zReturn sizeNrrSs r!a_sizez2PydocDocTest.test_method_aliases.<locals>.A.a_sizerer rf)rrrrdliftrgrr r!rra
s<
?
?
?
?D
"
"
"
"
"r rc*eZdZddZeZjZdS)+PydocDocTest.test_method_aliases.<locals>.BNcdS)z'Configure resources of an item TAGORID.Nr)rltagOrIdcnfkws    r!
itemconfigurez9PydocDocTest.test_method_aliases.<locals>.B.itemconfigurerer rf)rrrro
itemconfigrgb_size)rsr!rrjs/
>
>
>
>&JXFFFr rrPr$aPython 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
c:g|]}||Srrrs  r!rz4PydocDocTest.test_method_aliases.<locals>.<listcomp>bs&UUU4PTU$**,,UUUr r.)
r1rrQrSrsrr?rasplitr)rlrrCras_textr
expected_liners       @r!test_method_aliasesz PydocDocTest.test_method_aliasessF	"	"	"	"	"	"	"	"										q!!fUB$$%JK%%	%	%	Nq5=??;;;
:C..UU=3F3Ft3L3LUUU+	2	2MMM-1111	2	2r cddl}t|\}}t|\}}tt\}}tt\}}|jD]e}|d}d|d}	|||||	||||||	|fdS)Nrz = _Featurez<strong>z</strong> = _Feature)
__future__rUrFrall_feature_namesrr)
rlrzfuture_textrZfuture_htmlpydoc_mod_textpydoc_mod_htmlfeaturetxtr`s
          r!test__future__importsz"PydocDocTest.test__future__importsfs	'
33Q'
33Q*955*955!3	3	3G)))C;g;;;DMM#{+++MM$,,,S.111T>2222
	3	3r )(rrrrunittestskipIfhasattrrr|rrrrrrrrrrrrrrrrrrrr
rrr+r0r@rDrHrNr^rxrrr r!r{r{sGX_WWS*--@,#,..HJJ
'
'JJ
'X_WWS*--@,#,..HJJ00JJ0111999
QQQ
'''
7
7
7666'''
+++:::%%%>"""6444@6668	6	6	6---YYYX_WWS*--@,#,..HJJ * *JJ *D<<<+++	8	8	8---
/
/
/EEE
888!!!0002X2X2X2t33333r r{ceZdZdZdZdZdZeje	j
eddZdZ
e	jdd	Ze	jdd
Ze	jddZd
ZdS)PydocImportTestctjt|_|t
tt
jdSrf)rImkdirrr;r%rr5invalidate_cachesrSs r!setUpzPydocImportTest.setUpzs<((
'''#%%%%%r cBd}dddd|dfd|d|ff}tjt|tjzdz}|D]\}}t
|d	5}|d
|dddn#1swxYwYt|t	d}t||fz}|||dS)
N
testmod_xyzzy)
i_am_not_herer)test.i_am_not_here_eitherr)ztest.i_am_not_here.neither_am_irzi_am_not_here.{}rztest.{}pyr!z
import {}
)
PYTHONPATHr)r(rIrJr4rextsepr&r8r=rbadimport_patternrs)	rlmodname	testpairssourcefnimportstring
expectedinmsgfrvrs	         r!test_badimportzPydocImportTest.test_badimports^".FE

&
&w
/
/A


g
&
&	(8(8(A(AB	7<<0029<tC+4	/	/'L-h$$
<
,,\::;;;
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<#G???FFwOOF(G]+CCHXv....	/	/s)CC	C	ctjtd}tj|tj|dtjzdz}t
|d5}|ddddn#1swxYwY|tg5t5}t5}tjddddn#1swxYwYdddn#1swxYwY|
|d|
|dt5}t5}tjddddn#1swxYwYdddn#1swxYwY|
|d|
|dddddS#1swxYwYdS)	N	syntaxerr__init__rr!zinvalid python syntax = $1
rJxyzzyr$)rIrJr4rrrr&r8rprrr1aproposrsrr3)rlpkgdir	badsyntaxrr9r:s      r!test_apropos_with_bad_packagez-PydocImportTest.test_apropos_with_bad_packagesZfk22
GLL44ry@4G	
)S
!
!	4Q
GG2333	4	4	4	4	4	4	4	4	4	4	4	4	4	4	4

(
(vh
(
7
7	1	1 ""
+c$&&+#M'***+++++++++++++++
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
S\\^^R000S\\^^R000 ""
/c$&&/#M+...///////////////
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
S\\^^1133[AAAS\\^^R000	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1s:BB #B ID!D6DDD	D
D
ID	I D	!A!IG	F2&G	2F66G	9F6:G	=I	G
	
IG
	A%II
Ictjtd|_tj|jd|tj|j|tg5t5}t5}tjddddn#1swxYwYdddn#1swxYwYdddn#1swxYwY|
|d|
|ddS)N
unreadablerrSOMEKEYr$)rIrJr4runreadable_dirrr%rmdirrprrr1rrsr)rlr9r:s   r! test_apropos_with_unreadable_dirz0PydocImportTest.test_apropos_with_unreadable_dirs gll6<@@
$a((($"5666
(
(vh
(
7
7	-	- ""
-c$&&-#M),,,---------------
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
	
,,,,,,,,sZC3C$C9CC		CC	
CC3C 	 C3#C 	$C33C7:C7zcannot remove x bitctjtd}tj||t|tj|d}t|d5}|ddddn#1swxYwYtj
tj	|j}	tj||tj
z|tg5t5}t!jddddn#1swxYwYdddn#1swxYwY|d|tj||dS#tj||wxYw)NwalkpkgrJr!r2rr$)rIrJr4rrr%rr&r8statS_IMODEst_modechmodS_IEXECrprr1rrr)rlrr<r>current_moders      r!test_apropos_empty_docz&PydocImportTest.test_apropos_empty_docs*fi00
'''GLL77	
)S
!
!	"TJJy!!!	"	"	"	"	"	"	"	"	"	"	"	"	"	"	"|BGFOO$;<<	+HV\T\M9:::,,6(,;;
"
"_=N=N
"RX
b!!!
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"MM)V__%6%6777HV\*****BHV\****sfB''B+.B+?F.E$,E
E$
E	E$E	E$F.$E((F.+E(,+F..Gc:tjtd}tj|tj|d}t|dd5}|ddddn#1swxYwY|tg5ttj}tj
dt	|td	5ddl
}dddn#1swxYwY|d
d}d}||||tjdd<n#|tjdd<wxYw	ddddS#1swxYwYdS)
Ntest_error_packagerJwtrr"zraise ValueError("ouch")
rrouchzsearch?key=test_error_packagePydoc: Search Resultsz8<a href="test_error_package.html">test_error_package</a>)rIrJr4rrr&r8rptuplerinsertassertRaisesRegex
ValueErrorrrwr)rlrinitrsaved_pathsrrXfounds        r!test_url_search_package_errorz-PydocImportTest.test_url_search_package_errors9f&:;;
w||FM22
$w
/
/
/	61
GG4555	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6

(
(vh
(
7
7	*	*//KHOOAv&&&

*++J??..----...............,,-L+---

eT***)k))))	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*s`,BBB5?F5E,D!E,!D%	%E,(D%	)1E,F,E??FFFz(causes undesirable side-effects (#20128)c8d}d}d}||z|z}t}tj|}|d|}t|}|||dS)Nrmodules)rr1rrr3lenrassertGreaterEqual)	rlnum_header_linesnum_module_lines_minnum_footer_linesrrDrrv	num_liness	         r!test_moduleszPydocImportTest.test_moduless #&::=MMV,,,y""((**))++,,		844444r cd}t}tj|}t5}|ddddn#1swxYwY|}|||dS)Nzpydoc - rz
modules pydoc)rr1rrrrrlrrDrrrvs      r!test_modules_searchz#PydocImportTest.test_modules_searchsV,,,


	$'F?###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$!!##

h'''''AAAz+some buildbots are not cooperating (#20128)c*d}t}tj|}t5}|ddddn#1swxYwY|}|||dS)Nzgc - rzmodules garbage)rr1rrrrL
startswithrs      r!test_modules_search_builtinz+PydocImportTest.test_modules_search_builtinsV,,,


	&'F$%%%	&	&	&	&	&	&	&	&	&	&	&	&	&	&	&!!##))(3344444rcBtjtj}||t||jd||jtj||jtjdS)Nr1)r1
importfiler2assertIsNotrsr__spec__)rlloaded_pydocs  r!test_importfilezPydocImportTest.test_importfile
s'77u---.888.???.?????r N)rrrrrrrrskip_unless_working_chmodrrrrrskiprrrrrr r!rrxs(&&&
///*111*
-
-
-(X_]$9::++;:)(+ ***.X]=>>
5
5?>
5X]=>>
(
(?>
(X]@AA	5	5BA	5@@@@@r rceZdZdZdZdZdZdZdZdZ	e
dZe
d	Zd
Z
edZdZd
ZedZedZedZedZedZedZedZedZedZedZedZedZedZdZdZ edZ!dS)TestDescriptionscfddlm}tj|}|d|dS)Nr)pydocfodderr)testrr1rr)rlrrCs   r!test_modulezTestDescriptions.test_modules>$$$$$${++

mS)))))r c8Gdd}|}|tj|d|tj|ddtz}||tj|dS)NceZdZdZdS)&TestDescriptions.test_class.<locals>.CzNew-style classNrrr r!Crs""""r rzclass CzC in module %s object)rsr1describerrr)rlrcrs    r!
test_classzTestDescriptions.test_classs""""""""
ACC**I666**C000*X5

h 0 3 344444r c|tjtjt
dtjtjt
tj}|d||d||tj
d||tjtt
dtjtt
tj}|d||d||tj
d|dS)	N
_GenericAliasrrz_GenericAlias in module typingzList = class list(object)rGenericAliaszGenericAlias in module builtinsz
class list(object))
rsr1rtypingListintr	plaintextrlistrr3rrlrCs  r!test_generic_aliasz#TestDescriptions.test_generic_alias$sFC(899?KKKv{3/%/JJJ

6<<<

13777

dl((**5577:C@@@S	22NCCCtCy5?CCC

7===

,c222

dl((**5577:C@@@@@r c|tjtjt
tfdtjtjt
tftj}|	d||	d|tjj
rO|	tjj
d||tjt
tzdtjt
tztj}|	d||	d||	tjj
d|dS)	N_UnionGenericAliasrrz#_UnionGenericAlias in module typingzUnion = typing.Unionr	UnionTypez UnionType in module types objectz!
class UnionType(builtins.object))rsr1rrUnionrrrrrrr3rtypesrrs  r!test_union_typez TestDescriptions.test_union_type1scS#X(>??AUVVVv|CH5PPP

;SAAA

,c222<	MMM&,.4466AACCAFLLLc	22K@@@sSy5?CCC

8#>>>

:C@@@

eo-3355@@BB1EsKKKKKr c|tjtjdtjtjtj}|d|tjjrg|d||tjj	
d|dS|d|dS)N_SpecialFormrrz_SpecialForm in module typingzNoReturn = typing.NoReturnrz%NoReturn = class _SpecialForm(_Final))rsr1rrNoReturnrrrrr3rrs  r!test_special_formz"TestDescriptions.test_special_form?s88.IIIvIII

5s;;;?"	HMM6<<<MM&/17799DDFFqI3OOOOOMMA3GGGGGr c	Xdtjtjdtdtjtjttjffd}tjd}Gddtj|tjttf}|
tj|
dd	|
tj|
d
ddS)NdatarreturncdSrfr)rrs  r!fooz/TestDescriptions.test_typing_pydoc.<locals>.fooJsCr TceZdZdS)-TestDescriptions.test_typing_pydoc.<locals>.CNrrr r!rrNsr rz?ffoooo(data: List[Any], x: int) -> Iterator[Tuple[int, Any]]rz2class CC(collections.abc.Mapping, typing.Generic))rrAnyrIteratorTupleTypeVarGenericMappingrrsr1rr)rlrrrs    r!test_typing_pydocz"TestDescriptions.test_typing_pydocIs	fk&*-		!?6<VZ+HI				
N3AAAAAq!6>#s(#;AAA)#..99;;B?9	:	:	:	
)!,,7799!<P	R	R	R	R	Rr cdD]v}|tj|	tj|?#t$r+|d|YswxYwdD]O}|tj||ttj|PdS)N)rz
str.translatezbuiltins.strzbuiltins.str.translatezfinding the doc of {!r} failed)notbuiltinsstrrrzstrr.translatezstr.trrrranslatezbuiltins.strrrzbuiltins.str.trrranslate)	assertIsNotNoner1locaterImportErrorfailr(r:assertRaises)rlnames  r!test_builtinzTestDescriptions.test_builtinUs/	I	ID
  d!3!3444
I &&&&
I
I
I		:AA$GGHHHHH
I1	C	CD
el400111k5+;TBBBB		C	CsA2A76A7ctjtj|}|d}|dSNr.r)r1plainrruorXliness   r!_get_summary_linez"TestDescriptions._get_summary_linefs6{5+A..//

4  Qxr ctjtj|}|d}d|ddSr)r1rrrur4rs   r!_get_summary_linesz#TestDescriptions._get_summary_linesmsG{5+A..//

4  yyqrr###r cv||tjjddS)Nzwrap(self, text))rsrrTextWrapperwraprSs r!test_unbound_python_methodz+TestDescriptions.test_unbound_python_methodts=//0D0IJJ	 	 	 	 	 r cv||tjjddS)Nzdump(self, obj, /))rsr_picklePicklerdumprSs r!test_unbound_builtin_methodz,TestDescriptions.test_unbound_builtin_methodxs<//0DEE 	"	"	"	"	"r ctj}|||jddS)Nz2wrap(text) method of textwrap.TextWrapper instance)rr rsrr!)rlts  r!test_bound_python_methodz)TestDescriptions.test_bound_python_method~sL ""//77@	B	B	B	B	Br ctdgd}tj|}||d|d||d|dGdd}Gdd	}tj|tj|dS)
Nr)rragegrouprrr,ceZdZdZdS)MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonIterableFieldsNrrr_fieldsrr r!NonIterableFieldsr.sGGGr r1ceZdZggZdS)MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonHashableFieldsNr/rr r!NonHashableFieldsr3sdGGGr r4)rr1r
assertLessindex)rlrr(r1r4s     r!!test_field_order_for_named_tuplesz2TestDescriptions.test_field_order_for_named_tuplessH&K&K&KLLV$$
++QWW[-A-ABBB,,aggj.A.ABBB																	*+++
*+++++r ct}tj|}|||jddS)Nz/dump(obj, /) method of _pickle.Pickler instance)rr$r%rsrr&)rlr(ps   r!test_bound_builtin_methodz*TestDescriptions.test_bound_builtin_methodsQJJOA//77=	?	?	?	?	?r cl||tjddS)Nz0stat(path, *, dir_fd=None, follow_symlinks=True))rsrrIrrSs r!test_module_level_callablez+TestDescriptions.test_module_level_callables>//88>	@	@	@	@	@r cXGdd}|||jdd|||jd|dtjtj|dS)Nc$eZdZedZdS)-TestDescriptions.test_staticmethod.<locals>.XcdS)zA static methodNrrys  r!smz0TestDescriptions.test_staticmethod.<locals>.X.sm	r N)rrrstaticmethodrCrr r!Xr?s-


\


r rFrCzsm(x, y)
    A static method
zL
 |  Static methods defined here:
 |  
 |  sm(x, y)
 |      A static method
)rsr__dict__rCrr1rrrlrFs  r!test_staticmethodz"TestDescriptions.test_staticmethods								
	
00D1ABB1	2	2	2	
00669				



[!!$$%%	'	'	'	'	'r cXGdd}|||jdd|||jd|dtjtj|dS)Nc$eZdZedZdS),TestDescriptions.test_classmethod.<locals>.XcdS)zA class methodNr)clsrs  r!cmz/TestDescriptions.test_classmethod.<locals>.X.cmrDr N)rrrclassmethodrOrr r!rFrLs-


[


r rFrOzcm(...)
    A class method
z:cm(x) method of builtins.type instance
    A class method
zZ
 |  Class methods defined here:
 |  
 |  cm(x) from builtins.type
 |      A class method
)rsrrGrOrr1rrrHs  r!test_classmethodz!TestDescriptions.test_classmethods								
	
00D1ABB0	1	1	1	
00669				



[!!$$%%	'	'	'	'	'r c||tjd||tjd||tjd||tj	ddS)N	numeratorrealr6obj)
rsrrrSfloatrTrr6
memoryviewrUrSs r!test_getset_descriptorz'TestDescriptions.test_getset_descriptors	
//
>>LLL//
;;VDDD//	??HHH//
??GGGGGr c||tjd||tjd||tjd||tjd||tj
ddS)NrTstartfgetvalue)rsrcomplexrTrangerZslicepropertyr[
StopIterationr\rSs r!test_member_descriptorz'TestDescriptions.test_member_descriptors	
//==vFFF//<<gFFF//<<gFFF//
>>GGG//
0CDDgNNNNNr c|Gdd}|||jddS)NceZdZdZdS)4TestDescriptions.test_slot_descriptor.<locals>.PointrAN)rrr	__slots__rr r!Pointres IIIr rgr)rsrr)rlrgs  r!test_slot_descriptorz%TestDescriptions.test_slot_descriptorsV	!	!	!	!	!	!	!	!//88#>>>>>r cGdd}|||jdddS)NceZdZdS)6TestDescriptions.test_dict_attr_descriptor.<locals>.NSNrrr r!NSrkrr rlrG)rsrrG)rlrls  r!test_dict_attr_descriptorz*TestDescriptions.test_dict_attr_descriptorsf								//J0GHH#	%	%	%	%	%r c.||ttjjd||ttjjd||ttjj	d||ttj
jddS)Nwidthdebugmajormax)rsrrr	hash_inforoflagsrpversion_inforq
float_inforrrSs r! test_structseq_member_descriptorz1TestDescriptions.test_structseq_member_descriptors//S]0C0C0IJJ 	"	"	"//SY0EFF 	"	"	"//S5E0F0F0LMM 	"	"	"//S^0D0D0HII	 	 	 	 	 r ctdd}|||jddS)NBox)roheightz    Alias for field number 0
)rrsrro)rlrys  r! test_namedtuple_field_descriptorz1TestDescriptions.test_namedtuple_field_descriptorsK 34400;;>					r cGdd}|||jd|dt	jt	j|dS)Nc$eZdZedZdS),TestDescriptions.test_property.<locals>.Rectc |j|jzS)zArea of the rect)r!hrSs r!areaz1TestDescriptions.test_property.<locals>.Rect.areasv&r N)rrrr`rrr r!Rectr~s-

'
'X
'
'
'r rz    Area of the rect
z#
 |  area
 |      Area of the rect
)rsrrrr1rr)rlrs  r!
test_propertyzTestDescriptions.test_propertys	'	'	'	'	'	'	'	'	
00;;>				


[!$''((	*	*	*	*	*r cGddGfdd}|||jdtdd|j_|||jdtdd	|j_|||jd
dS)NceZdZdZdS)?TestDescriptions.test_custom_non_data_descriptor.<locals>.Descrc||SdSNrrrlrUrNs   r!__get__zGTestDescriptions.test_custom_non_data_descriptor.<locals>.Descr.__get__;Krr N)rrrrrr r!Descrr
s#




r rc$eZdZZdS);TestDescriptions.test_custom_non_data_descriptor.<locals>.XNrrrattrrsr!rFr577DDDr rFr_zH.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>Custom descriptorz_.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>
    Custom descriptor
rzfoo(...)
    Custom descriptor
)rsrrrrrlrFrs  @r!test_custom_non_data_descriptorz0TestDescriptions.test_custom_non_data_descriptors7								
											
0088;W
;W;W;W	X	X	X-0088;
;;;			
 0088;					r cGddGfdd}|||jdd|j_|||jdd|j_|||jd	dS)
NceZdZdZdZdS);TestDescriptions.test_custom_data_descriptor.<locals>.Descrc||SdSrrrs   r!rzCTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__get__'rr cddzdS)Nrrrrs   r!__set__zCTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__set__+s!r N)rrrrrrr r!rr&s2







r rc$eZdZZdS)7TestDescriptions.test_custom_data_descriptor.<locals>.XNrrsr!rFr-rr rFr$rz    Custom descriptor
rzfoo
    Custom descriptor
)rsrrrrrs  @r!test_custom_data_descriptorz,TestDescriptions.test_custom_data_descriptor$s																			
0088"===,0088;			 0088;					r c"dtfd}tjtj|}|d|tj|}|d|dS)Nrc
KdSNrr)igns r!
coro_functionz=TestDescriptions.test_async_annotation.<locals>.coro_function>s1r zasync coro_functionz4async <a name="-coro_function"><strong>coro_function)rr1rrdocumentrr?)rlrrXr`s    r!test_async_annotationz&TestDescriptions.test_async_annotation=s					{5?33MBBCC

+T222}''
66

B					r cd}tjtj|}|d|tj|}|d|dS)NcKdWVdSrrrr r!an_async_generatorzLTestDescriptions.test_async_generator_annotation.<locals>.an_async_generatorJsGGGGGGr zasync an_async_generatorz>async <a name="-an_async_generator"><strong>an_async_generator)r1rrrrr?)rlrrXr`s    r!test_async_generator_annotationz0TestDescriptions.test_async_generator_annotationIs			{5?334FGGHH

0$777}''(:;;

L					r cd}tj|}|d|dS)NcdS)za link https://localhost/Nrrr r!a_fn_with_https_linkzHTestDescriptions.test_html_for_https_links.<locals>.a_fn_with_https_linkWsDr z3<a href="https://localhost/">https://localhost/</a>)r1r?rr)rlrr`s   r!test_html_for_https_linksz*TestDescriptions.test_html_for_https_linksUsS			}''(<==

A	
	
	
	
	
r N)"rrrrrrrrrrrErrr"rr'r*r7r:r<rIrQrXrbrhrmrwr{rrrrrrrr r!rrs***555AAALLLHHH
R
R
RCCC"\$$\$   """
BBB,,, ???@@@'''('''(HHHOOO???
%%%   
*
*
*00





	
	
	
	
	
r rz/Socket server not available on Emscripten/WASI.ceZdZdZdZdS)PydocServerTestzTests for pydoc._start_serverc	dd}tj|dd|jd|j|fd|dj|t|dttj
jd|dttj
jd	|j|j|jdS)
Ncd|d|d}|S)Nzthe URL sent was: (z, )r)rtcontent_typerXs   r!my_url_handlerz3PydocServerTest.test_server.<locals>.my_url_handlerls3633EDKr 	localhostr)hostnameportc>jrndSrf)servingstop)serverthreadsr!rz-PydocServerTest.test_server.<locals>.<lambda>xs <+?IL%%'''Tr s$the URL sent was: (/test, text/html)z/tests'the URL sent was: (/test.css, text/css)z	/test.css)r1
_start_serverrserrorrLrr%rrtrrrrurljoinreadrrFr:	docserver)rlrrs  @r!test_serverzPydocServerTest.test_serveris			* 
	
+T222,---IIII				


k<#3444
###3FL(()97CCDDIIKK				
6FL(()9;GGHHMMOO			
	-...,0111,*+++++r N)rrrrrrr r!rrbs+
(' , , , , ,r rceZdZdZdZdZdS)PydocUrlHandlerTestzTests for pydoc._url_handlerctj}|t|dd|t|dddS)Nrr$rfoobar)r1rrr	TypeError)rlrs  r!test_content_type_errz)PydocUrlHandlerTest.test_content_type_errsD)QR000)QX66666r cgd}|5|D]\}}|||	ddddS#1swxYwYdS)N))r$Pydoc: Index of Modules)zget?key=r)r6r)topicsz
Pydoc: Topics)keywordszPydoc: Keywords)r1Pydoc: module pydoc)z
get?key=pydocr)zsearch?key=pydocr)z
topic?key=defzPydoc: KEYWORD def)ztopic?key=STRINGSzPydoc: TOPIC STRINGS)rzPydoc: Error - foobar)rprw)rlrequestsrtr[s    r!test_url_requestsz%PydocUrlHandlerTest.test_url_requestss
(
(
*
*	2	2&
2
2
U%%c51111
2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2	2sAA

A
N)rrrrrrrr r!rrs8&&777
22222r rceZdZdZdS)
TestHelperc|ttjjtt
jdSrf)rssortedr1rrkeywordkwlistrSs r!
test_keywordszTestHelper.test_keywordss@ 566//	1	1	1	1	1r N)rrrrrr r!rrs#11111r rceZdZejeedoejdedZ	ejeedoejdedZ
ejeedoejdedZejeedoejdedZdZ
dS)	PydocWithMetaClassesr|r}cGddt}Gdd|}tdtD}t}t	j|}||ttf|ddzz}|	}|
||dS)	NceZdZfdZxZS)=PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.MetacV|dkrdSt|S)Nhamspamsuper__getattr__rlrrVs  r!rzIPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.Meta.__getattr__s)5==!6ww**4000r )rrrr
__classcell__rVs@r!Metars8
1
1
1
1
1
1
1
1
1r rc.eZdZejdZdS);PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DAcdS)NeggsrrSs r!rz?PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DA.hamsvr N)rrrrDynamicClassAttributerrr r!DArs1

(

)
(


r r	metaclassc3(K|]
}|rd|zndVdS)z	
 |      r$Nrr&s  r!r)zBPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.<genexpr>sO.I.I*+CD.KlQ.>.>.I.I.I.I.I.Ir rr)rrexpected_data_docstringsrr1r!expected_dynamicattribute_patternrrr3rs)rlrrrrDrrrvs        r!test_DynamicClassAttributez/PydocWithMetaClasses.test_DynamicClassAttributes	1	1	1	1	14	1	1	1
					4				)..I.I/G.I.I.I)I)I%V,,,r


9;BQB??A
""((**/////r c<Gddt}Gdd|}t}tj|}||tt
z}|}|||dS)Nc$eZdZdZfdZxZS)HPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Metac
gdS)N)rVrrLIFErrNs r!__dir__zPPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__dir__sFFFFr cV|dkrdSt|S)Nrr)r_Meta__getattrrs  r!rzTPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__getattr__s)&==2ww((...r rrrrrrrs@r!rrsJ
G
G
G
/
/
/
/
/
/
/
/
/r rceZdZdS)IPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.ClassNrrr r!Classrrr rrr)	rrr1r"expected_virtualattribute_pattern1rrr3rs)rlrrrDrrrvs       r!%test_virtualClassAttributeWithOneMetaz:PydocWithMetaClasses.test_virtualClassAttributeWithOneMetas	/	/	/	/	/4	/	/	/					d				V,,,u


:XE
""((**/////r c
Gddt
GddtG
fdd
}Gdd
	}Gd
d||	}t}tj|}||tt
z}|}|||t}tj|}||tt
z}|}	|||	dS)
Nc$eZdZdZfdZxZS)IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1c
gdS)N)rVrrrrrs r!rzQPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__dir__EEEEr cV|dkrdSt|S)Nrrrrs  r!rzUPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__getattr__)%<<1ww**4000r rrs@r!Meta1rJ
F
F
F
1
1
1
1
1
1
1
1
1r rc$eZdZdZfdZxZS)IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2c
gdS)N)rVrrtworrs r!rzQPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__dir__rr cV|dkrdSt|S)Nrrrrs  r!rzUPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__getattr__rr rrs@r!Meta2r
rr rc,eZdZfdZfdZxZS)IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3c
tttgd|z|zS)N)rVrrthree)rrsetr)rNrrs r!rzQPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__dir__s^F3DDDMM#&&').s););<$=$=>>???r cV|dkrdSt|S)Nrrrrs  r!rzUPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__getattr__s)'>>1ww**4000r r)rVrrs@r!Meta3rsW
?
?
?
?
?
?
1
1
1
1
1
1
1
1
1r rceZdZdS)JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class1Nrrr r!Class1rrr rrceZdZdS)JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class2Nrrr r!Class2rrr rr)
rrr1r"expected_virtualattribute_pattern2rrr3rs"expected_virtualattribute_pattern3)rlrrrrDrexpected_text1result1expected_text2result2rrs          @@r!%test_virtualClassAttributeWithTwoMetaz:PydocWithMetaClasses.test_virtualClassAttributeWithTwoMetas	1	1	1	1	1D	1	1	1	1	1	1	1	1D	1	1	1	1	1	1	1	1	1	1	1E5	1	1	1					u									Vu				V,,,v;hF//##))++111V,,,v;hF//##))++11111r c<Gddt}Gdd|}t}tj|}||tt
z}|}|||dS)NceZdZdZdS).PydocWithMetaClasses.test_buggy_dir.<locals>.Mc
gdS)N)rVrmissinghererrs r!rz6PydocWithMetaClasses.test_buggy_dir.<locals>.M.__dir__sCCCCr N)rrrrrr r!Mr%
s(
D
D
D
D
Dr r)ceZdZdZdS).PydocWithMetaClasses.test_buggy_dir.<locals>.Czpresent!N)rrrr(rr r!rr+sDDDr rrr)	rrr1r!expected_missingattribute_patternrrr3rs)rlr)rrDrrrvs       r!test_buggy_dirz#PydocWithMetaClasses.test_buggy_dir	s	D	D	D	D	D	D	D	D					!				V,,,q			9HD
""((**/////r ct5}tjddddn#1swxYwY|}|d|dS)Nz	enum.Enumz
class Enum)rr1rrr)rlrrs   r!test_resolve_falsez'PydocWithMetaClasses.test_resolve_falses

	$'J{###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$##%%

lH-----s044N)rrrrrrrr|rrrr"r-r/rr r!rrsX_WWS*--@,#,..HJJ00JJ0(X_WWS*--@,#,..HJJ00JJ0"X_WWS*--@,#,..HJJ'2'2JJ'2RX_WWS*--@,#,..HJJ00JJ0.....r rc:eZdZdZd	dZdZdZdZdZdZ	dS)
TestInternalUtilitiesc(tj}|j|_tj|jd|_||j	t	j
x|_}dtj|g|_
dS)Nnonexistentr$)tempfileTemporaryDirectoryrargv0dirrIrJr4argv0r%cleanupgetcwd
abs_curdircurdircurdir_spellings)rltmpdirr:s   r!rzTestInternalUtilities.setUp$so,..
W\\&+}==
'''')y{{2*!#RY
 ;r Nc>||j}tj||Srf)r7r1_get_revised_path)rl
given_pathr7s   r!r?z'TestInternalUtilities._get_revised_path,s#=JE&z5999r ctj}|jD]<}t	||D]}||=|Srf)rrJcopyr<r^countrM)rl
clean_pathspelling__s    r!_get_starting_pathz(TestInternalUtilities._get_starting_path3sjX]]__
-	,	,HJ,,X6677
,
,!!(++++
,r c|}|jg|z}||||dSrf)rGr:rsr?)rlrD
expected_paths   r!,test_sys_path_adjustment_adds_missing_curdirzBTestInternalUtilities.test_sys_path_adjustment_adds_missing_curdir;sL,,..
)J6
//
;;]KKKKKr c|}|jg|z}|jg|z}||||||jgz}||||dSrf)rGr:r6rsr?)rlrDrIleading_argv0dirtrailing_argv0dirs     r!*test_sys_path_adjustment_removes_argv0_dirz@TestInternalUtilities.test_sys_path_adjustment_removes_argv0_dir@s,,..
)J6
 M?Z7//0@AA=QQQ&$-8//0ABBMRRRRRr cfd}}jg|z}jg|z}||||jgz}jg|z}|||dS)NcF|tjS)N)r7)r?r1r2)r@rls r!r?z\TestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dir.<locals>._get_revised_pathIs))*EN)KKKr )rGr6r:rs)rlr?rDrLrIrMs`     r!+test_sys_path_adjustment_protects_pydoc_dirzATestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dirHs	L	L	L	L	L,,..
 M?Z7),<<
**+;<<mLLL&$-8),==
**+<==}MMMMMr c"|}|jD]}||5|g|z}|||||gz}||||jg|z}|||||jgz}|||dddn#1swxYwYdS)N)curdir_spelling)rGr<subTestr:r?r6)rlrDrEleading_curdirtrailing_curdirrLrMs       r!5test_sys_path_adjustment_when_curdir_already_includedzKTestInternalUtilities.test_sys_path_adjustment_when_curdir_already_includedSsn,,..
-
	M
	MHh77	
M	
M"*j!8!!$"8"8"H"HIII",z"9!!$"8"8"I"IJJJ$(M?^#C !!$"8"89I"J"JKKK$3t}o$E!!!$"8"89J"K"KLLL	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M
	M
	MsCDD	
D	rf)
rrrrr?rGrJrNrQrWrr r!r1r1"s<<<::::LLL
SSS	N	N	NMMMMMr r1ctj}tjtjg|Rtjt
dSrf)rthreading_setupraddModuleCleanupthreading_cleanupr
)thread_infos r!setUpModuler]bsD"244K.@O;OOOOm,,,,,r __main__)[rIrrximportlib.utilr5rr1r9rr$rorQrr4test.supportrrrrurllib.parser	xml.etreerxml.etree.ElementTreeriorcollectionsrurllib.requestrrrrtest.support.script_helperr	r
rrr
rrrrrrtest.support.os_helperrrrrrsupportHAVE_DOCSTRINGSrr3rrrrexpected_html_data_docstringsr-rrrrrrrr,r;r=rFrNrUr\raTestCasercr{rrrrrrrr1r]rmainrr r!<module>rns				



				



""""""........&&&&&&""""""MMMMMMMMMM))))))//////////////////<;;;;;;;;;								<0 
 0\x
EGGy|!&&I&I/G&I&I&I!I!IJX!&&I&I/G&I&I&I!I!I,-4GD"*,E,EN% 
EGG!"$&
EGG#&
EGG#&,
EGG-#0%
EGG"H%<c3c3c3c3c38$c3c3c3LX@X@X@X@X@mX@X@X@vL
L
L
L
L
x(L
L
L
^
W5#,#,#,#,#,h'#,#,	#,L22222-222>11111"111n.n.n.n.n.8,n.n.n.b=M=M=M=M=MH-=M=M=M@---zHMOOOOOr