python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_pydoc.cpython-311.opt-2.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_modceZdZ	dS)nonasciiN__name__
__module____qualname__C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_pydoc.pyrr%s Drr)!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&IraM
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&Irz~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!'
cv	||fz}tdtjg|Ri|\}}}|SNz-B)r	pydoc__file__stripmodule_nameargsenvrcouterrs      r 	run_pydocr:/sJ;. D#D%.G4GGG3GGLBS99;;rcv	||fz}tdtjg|Ri|\}}}|Sr/)r
r0r1r2r3s      r run_pydoc_failr<9sJ;. D(u~LLLLLLLBS99;;rc	tj}||}|tpd}|rd|zdz}||fS)Nr#z
<br><a href="z">Module Docs</a>)r0HTMLDoc	docmodule	getdoclocrr2)moduledocoutputlocs    r get_pydoc_htmlrEAsb,
-//C
]]6
"
"F

--	
"
"
(bC
<$';;<<>>3rc	tjj}tjj}|||t}tj}|||}|S)N)basedir)ospathabspathdirnamer1r0TextDocr@)rArJrKrGrBrDs      r get_pydoc_linkrMJs_2goGgoGgggggh//0011G
-//C

---
0
0CJrc 	tj}|tpd}|rd|zdz}||}tjd}|d|}||fS)Nr#z
MODULE DOCS
    r-.)	r0rLr@rr?recompilesubr2)rArBrDrCpatts     r get_pydoc_textrTSs,
-//C

--	
"
"
(bC
1#c)D0
]]6
"
"F:eD
XXb&
!
!F<<>>3rc|d\}}}|d\}}}|d\}}}|S)Nz</head>z<title>z</title>)	partition)textheader_titles    r get_html_titler[asN>>),,LFAq""9--KAq%//*--KE1aLrc		|dd}tjdd|}tj|ddddd	d
}|S)Nz<dd>r-z<.*?>r#r+r*z&gt;>z&lt;<)r,rPrRr0)htmls r 	html2textr`isO<<%%D
6'2t$$D=xfc63GGDKrc>eZdZddZejddZdZdS)
PydocBaseTestNch	|p$tjtgdfd	}|S)Nr#c"|p||SNr)rIprefixonerrordefault_path
walk_packagess   r wrapperz8PydocBaseTest._restricted_walk_packages.<locals>.wrapper|s =!5vwGGGr)Nr#N)rHrIrKr1)selfrirIrjrhs `  @r _restricted_walk_packagesz'PydocBaseTest._restricted_walk_packagesvsU	: 9 9:	H	H	H	H	H	H	Hrc#Ktj}|||t_	dV|t_dS#|t_wxYwre)pkgutilrirl)rkrIris   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)r0_url_handlerr[assertEqual)rkurlexpected_titlerWresults     r call_url_handlerzPydocBaseTest.call_url_handlers>!#{33%%666rre)rrrrl
contextlibcontextmanagerrorvrrr rbrbts[2222rrbcFeZdZdZejeedoejde	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|]}|Srr2r&lines  r 
<listcomp>z.PydocDocTest.test_html_doc.<locals>.<listcomp>s HHHtdjjllHHHrcg|]}||Srrrs  r rz.PydocDocTest.test_html_doc.<locals>.<listcomp>s:::tT:d:::rc:g|]}||Srrrs  r rz.PydocDocTest.test_html_doc.<locals>.<listcomp>s%JJJ4TJ$**,,JJJr)rErr`
splitlineshtml2text_of_expectedrrinspect
getabsfileurllibparsequoteassertIn)rkrudoc_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&&&&&rctt\}}t|ftzt	jtfzz}|||dSre)rTrexpected_text_patternexpected_text_data_docstringsrrrr)rkrur
expected_texts    r 
test_text_doczPydocDocTest.test_text_docs`)33- 
56 +I6689:
	
/////rcddl}Gdd|j}tj|}|d|dS)NrceZdZdZdZdS)IPydocDocTest.test_text_enum_member_with_value_zero.<locals>.BinaryIntegerrrN)rrrzeroonerrr 
BinaryIntegerrsDCCCrrzBinaryInteger.zero)enumIntEnumr0
render_docr)rkrrrBs    r %test_text_enum_member_with_value_zeroz2PydocDocTest.test_text_enum_member_with_value_zerosf						DL			}--

*C00000rcnttjj}|d|dS)Nzxml.etree.elementtree)rMxmletreeElementTreer)rkdoc_links  r ,test_mixed_case_module_names_are_lower_casedz9PydocDocTest.test_mixed_case_module_names_are_lower_caseds/!#)"788

-x88888rclttj\}}||dddS)Nr#z'MODULE DOCS incorrectly includes a link)rTrrrr)rkrurs   r test_issue8225zPydocDocTest.test_issue8225s4(33"&OPPPPPrctj}	dt_tj|t_dS#|t_wxYwre)sysstdinr0getpager)rkprevious_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*Nrrrr ArsHHHrrceZdZdS))PydocDocTest.test_non_str_name.<locals>.BNrrrr BrDrr)r0rrrr,)rkrradocbdocs     r test_non_str_namezPydocDocTest.test_non_str_names																$$$$c3//66666rcd}tt|d}t|z}|||ddS)Ntest.i_am_not_hereasciiz&documentation for missing module found)strr<missing_patternrrrkmissing_moduleruexpecteds    r 
test_not_herezPydocDocTest.test_not_heresQ-^N33W=="^364	6	6	6	6	6rctdd}tjdd}|||dS)Nztest.test_pydoc.nonasciir)PYTHONIOENCODINGbackslashreplace)r:r__doc__encoder)rkruencodeds   r test_not_asciizPydocDocTest.test_not_asciisH5PPP"))'3EFF

gv&&&&&rcd}tt|d}t|z}|||dS)Nz test.i_am_not_here r)rr<rr2rrrs    r test_input_stripzPydocDocTest.test_input_stripsP/^N33W=="^%9%9%;%;;6*****rctj}||dd||dd||dd||dddS)Nz<function stripid at 0x88dcee4>z<function stripid>z <function stripid at 0x01F65390>42z<type 'exceptions.Exception'>)r0stripidrr)rkrs  r test_stripidzPydocDocTest.test_stripids-!BCC-	/	/	/!CDD-	/	/	/	
---!@AA8	:	:	:	:	:rc	tj}|t}d}|||dS)Nz |  Built-in subclasses:
 |      async_generator
 |      BaseException
 |      builtin_function_or_method
 |      bytearray
 |      ... and \d+ other subclasses)r0rLdocclassobjectassertRegexrkrBrWsnips    r )test_builtin_with_more_than_four_childrenz6PydocDocTest.test_builtin_with_more_than_four_childrensJ	(moo||F##8	
t$$$$$rc	tj}|t}d}|||dS)Nzc |  Built-in subclasses:
 |      FloatingPointError
 |      OverflowError
 |      ZeroDivisionError)r0rLrArithmeticErrorrrs    r test_builtin_with_childz$PydocDocTest.test_builtin_with_childsH	$moo||O,,,	


dD!!!!!rc	tj}|t}d}||||d|dS)Nz^ |  Built-in subclasses:
 |      ArithmeticError
 |      AssertionError
 |      AttributeErrorZeroDivisionError)r0rLr	ExceptionrassertNotInrs    r test_builtin_with_grandchildz)PydocDocTest.test_builtin_with_grandchild4s_	*moo||I&&)	


dD!!!,d33333rc	tj}|t}|d|dSNzBuilt-in subclasses)r0rLrrrrkrBrWs   r test_builtin_no_childz"PydocDocTest.test_builtin_no_childTsC	,moo||-...55555rc	tj}|t}|d|dSr)r0rLrtyperrs   r test_builtin_on_metaclassesz(PydocDocTest.test_builtin_on_metaclassespsB	
moo||D!!.55555rctdz}td5}|d\}}|dd}|dd|d<|||ddddS#1swxYwYdS)Nabdz-chelp()sabdiirzhelp> )rrrcommunicatedecoderemoveprefixrr)rkelinesprocr8rYoliness      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)NrCrr-)rr0Helperhelprrrgetvaluer2r,rHlinesep)rkbufhelperrs    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|Srer)xs r <lambda>zJPydocDocTest.test_help_output_redirect.<locals>.<lambda>.<locals>.<lambda>s!rrrrr rz8PydocDocTest.test_help_output_redirect.<locals>.<lambda>srrztest.pydoc_modz9
        Help on module test.pydoc_mod in test:

        stdoutstderrr#)r0rmaxDiffrrrTrlstriptextwrapdedentrrrrr2rrrrr)rkgetpager_oldgetpager_newrrunusedrrAhelp_headerexpected_help_patternrCr9rurs              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 1rrr0rrr)rkrhelp_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)rkrrrs    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-8wencodingrz#coding: {})fileu"""line 1: héz
line 2: hi"""uline 1: hé)	
addCleanuprropenprintformatr0synopsisrr)rkr"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)NrHr)rimport_fresh_modulerr
__cached__r0r(rr)rkrHrfilenamer(s     r test_synopsis_sourcelessz%PydocDocTest.test_synopsis_sourcelesss\

.t
4
4:((**1-=>(++8,,,,,rc&tj5}tj|d}t
j|}t|d5}|	ddddn#1swxYwYtj|tj
|i}||tj
|i}||ddddS#1swxYwYdS)Nzfoomod42.pyr foo = 1)rtemp_cwdrHrIjoin	importlibutilcache_from_sourcer%write
py_compilerQr0r(assertIsNone)rktest_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)rrr0splitdoc)rkexample_strings  r test_splitdoc_with_descriptionz+PydocDocTest.test_splitdoc_with_descriptions=A77C	E	E	E	E	Erctj5}|tj|ddddS#1swxYwYdSre)rr2assertFalser0	ispackage)rkr: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 )rr2rHrIr3r%close
assertTruer0rFremove)rkr: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)NTrrks r method_returning_truezEPydocDocTest.test_allmethods.<locals>.TestClass.method_returning_truestrN)rrrrSrrr 	TestClassrPs#




rrTrSr	__class____subclasshook____init_subclass__)	rdictvarsrSrVrWr0
allmethodsassertDictEqual)rkrTrmethodss    r test_allmethodszPydocDocTest.test_allmethodss								
V%%,5,K()Y[!(1'A#$(1(C$%"9--Wh/////rcGddGfdd}tj|}tjdd|}||dt
ztj|tj}d	t
d
}t|}d|dD}|D]}|	||dS)
Nc eZdZddZeZdZdS)+PydocDocTest.test_method_aliases.<locals>.ANcdSrer)rk	aboveThiss  r tkraisez3PydocDocTest.test_method_aliases.<locals>.A.tkraises>>rcdSrerrRs r a_sizez2PydocDocTest.test_method_aliases.<locals>.A.a_sizes!!rre)rrrrcliftrerrr rr`
s<
?
?
?
?D
"
"
"
"
"rrc*eZdZddZeZjZdS)+PydocDocTest.test_method_aliases.<locals>.BNcdSrer)rktagOrIdcnfkws    r 
itemconfigurez9PydocDocTest.test_method_aliases.<locals>.B.itemconfigures==rre)rrrrm
itemconfigreb_size)rsr rrhs/
>
>
>
>&JXFFFrrrOr#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$**,,UUUrr-)
r0rrPrRrrrr>r`splitr)rkrrBras_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	2rcddl}t|\}}t|\}}tt\}}tt\}}|jD]e}|d}d|d}	|||||	||||||	|fdS)Nrz = _Featurez<strong>z</strong> = _Feature)
__future__rTrErall_feature_namesrr)
rkrxfuture_textrYfuture_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*r/r?rCrGrMr]rvrrrr rzrzsGX_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!!!0002X2X2X2t33333rrzceZdZdZdZdZdZeje	j
eddZdZ
e	jdd	Ze	jdd
Ze	jddZd
ZdS)PydocImportTestctjt|_|t
tt
jdSre)rHmkdirrr:r$rr4invalidate_cachesrRs r setUpzPydocImportTest.setUpzs<((
'''#%%%%%rcBd}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'rHrIr3rextsepr%r7r<rbadimport_patternrr)	rkmodname	testpairssourcefnimportstring
expectedinmsgfrurs	         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
rIxyzzyr#)rHrIr3rrrr%r7rorrr0aproposrrrr2)rkpkgdir	badsyntaxrr8r9s      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#)rHrIr3runreadable_dirrr$rmdirrorrr0rrrr)rkr8r9s   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)NwalkpkgrIr r1rr#)rHrIr3rrr$rr%r7statS_IMODEst_modechmodS_IEXECrorr0rrr)rkrr;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_packagerIwtrr!zraise ValueError("ouch")
rrouchzsearch?key=test_error_packagePydoc: Search Resultsz8<a href="test_error_package.html">test_error_package</a>)rHrIr3rrr%r7rotuplerinsertassertRaisesRegex
ValueErrorrrvr)rkrinitrsaved_pathsrrWfounds        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)rr0rrr2lenrassertGreaterEqual)	rknum_header_linesnum_module_lines_minnum_footer_linesrrCrru	num_liness	         r test_moduleszPydocImportTest.test_moduless #&::=MMV,,,y""((**))++,,		844444rcd}t}tj|}t5}|ddddn#1swxYwY|}|||dS)Nzpydoc - rz
modules pydoc)rr0rrrrrkrrCrrrus      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)rr0rrrrK
startswithrs      r test_modules_search_builtinz+PydocImportTest.test_modules_search_builtinsV,,,


	&'F$%%%	&	&	&	&	&	&	&	&	&	&	&	&	&	&	&!!##))(3344444rcBtjtj}||t||jd||jtj||jtjdS)Nr0)r0
importfiler1assertIsNotrrr__spec__)rkloaded_pydocs  r test_importfilezPydocImportTest.test_importfile
s'77u---.888.???.?????rN)rrrrrrrrskip_unless_working_chmodrrrrrskiprrrrrrr rrxs(&&&
///*111*
-
-
-(X_]$9::++;:)(+ ***.X]=>>
5
5?>
5X]=>>
(
(?>
(X]@AA	5	5BA	5@@@@@rrceZdZdZdZdZdZdZdZdZ	e
dZe
d	Zd
Z
edZdZd
ZedZedZedZedZedZedZedZedZedZedZedZedZedZdZdZ edZ!dS)TestDescriptionscfddlm}tj|}|d|dS)Nr)pydocfodderr)testrr0rr)rkrrBs   r test_modulezTestDescriptions.test_modules>$$$$$${++

mS)))))rc8Gdd}|}|tj|d|tj|ddtz}||tj|dS)NceZdZdS)&TestDescriptions.test_class.<locals>.CNrrrr Crrrzclass CzC in module %s object)rrr0describerrr)rkrcrs    r 
test_classzTestDescriptions.test_classs""""""""
ACC**I666**C000*X5

h 0 3 344444rc|tjtjt
dtjtjt
tj}|d||d||tj
d||tjtt
dtjtt
tj}|d||d||tj
d|dS)	N
_GenericAliasrpz_GenericAlias in module typingzList = class list(object)rGenericAliaszGenericAlias in module builtinsz
class list(object))
rrr0rtypingListintr	plaintextrlistrr2rrkrBs  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@@@@@rc|tjtjt
tfdtjtjt
tftj}|	d||	d|tjj
rO|	tjj
d||tjt
tzdtjt
tztj}|	d||	d||	tjj
d|dS)	N_UnionGenericAliasrpz#_UnionGenericAlias in module typingzUnion = typing.Unionr	UnionTypez UnionType in module types objectz!
class UnionType(builtins.object))rrr0rrUnionrrrrrrr2rtypesrrs  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@@BB1EsKKKKKrc|tjtjdtjtjtj}|d|tjjrg|d||tjj	
d|dS|d|dS)N_SpecialFormrpz_SpecialForm in module typingzNoReturn = typing.NoReturnrz%NoReturn = class _SpecialForm(_Final))rrr0rrNoReturnrrrrr2rrs  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Grc	Xdtjtjdtdtjtjttjffd}tjd}Gddtj|tjttf}|
tj|
dd	|
tj|
d
ddS)NdatarreturncdSrer)rrs  r fooz/TestDescriptions.test_typing_pydoc.<locals>.fooJsCrTceZdZdS)-TestDescriptions.test_typing_pydoc.<locals>.CNrrrr rrNrrrz?ffoooo(data: List[Any], x: int) -> Iterator[Tuple[int, Any]]rz2class CC(collections.abc.Mapping, typing.Generic))rrAnyrIteratorTupleTypeVarGenericMappingrrrr0rr)rkrrrs    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	RrcdD]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)	assertIsNotNoner0locaterImportErrorfailr'r9assertRaises)rknames  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)r0plainrrsorWliness   r _get_summary_linez"TestDescriptions._get_summary_linefs6{5+A..//

4  Qxrctjtj|}|d}d|ddSr)r0rrrsr3rs   r _get_summary_linesz#TestDescriptions._get_summary_linesmsG{5+A..//

4  yyqrr###rcv||tjjddS)Nzwrap(self, text))rrrrTextWrapperwraprRs r test_unbound_python_methodz+TestDescriptions.test_unbound_python_methodts=//0D0IJJ	 	 	 	 	 rcv||tjjddS)Nzdump(self, obj, /))rrr_picklePicklerdumprRs r test_unbound_builtin_methodz,TestDescriptions.test_unbound_builtin_methodxs<//0DEE 	"	"	"	"	"rctj}|||jddS)Nz2wrap(text) method of textwrap.TextWrapper instance)rrrrrr )rkts  r test_bound_python_methodz)TestDescriptions.test_bound_python_method~sL ""//77@	B	B	B	B	Brctdgd}tj|}||d|d||d|dGdd}Gdd	}tj|tj|dS)
Nr)rragegrouprrr+ceZdZdZdS)MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonIterableFieldsNrrr_fieldsrrr NonIterableFieldsr-sGGGrr0ceZdZggZdS)MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonHashableFieldsNr.rrr NonHashableFieldsr2sdGGGrr3)rr0r
assertLessindex)rkrr'r0r3s     r !test_field_order_for_named_tuplesz2TestDescriptions.test_field_order_for_named_tuplessH&K&K&KLLV$$
++QWW[-A-ABBB,,aggj.A.ABBB																	*+++
*+++++rct}tj|}|||jddS)Nz/dump(obj, /) method of _pickle.Pickler instance)rr#r$rrrr%)rkr'ps   r test_bound_builtin_methodz*TestDescriptions.test_bound_builtin_methodsQJJOA//77=	?	?	?	?	?rcl||tjddS)Nz0stat(path, *, dir_fd=None, follow_symlinks=True))rrrrHrrRs r test_module_level_callablez+TestDescriptions.test_module_level_callables>//88>	@	@	@	@	@rcXGdd}|||jdd|||jd|dtjtj|dS)Nc$eZdZedZdS)-TestDescriptions.test_staticmethod.<locals>.Xc	dSrerrys  r smz0TestDescriptions.test_staticmethod.<locals>.X.sms
%rN)rrrstaticmethodrBrrr Xr>s-


\


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



[!!$$%%	'	'	'	'	'rcXGdd}|||jdd|||jd|dtjtj|dS)Nc$eZdZedZdS),TestDescriptions.test_classmethod.<locals>.Xc	dSrer)clsrs  r cmz/TestDescriptions.test_classmethod.<locals>.X.cms
$rN)rrrclassmethodrMrrr rDrJs-


[


rrDrMzcm(...)
    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
)rrrrErMrr0rrrFs  r test_classmethodz!TestDescriptions.test_classmethods								
	
00D1ABB0	1	1	1	
00669				



[!!$$%%	'	'	'	'	'rc||tjd||tjd||tjd||tj	ddS)N	numeratorrealr5obj)
rrrrrQfloatrRrr5
memoryviewrSrRs r test_getset_descriptorz'TestDescriptions.test_getset_descriptors	
//
>>LLL//
;;VDDD//	??HHH//
??GGGGGrc||tjd||tjd||tjd||tjd||tj
ddS)NrRstartfgetvalue)rrrcomplexrRrangerXslicepropertyrY
StopIterationrZrRs r test_member_descriptorz'TestDescriptions.test_member_descriptors	
//==vFFF//<<gFFF//<<gFFF//
>>GGG//
0CDDgNNNNNrc|Gdd}|||jddS)NceZdZdZdS)4TestDescriptions.test_slot_descriptor.<locals>.Pointr@N)rrr	__slots__rrr Pointrcs IIIrrer)rrrr)rkres  r test_slot_descriptorz%TestDescriptions.test_slot_descriptorsV	!	!	!	!	!	!	!	!//88#>>>>>rcGdd}|||jdddS)NceZdZdS)6TestDescriptions.test_dict_attr_descriptor.<locals>.NSNrrrr NSrirrrjrE)rrrrE)rkrjs  r test_dict_attr_descriptorz*TestDescriptions.test_dict_attr_descriptorsf								//J0GHH#	%	%	%	%	%rc.||ttjjd||ttjjd||ttjj	d||ttj
jddS)Nwidthdebugmajormax)rrrrr	hash_informflagsrnversion_inforo
float_inforprRs r  test_structseq_member_descriptorz1TestDescriptions.test_structseq_member_descriptors//S]0C0C0IJJ 	"	"	"//SY0EFF 	"	"	"//S5E0F0F0LMM 	"	"	"//S^0D0D0HII	 	 	 	 	 rctdd}|||jddS)NBox)rmheightz    Alias for field number 0
)rrrrrm)rkrws  r  test_namedtuple_field_descriptorz1TestDescriptions.test_namedtuple_field_descriptorsK 34400;;>					rcGdd}|||jd|dt	jt	j|dS)Nc$eZdZedZdS),TestDescriptions.test_property.<locals>.Rectc"	|j|jzSre)r hrRs r areaz1TestDescriptions.test_property.<locals>.Rect.areas&v&rN)rrrr^rrrr Rectr|s-

'
'X
'
'
'rrz    Area of the rect
z#
 |  area
 |      Area of the rect
)rrrrrr0rr)rkrs  r 
test_propertyzTestDescriptions.test_propertys	'	'	'	'	'	'	'	'	
00;;>				


[!$''((	*	*	*	*	*rcGddGfdd}|||jdtdd|j_|||jdtdd	|j_|||jd
dS)NceZdZdZdS)?TestDescriptions.test_custom_non_data_descriptor.<locals>.Descrc||SdSNrrrkrSrLs   r __get__zGTestDescriptions.test_custom_non_data_descriptor.<locals>.Descr.__get__;KrrN)rrrrrrr Descrr
s#




rrc$eZdZZdS);TestDescriptions.test_custom_non_data_descriptor.<locals>.XNrrrattrrsr rDr577DDDrrDr^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
)rrrrrrrkrDrs  @r test_custom_non_data_descriptorz0TestDescriptions.test_custom_non_data_descriptors7								
											
0088;W
;W;W;W	X	X	X-0088;
;;;			
 0088;					rcGddGfdd}|||jdd|j_|||jdd|j_|||jd	dS)
NceZdZdZdZdS);TestDescriptions.test_custom_data_descriptor.<locals>.Descrc||SdSrrrs   r rzCTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__get__'rrcddzdS)Nrrrrs   r __set__zCTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__set__+s!rN)rrrrrrrr rr&s2







rrc$eZdZZdS)7TestDescriptions.test_custom_data_descriptor.<locals>.XNrrsr rDr-rrrDr#rz    Custom descriptor
rzfoo
    Custom descriptor
)rrrrrrrs  @r test_custom_data_descriptorz,TestDescriptions.test_custom_data_descriptor$s																			
0088"===,0088;			 0088;					rc"dtfd}tjtj|}|d|tj|}|d|dS)Nrc
KdSNrr)igns r 
coro_functionz=TestDescriptions.test_async_annotation.<locals>.coro_function>s1rzasync coro_functionz4async <a name="-coro_function"><strong>coro_function)rr0rrdocumentrr>)rkrrWr_s    r test_async_annotationz&TestDescriptions.test_async_annotation=s					{5?33MBBCC

+T222}''
66

B					rcd}tjtj|}|d|tj|}|d|dS)NcKdWVdSrrrrr an_async_generatorzLTestDescriptions.test_async_generator_annotation.<locals>.an_async_generatorJsGGGGGGrzasync an_async_generatorz>async <a name="-an_async_generator"><strong>an_async_generator)r0rrrrr>)rkrrWr_s    r test_async_generator_annotationz0TestDescriptions.test_async_generator_annotationIs			{5?334FGGHH

0$777}''(:;;

L					rcd}tj|}|d|dS)Nc	dSrerrrr a_fn_with_https_linkzHTestDescriptions.test_html_for_https_links.<locals>.a_fn_with_https_linkWs
+Drz3<a href="https://localhost/">https://localhost/</a>)r0r>rr)rkrr_s   r test_html_for_https_linksz*TestDescriptions.test_html_for_https_linksUsS			}''(<==

A	
	
	
	
	
rN)"rrrrrrrrr
rrCrrr!rr&r)r6r9r;rGrOrVr`rfrkruryrrrrrrrrr rrs***555AAALLLHHH
R
R
RCCC"\$$\$   """
BBB,,, ???@@@'''('''(HHHOOO???
%%%   
*
*
*00





	
	
	
	
	
rrz/Socket server not available on Emscripten/WASI.ceZdZ	dZdS)PydocServerTestc	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)rscontent_typerWs   r my_url_handlerz3PydocServerTest.test_server.<locals>.my_url_handlerls3633EDKr	localhostr)hostnameportc>jrndSre)servingstop)serverthreadsr rz-PydocServerTest.test_server.<locals>.<lambda>xs <+?IL%%'''Trs$the URL sent was: (/test, text/html)z/tests'the URL sent was: (/test.css, text/css)z	/test.css)r0
_start_serverrrerrorrKrr$rrsrrrrurljoinreadrrEr9	docserver)rkrrs  @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,*+++++rN)rrrrrrr rrbs(
( , , , , ,rrceZdZ	dZdZdS)PydocUrlHandlerTestctj}|t|dd|t|dddS)Nrr#rfoobar)r0rqr	TypeError)rkrs  r test_content_type_errz)PydocUrlHandlerTest.test_content_type_errsD)QR000)QX66666rcgd}|5|D]\}}|||	ddddS#1swxYwYdS)N))r#Pydoc: Index of Modules)zget?key=r)r5r)topicsz
Pydoc: Topics)keywordszPydoc: Keywords)r0Pydoc: module pydoc)z
get?key=pydocr)zsearch?key=pydocr)z
topic?key=defzPydoc: KEYWORD def)ztopic?key=STRINGSzPydoc: TOPIC STRINGS)rzPydoc: Error - foobar)rorv)rkrequestsrsrZs    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 rrs5&777
22222rrceZdZdZdS)
TestHelperc|ttjjtt
jdSre)rrsortedr0rrkeywordkwlistrRs r 
test_keywordszTestHelper.test_keywordss@ 566//	1	1	1	1	1rN)rrrrrrr rrs#11111rrceZdZejeedoejdedZ	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__rkrrUs  r rzIPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.Meta.__getattr__s)5==!6ww**4000r)rrrr
__classcell__rUs@r Metars8
1
1
1
1
1
1
1
1
1rrc.eZdZejdZdS);PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DAcdS)NeggsrrRs r rz?PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DA.hamsvrN)rrrrDynamicClassAttributerrrr DArs1

(

)
(


rr	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.Irrr)rrexpected_data_docstringsrr0r!expected_dynamicattribute_patternrrr2rr)rkrrrrCrrrus        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
""((**/////rc<Gddt}Gdd|}t}tj|}||tt
z}|}|||dS)Nc$eZdZdZfdZxZS)HPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Metac
gdS)N)rUrrLIFErrLs r __dir__zPPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__dir__sFFFFrcV|dkrdSt|S)Nrr)r_Meta__getattrrs  r rzTPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__getattr__s)&==2ww((...rrrrrrrrs@r rrsJ
G
G
G
/
/
/
/
/
/
/
/
/rrceZdZdS)IPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.ClassNrrrr Classrrrrrr)	rrr0r"expected_virtualattribute_pattern1rrr2rr)rkrrrCrrrus       r %test_virtualClassAttributeWithOneMetaz:PydocWithMetaClasses.test_virtualClassAttributeWithOneMetas	/	/	/	/	/4	/	/	/					d				V,,,u


:XE
""((**/////rc
Gddt
GddtG
fdd
}Gdd
	}Gd
d||	}t}tj|}||tt
z}|}|||t}tj|}||tt
z}|}	|||	dS)
Nc$eZdZdZfdZxZS)IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1c
gdS)N)rUrrrrrs r rzQPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__dir__EEEErcV|dkrdSt|S)Nrrrrs  r rzUPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__getattr__)%<<1ww**4000rrrs@r Meta1rJ
F
F
F
1
1
1
1
1
1
1
1
1rrc$eZdZdZfdZxZS)IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2c
gdS)N)rUrrtworrs r rzQPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__dir__rrcV|dkrdSt|S)Nr
rrrs  r rzUPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__getattr__rrrrs@r Meta2rrrrc,eZdZfdZfdZxZS)IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3c
tttgd|z|zS)N)rUrrthree)rrsetr)rLrrs r rzQPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__dir__s^F3DDDMM#&&').s););<$=$=>>???rcV|dkrdSt|S)Nrrrrs  r rzUPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__getattr__s)'>>1ww**4000rr)rUrrs@r Meta3rsW
?
?
?
?
?
?
1
1
1
1
1
1
1
1
1rrceZdZdS)JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class1Nrrrr Class1rrrrrceZdZdS)JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class2Nrrrr Class2rrrrr)
rrr0r"expected_virtualattribute_pattern2rrr2rr"expected_virtualattribute_pattern3)rkrrrrCrexpected_text1result1expected_text2result2rrs          @@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//##))++11111rc<Gddt}Gdd|}t}tj|}||tt
z}|}|||dS)NceZdZdZdS).PydocWithMetaClasses.test_buggy_dir.<locals>.Mc
gdS)N)rUrmissinghererrs r rz6PydocWithMetaClasses.test_buggy_dir.<locals>.M.__dir__sCCCCrN)rrrrrrr Mr#
s(
D
D
D
D
Drr'ceZdZdZdS).PydocWithMetaClasses.test_buggy_dir.<locals>.Czpresent!N)rrrr&rrr rr)sDDDrrrr)	rrr0r!expected_missingattribute_patternrrr2rr)rkr'rrCrrrus       r test_buggy_dirz#PydocWithMetaClasses.test_buggy_dir	s	D	D	D	D	D	D	D	D					!				V,,,q			9HD
""((**/////rct5}tjddddn#1swxYwY|}|d|dS)Nz	enum.Enumz
class Enum)rr0rrr)rkrrs   r test_resolve_falsez'PydocWithMetaClasses.test_resolve_falses

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

lH-----s044N)rrrrrrrr{rrrr r+r-rrr rrsX_WWS*--@,#,..HJJ00JJ0(X_WWS*--@,#,..HJJ00JJ0"X_WWS*--@,#,..HJJ'2'2JJ'2RX_WWS*--@,#,..HJJ00JJ0.....rrc:eZdZdZd	dZdZdZdZdZdZ	dS)
TestInternalUtilitiesc(tj}|j|_tj|jd|_||j	t	j
x|_}dtj|g|_
dS)Nnonexistentr#)tempfileTemporaryDirectoryrargv0dirrHrIr3argv0r$cleanupgetcwd
abs_curdircurdircurdir_spellings)rktmpdirr8s   r rzTestInternalUtilities.setUp$so,..
W\\&+}==
'''')y{{2*!#RY
 ;rNc>||j}tj||Sre)r5r0_get_revised_path)rk
given_pathr5s   r r=z'TestInternalUtilities._get_revised_path,s#=JE&z5999rctj}|jD]<}t	||D]}||=|Sre)rrIcopyr:r\countrL)rk
clean_pathspelling__s    r _get_starting_pathz(TestInternalUtilities._get_starting_path3sjX]]__
-	,	,HJ,,X6677
,
,!!(++++
,rc|}|jg|z}||||dSre)rEr8rrr=)rkrB
expected_paths   r ,test_sys_path_adjustment_adds_missing_curdirzBTestInternalUtilities.test_sys_path_adjustment_adds_missing_curdir;sL,,..
)J6
//
;;]KKKKKrc|}|jg|z}|jg|z}||||||jgz}||||dSre)rEr8r4rrr=)rkrBrGleading_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//0ABBMRRRRRrcfd}}jg|z}jg|z}||||jgz}jg|z}|||dS)NcF|tjS)N)r5)r=r0r1)r>rks r r=z\TestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dir.<locals>._get_revised_pathIs))*EN)KKKr)rEr4r8rr)rkr=rBrJrGrKs`     r +test_sys_path_adjustment_protects_pydoc_dirzATestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dirHs	L	L	L	L	L,,..
 M?Z7),<<
**+;<<mLLL&$-8),==
**+<==}MMMMMrc"|}|jD]}||5|g|z}|||||gz}||||jg|z}|||||jgz}|||dddn#1swxYwYdS)N)curdir_spelling)rEr:subTestr9r=r4)rkrBrCleading_curdirtrailing_curdirrJrKs       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	re)
rrrrr=rErHrLrOrUrrr r/r/"s<<<::::LLL
SSS	N	N	NMMMMMrr/ctj}tjtjg|Rtjt
dSre)rthreading_setupraddModuleCleanupthreading_cleanupr
)thread_infos r setUpModuler[bsD"244K.@O;OOOOm,,,,,r__main__)[rHrrwimportlib.utilr4rr0r8rr#rnrPrr2test.supportrrrrurllib.parser	xml.etreerxml.etree.ElementTreeriorcollectionsrurllib.requestrrrrtest.support.script_helperr	r
rrr
rrrrrrtest.support.os_helperrrrrrsupportHAVE_DOCSTRINGSrr2rrrrexpected_html_data_docstringsr,rrrrrrrr*r:r<rErMrTr[r`TestCaserbrzrrrrrrrr/r[rmainrrr <module>rls				



				



""""""........&&&&&&""""""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