403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/test_pydoc/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_pydoc/__pycache__/test_pydoc.cpython-313.pyc
�

��icv��b�SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK J!r!J"r" SSKJ#r# SSKJ$r$ SSKJ%r% SSK&J'r'J(r(J)r) SS	KJ*r* SS
KJ+r+J,r,J-r-J.r.J/r/J0r0J1r1 SSK2J3r3J4r4J5r5 SSK6J7r7 SS
K6J8r8 "SS5r9\RFRt(aSr;OSr;SRy5r=\>"S\;55r?Sr@\>"S\;55rASR�S\R�5rDSrESRy5rFSRy5rGSRy5rHSRy5rISRy5rJSrKSrLS rMS!rNS"rOS#rPS$rQS%rR"S&S'\R�5rT"S(S)\R�5rU"S*S+\T5rV"S,S-5rW"S.S/\W5rX"S0S1\R�5rY"S2S3\R�5rZ\R�"\.=(d \/S45"S5S6\R�55r\"S7S8\T5r]"S9S:\R�5r^"S;S<\R�5r_"S=S>\R�5r`S?ra\bS@:Xa\R�"5 gg)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_emscripten�is_wasi�requires_docstrings�MISSING_C_DOCSTRINGS)�TESTFN�rmtree�unlink)�	pydoc_mod)�pydocfodderc��\rSrSrSrSrg)�nonascii�+uЦе не латиниця�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��/C:\Python313\\Lib\test\test_pydoc\test_pydoc.pyrr+s�� �r%r)�!dictionary for instance variables�%list of weak references to the objectr'r()�r)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'
     |
     |  __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)
     |
     |  ----------------------------------------------------------------------
     |  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 = typing.Union[int, str]
    type_union2 = int | str

VERSION
    1.2.3.4

AUTHOR
    Benjamin Peterson

CREDITS
    Nobody

FILE
    %s
c#�># �UHnU(aSU-OSv� M g7f)z
     |      r)Nr��.0�ss  r&�	<genexpr>r.�s&���&I�/G�!�?@�&6��&:�R�&G�/G���a{
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'
        __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)
    ----------------------------------------------------------------------
    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 = typing.Union[int, str]
    type_union2 = int | str

Author
    Benjamin Peterson

Credits
    Nobody
c#�F# �UHnURSS5v� M g7f)� �&nbsp;N)�replacer+s  r&r.r.�s&���&I�/G�!�'(�i�i��X�&>�&>�/G�s�!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�n�X4-n[S[R/UQ70UD6up4nUR5$)zK
Runs pydoc on the specified module. Returns the stripped
output of pydoc.
�-B)r
�pydoc�__file__�strip��module_name�args�env�rc�out�errs      r&�	run_pydocrA8s8��
�.� �D�#�D�%�.�.�G�4�G�3�G�L�B�S��9�9�;�r%c�n�X4-n[S[R/UQ70UD6up4nUR5$)z9
Runs pydoc on the specified module expecting a failure.
r6)rr7r8r9r:s      r&�run_pydoc_failrCBs8���.� �D�(��u�~�~�L��L��L�L�B�S��9�9�;�r%c���[R"5nURU5nUR[5=(d SnU(aSU-S-nUR5U4$)z&Returns pydoc generated output as htmlr)z
<br><a href="z">Module Docs</a>)r7�HTMLDoc�	docmodule�	getdoclocrr9)�module�doc�output�locs    r&�get_pydoc_htmlrLJsR��
�-�-�/�C�
�]�]�6�
"�F�

�-�-�	�
"�
(�b�C�
���$�';�;���<�<�>�3��r%c�2�[R"SSU5$)Nz.r))�re�sub)rIs r&�
clean_textrPSs��
�6�6�%��S�!�!r%c	���[RRn[RRnU"U"U"U"[5555n[
R"5nURXS9nU$)z,Returns a documentation web link of a module��basedir)�os�path�abspath�dirnamer8r7�TextDocrG)rHrVrWrSrIrKs      r&�get_pydoc_linkrYWsU���g�g�o�o�G��g�g�o�o�G��g�g�g�h�&7�8�9�:�G�
�-�-�/�C�

�-�-��-�
0�C��Jr%c���[R"5nUR[5=(d SnU(aSU-S-nUR	U5n[U5nUR
5U4$)z&Returns pydoc generated output as textr)z
MODULE DOCS
    r4)r7rXrGrrFrPr9)rHrIrKrJs    r&�get_pydoc_textr[`s[��
�-�-�/�C�

�-�-�	�
"�
(�b�C�
�#�c�)�D�0��
�]�]�6�
"�F�
��
�F��<�<�>�3��r%c��URS5un nURS5u p#URS5un nU$)Nz</head>z<title>z</title>)�	partition)�text�header�_�titles    r&�get_html_titlerbksC���>�>�)�,�L�F�A�q��"�"�9�-�K�A�q��/�/�*�-�K�E�1�a��Lr%c	��URSS5nURSS5n[R"SSU5n[R"USSS	S
SS5nU$)
zOA quick and dirty implementation of html2text.

Tailored for pydoc tests only.
z<dd>r4z<hr>�F----------------------------------------------------------------------z<.*?>r)r2r1z&gt;�>z&lt;�<)r3rNrOr7)�htmls r&�	html2textrhssU��
�<�<���%�D��<�<���'�D�
�6�6�'�2�t�$�D��=�=��x��f�c�6�3�G�D��Kr%c�R�\rSrSrSrSSjr\RSSj5rSr	Sr
g)	�
PydocBaseTestic�R�UR[RS[5 g�Nr7��assertIs�sys�modulesr7��selfs r&�tearDown�PydocBaseTest.tearDown�s��	
�
�
�c�k�k�'�*�E�2r%Nc�v^^�U=(d$ [RR[5/mSUU4SjjnU$)zQ
A version of pkgutil.walk_packages() that will restrict itself to
a given path.
c�(>�T"U=(d TX5$�Nr)rU�prefix�onerror�default_path�
walk_packagess   ��r&�wrapper�8PydocBaseTest._restricted_walk_packages.<locals>.wrapper�s��� ��!5��v�G�Gr%)Nr)N)rTrUrWr8)rrr{rUr|rzs `  @r&�_restricted_walk_packages�'PydocBaseTest._restricted_walk_packages�s0���
�:������� 9�:��	H�	H��r%c#�# �[RnURUU5[lSv� U[lg!U[lf=f7frw)�pkgutilr{r~)rrrUr{s   r&�restrict_walk_packages�$PydocBaseTest.restrict_walk_packages�sA����-�-�
� $� >� >�}�?C�!E���	2��$1�G�!��M�G�!�s�,A�?�A�
A�Ac�n�[R"US5n[U5nURXBU5 U$)Nz	text/html)r7�_url_handlerrb�assertEqual)rr�url�expected_titler^�results     r&�call_url_handler�PydocBaseTest.call_url_handler�s3���!�!�#�{�3����%�������6��r%rrw)rr r!r"rsr~�
contextlib�contextmanagerr�r�r$rr%r&rjrjs+��3�����2��2�r%rjc���\rSrSrSrSr\R"\"\	S5=(a \	R"5S5\S55r\R"\"\	S5=(a \	R"5S5\S55r
SrS	rS
rSrSrS
rSr\S5rSrSrSrSrSrSrSrSrSr\R"\"\	S5=(a \	R"5S5\R>RAS5\S555r!\R"\"\	S5=(a \	R"5S5\\R>RAS5S555r"\R"\"\	S5=(a \	R"5S5\S55r#Sr$Sr%\R>RAS5S5r&\R"\"\	S5=(a \	R"5S5\\R>RAS5S 555r'S!r(S"r)S#r*S$r+S%r,S&r-S'r.\S(5r/S)r0S*r1S+r2S,r3S-r4\S.5r5S/r6S0r7S1r8g)2�PydocDocTesti�Nc�R�UR[RS[5 grlrmrqs r&rs�PydocDocTest.tearDown�����
�
�c�k�k�'�*�E�2r%�gettrace�1trace function introduces __locals__ unexpectedlyc�`�[[5up[U5nUR5Vs/sHoDR	5PM nnUVs/sH
oD(dMUPM nnUS	[
R5nUVs/sHoD(dMUR	5PM nnUR
XV5 [R"[5n[RRU5nURX�5 URXq5 URX!5 gs snfs snfs snf�N�)
rLrrh�
splitlinesr9�html2text_of_expectedr��inspect�
getabsfile�urllib�parse�quote�assertIn)	rrr��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�/G�t�j�j�l�/G�
�H�'1�:�z�t�T�d�z�
�:��q�M�.�9�9�;��3A�J�>�4�T�,�$�*�*�,�>��J�����4��%�%�i�0���,�,�$�$�X�.���
�
�g�&��
�
�h�'��
�
�g�&��I��:��Ks�D!�
D&�D&�?
D+�
D+c��[[5up[U4[-[R
"[54--nUR
X15 grw)r[r�expected_text_pattern�expected_text_data_docstringsr�r�r�)rrr�r��
expected_texts    r&�
test_text_doc�PydocDocTest.test_text_doc�sM��)��3���-� �
�5�6� �+�+�I�6�8�9�:�
�	
����/r%c��SSKn"SSUR5n[R"U5nUR	SU5 g)Nrc��\rSrSrSrSrSrg)�IPydocDocTest.test_text_enum_member_with_value_zero.<locals>.BinaryIntegeri�rr�rN)rr r!r"�zero�oner$rr%r&�
BinaryIntegerr��s���D��Cr%r�zBinaryInteger.zero)�enum�IntEnumr7�
render_docr�)rrr�r�rIs    r&�%test_text_enum_member_with_value_zero�2PydocDocTest.test_text_enum_member_with_value_zero�s8��	�	�D�L�L�	����}�-���
�
�*�C�0r%c�n�[[RR5nUR	SU5 g)Nzxml.etree.elementtree)rY�xml�etree�ElementTreer�)rr�doc_links  r&�,test_mixed_case_module_names_are_lower_cased�9PydocDocTest.test_mixed_case_module_names_are_lower_cased�s%��!�#�)�)�"7�"7�8���
�
�-�x�8r%c�`�[[R5upURUSS5 g)Nr)z'MODULE DOCS incorrectly includes a link)r[r�r�r�)rrr�r�s   r&�test_issue8225�PydocDocTest.test_issue8225�s%��(����3�������"�&O�Pr%c��SSKnSSKnSSS.n[RR	SU5 [
R"5n[RRUR5nURXS9nURU5 URSU5 URSU5 URURUS9nURU5 URSU5 URSU5 URUR US9nUR#U5 SSS5 g!,(df   g=f)	Nrzcodecs#module-encodingszcodecs#module-encodings.idna)�	encodingszencodings.idnaz"pydoc_data.module_docs.module_docsrRzencodings.htmlzencodings.idna.html)�encodings.idna�importlib._bootstrap�unittest�mock�patchr7rXrTrUrWr8rG�assertIsNotNoner��assertNotIn�idna�
_bootstrap�assertIsNone)rrr��	importlib�module_docsrIrSr�s       r&�test_online_docs_link�"PydocDocTest.test_online_docs_link�s���#�3�<�
��
�]�]�
 �
 �!E�{�
S��-�-�/�C��g�g�o�o�i�&8�&8�9�G��}�}�Y�}�@�H�� � ��*��M�M�3�X�>����-�x�8��}�}�Y�^�^�W�}�E�H�� � ��*��M�M�8�(�C����2�H�=��}�}�Y�%9�%9�7�}�K�H����h�'�T�
S�
S�s�C=D4�4
Ec��[RnS[l[R"5 U[lg!U[lf=frw)ro�stdinr7�getpager)rr�previous_stdins  r&�test_getpager_with_stdin_none�*PydocDocTest.test_getpager_with_stdin_none�s0������	'��C�I��N�N��&�C�I���C�I�s	� >�
Ac���"SS5n"SS5n[R"U"55n[R"U"55nURURSS5U5 g)Nc��\rSrSrSrSrg)�)PydocDocTest.test_non_str_name.<locals>.Ai��*rN�rr r!r"r$rr%r&�Ar��s���Hr%r�c��\rSrSrSrg)�)PydocDocTest.test_non_str_name.<locals>.BirNr�rr%r&�Br����r%r�)r7r�r�r3)rrr�r��adoc�bdocs     r&�test_non_str_name�PydocDocTest.test_non_str_name�sU��	�	�	�	������$�������$��������c�3�/��6r%c�h�Sn[[U5S5n[U-nURX2S5 g)N�test.i_am_not_here�asciiz&documentation for missing module found)�strrC�missing_patternr��rr�missing_moduler��expecteds    r&�
test_not_here�PydocDocTest.test_not_heres5��-���^�N�3�W�=��"�^�3������4�	6r%c�z�[SSS9n[RRSS5nUR	X!5 g)Nz#test.test_pydoc.test_pydoc.nonasciir�)�PYTHONIOENCODING�backslashreplace)rArr#�encoder�)rrr��encodeds   r&�test_not_ascii�PydocDocTest.test_not_ascii
s5���@�SZ�[���"�"�)�)�'�3E�F���
�
�g�&r%c��Sn[[U5S5n[UR5-nUR	X25 g)Nz test.i_am_not_here r�)r�rCr�r9r�r�s    r&�test_input_strip�PydocDocTest.test_input_strips9��/���^�N�3�W�=��"�^�%9�%9�%;�;������*r%c���[RnURU"S5S5 URU"S5S5 URU"S5S5 URU"S5S5 g)Nz<function stripid at 0x88dcee4>z<function stripid>z <function stripid at 0x01F65390>�42z<type 'exceptions.Exception'>)r7�stripidr�)rrr�s  r&�test_stripid�PydocDocTest.test_stripidsl���-�-������!B�C�-�	/�����!C�D�-�	/�	
�������-�����!@�A�8�	:r%c�~�[R"5nUR[5nSnUR	X#5 g)a%Tests 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)r7rX�docclass�object�assertRegex�rrrIr^�snips    r&�)test_builtin_with_more_than_four_children�6PydocDocTest.test_builtin_with_more_than_four_children&s4��*�m�m�o���|�|�F�#��8��	
����$r%c�~�[R"5nUR[5nSnUR	X25 g)a�Tests 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)r7rXr�ArithmeticErrorr�rs    r&�test_builtin_with_child�$PydocDocTest.test_builtin_with_childEs2��&�m�m�o���|�|�O�,��,��	
�
�
�d�!r%c��[R"5nUR[5nSnUR	X25 URSU5 g)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
 |      AttributeError�ZeroDivisionErrorN)r7rXr�	Exceptionr�r�rs    r&�test_builtin_with_grandchild�)PydocDocTest.test_builtin_with_grandchild`sC��,�m�m�o���|�|�I�&��)��	
�
�
�d�!����,�d�3r%c�|�[R"5nUR[5nUR	SU5 g)a+Tests 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)r7rXrrr��rrrIr^s   r&�test_builtin_no_child�"PydocDocTest.test_builtin_no_child�s/��.�m�m�o���|�|�-�.�����.��5r%c�|�[R"5nUR[5nUR	SU5 g)z�Tests help on metaclasses.

When running help() on a metaclasses such as type, it
should not contain any "Built-in subclasses" section.
rN)r7rXr�typer�rs   r&�test_builtin_on_metaclasses�(PydocDocTest.test_builtin_on_metaclasses�s.���m�m�o���|�|�D�!�����.��5r%c�4�[S-R5n[S5nURS5up4UR	5R5SSnUSRS5US'UR
X5 SSS5 g!,(df   g=f)N�abdz-chelp()sabdi����i����r�help> )r�r�r�communicate�decode�removeprefixr�)rr�elines�procr?r`�oliness      r&�test_fail_help_cli�PydocDocTest.test_fail_help_cli�s~��!�E�)�5�5�7��
�-�
(�D��%�%�f�-�F�C��Z�Z�\�,�,�.�r�"�5�F��q�	�.�.�x�8�F�1�I����V�,�	)�
(�
(�s�AB	�	
Bc�>�[5n[R"US9nURS5 [S-nURX1R
5R5RS[R55 SSS5 g!,(df   g=f)N�rJrr4)rr7�Helper�helpr�r��getvaluer9r3rT�linesep)rr�buf�helperr�s    r&�test_fail_help_output_redirect�+PydocDocTest.test_fail_help_output_redirect�se��
�Z�3��\�\��-�F��K�K���&��.�H����X�|�|�~�';�';�'=�'E�'E�d�B�J�J�'W�X�	�Z�Z�s�A:B�
B�pydoc.pagerc���SUl[[5up#SnSR5n[R
"U5nU[-n[5n[5n[5n	[R"U	S9n
U
RU5 U	R5R5nUU4[-[ R""[54--nUR%SUR55 UR%SUR55 UR%X�5 SSS5 SSS5 UR'5 g!,(df   N'=f!,(df   N0=f)Nztest.test_pydoc.pydoc_modzO
        Help on module test.test_pydoc.pydoc_mod in test.test_pydoc:

        r'r))�maxDiffr[r�lstrip�textwrap�dedentr�rrrr7r(r)r*r9r�r�r�r��assert_not_called)
rr�
pager_mock�unusedr�rH�help_header�expected_help_patternrJr@r,r-r�r�s
             r&�test_help_output_redirect�&PydocDocTest.test_help_output_redirect�s�����(��3���,���
�F�H�	��o�o�k�2�� +�.C� C��
�
�&�/�*;�s��*�C��\�\��-�F��K�K����\�\�^�)�)�+�F�1�$�J�9�:�$�/�/�	�:�<�=�>�M�
���R����!2�3����R�����0����]�3�+<�
�	�$�$�&�+<�*;��
�
�s%�E�CE�'E�
E	�E�
E'c�^^�UU4SjnSTlU"SS5 U"SS5 U"SS5 U"SS	5 U"S
S5 U"SS5 U"S
S5 U"SS5 U"SS5 U"SS5 U"[RRS5 g)Nc	�>�[5n[5n[5n[R"US9nURU5 UR
5R5nTRSUR
5SUS3S9 TRSUR
5SUS3S9 TRXSUS3S9 TR5 SSS5 SSS5 g!,(df   N=f!,(df   g=f)z7Helper function to run pydoc with its output redirectedr'r)zfailed on request "�")�msgN)rrrr7r(r)r*r9r�r�r6)	�request�expected_text_partrJr@r,r-r�r7rrs	       ��r&�run_pydoc_for_request�VPydocDocTest.test_help_output_redirect_various_requests.<locals>.run_pydoc_for_request�s���� �"�f�o�.?�3��j�����S�1�����G�$�����-�-�/��� � ��V�_�_�%6�>Q�RY�QZ�Z[�<\� �]�� � ��S�\�\�^�;N�w�i�WX�9Y� �Z��
�
�0�@S�T[�S\�\]�>^�
�_��,�,�.�/@�"�"�.?�.?��"�"�s#�C1�B8C �C1� 
C.	�*C1�1
C?�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.�%zThe power operator�Truezclass bool(int)�False�Nonezclass 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:)r2r7r(r))rrr7rCs`` r&�*test_help_output_redirect_various_requests�7PydocDocTest.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��1�3[�\��e�l�l�/�/�1Y�Zr%c�^�U4SjnU"SSS5 U"SSS5 U"SSS5 U"S	S	S
5 U"SSS5 U"S
S
S5 U"[RRSS5 U"SSS5 U"[SS5 U"SSS5 U"[RSS5 U"[R
SS5 U"[RSS5 U"[[SS5 U"SSS5 U"[SS5 g)Nc	�>>�[5n[5n[RR	S5nTR[
U55 [R"5nURU5 TRSUR55 TRSUR55 UR5 [URRS5nTRUR!5SU5 TRURRSSU35 SSS5 SSS5 SSS5 SSS5 g!,(df   N'=f!,(df   N0=f!,(df   N9=f!,(df   g=f)Nr0r)r4rr�zHelp on )rrr�r�r��subTest�reprr7r(r)r�r*�assert_called_oncerP�	call_argsr<r�)	rA�what�expected_first_linerJr@r7r-r�rrs	        �r&�run_pydoc_pager�<PydocDocTest.test_help_output_pager.<locals>.run_pydoc_pagers$���!�#�v�!�#�s��-�-�%�%�m�4�
��,�,�t�G�}�-���������G�$�� � ��S�\�\�^�4�� � ��v���'8�9��-�-�/�#�J�$8�$8�$=�$=�a�$@�A��� � ��!2�!2�!4�Q�!7�9L�M�� � ��!5�!5�!:�!:�1�!=��$��?P�Q�.�5�$�$�#�.�-��5�4��$�#��$�#�sR�F� E=�E,�C(E	�:E,�E=�
F�
E)
�%E,�,
E:�6E=�=
F	�F�
FrH�EXPRESSIONSzOperator precedencerIzbool objectzHelp on bool object:TrLrMrNrOrPrQzHelper.helprRr�z%Help on class str in module builtins:z	str.upperz!Help on method_descriptor in str:zHelp on method_descriptor:zstr.__add__zHelp on wrapper_descriptor:z
int.numeratorz1Help on getset descriptor builtins.int.numerator:�listz(Help on GenericAlias in module builtins:rozHelp on built-in module sys:)
r7r(r)r��upper�__add__�int�	numeratorr`ro)rrr]s` r&�test_help_output_pager�#PydocDocTest.test_help_output_pagers���	R�	��]�,A�B���
�/E�F���m�-C�D���(�,D�E����*G�H��+�-@�@�	B�����)�)�=�@�	B���u�&M�N���U�$K�L���[�2U�V���	�	�;�0L�M�����]�4Q�R���
�
��K�	M���S�	�6�B�	D���u�&D�E���U�$B�Cr%c���[5n[R"5nURS5 SSS5 WR	5nURSU5 g!,(df   N1=f)N�with�The "with" statement)rr7r(�	showtopicr*r�)rr�showtopic_ior-�helptexts    r&�test_showtopic�PydocDocTest.test_showtopic+sP��
�
�,��\�\�^�F����V�$�� �(�(�*���
�
�,�h�7�	�
�s�'A�
A+c��[5n[R"5nURS5 SnUR	X1R5R
55 SSS5 g!,(df   g=f)Nr� no documentation found for 'abd')rr7r(rjr�r*r9)rrrkr-r�s    r&�test_fail_showtopic� PydocDocTest.test_fail_showtopic2sT��
�
�,��\�\�^�F����U�#�9�H����X�'<�'<�'>�'D�'D�'F�G�	�
�
�s�AA*�*
A8c��[5n[R"US9nURS5 SnUR	XBR5R
55 SSS5 UR5 g!,(df   N=f)Nr'rrp)rr7r(rjr�r*r9r6)rrr7r,r-r�s     r&�#test_fail_showtopic_output_redirect�0PydocDocTest.test_fail_showtopic_output_redirect9sb��
�Z�3��\�\��-�F����U�#�9�H����X�|�|�~�';�';�'=�>�	�	�$�$�&�
�Z�s�AA9�9
Bc��SUl[5n[5n[5n[R
"US9nUR
S5 UR5R5nURSUR55 URSUR55 URSU5 SSS5 SSS5 UR5 g!,(df   N'=f!,(df   N0=f)Nr'rhr)ri)r2rrrr7r(rjr*r9r�r�r6)rrr7rJr@r,r-r�s       r&�test_showtopic_output_redirect�+PydocDocTest.test_showtopic_output_redirectCs������
�
�&�/�*;�s��*�C��\�\��-�F����V�$��\�\�^�)�)�+�F����R����!2�3����R�����0��M�M�0�&�9�+<�
�	�$�$�&�+<�*;��
�
�s#�C/�B C�=C/�
C,	�(C/�/
C=c���SnS[0Ul[5n[R"U5 SSS5 WR5nUR
SU5 g!,(df   N1=f)Nc��gr�r��a�b�cs   r&�<lambda>�APydocDocTest.test_lambda_with_return_annotation.<locals>.<lambda>X���qr%�returnzlambda (a, b, c) -> int�rc�__annotations__rr7r)r*r��rr�func�help_iorls    r&�"test_lambda_with_return_annotation�/PydocDocTest.test_lambda_with_return_annotationWsR�� �� (�#����
�
�'��J�J�t����#�#�%���
�
�/��:��
�s�A�
A+c���Sn[[[S.Ul[5n[R"U5 SSS5 WR5nUR
SU5 g!,(df   N1=f)Nc��gr�rr{s   r&r�DPydocDocTest.test_lambda_without_return_annotation.<locals>.<lambda>`r�r%r{zlambda (a: int, b: int, c: int)r�r�s    r&�%test_lambda_without_return_annotation�2PydocDocTest.test_lambda_without_return_annotation_sU�� ��%(�s��=���
�
�'��J�J�t����#�#�%���
�
�7��B��
�s�A'�'
A5c��Sn[[[[S.Ul[5n[R"U5 SSS5 WR5nUR
SU5 g!,(df   N1=f)Nc��gr�rr{s   r&r�LPydocDocTest.test_lambda_with_return_and_params_annotation.<locals>.<lambda>hr�r%)r|r}r~r�z&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_annotationgsW�� ��%(�s���L���
�
�'��J�J�t����#�#�%���
�
�>��I��
�s�A,�,
A:c�D�[SSS/5n[5n[R"U5 SSS5 WR	5nURSU5 URSU5 URSU5 URSU5 g!,(df   Ng=f)N�Person�nickname�	firstnamezAlias for field number 0zAlias for field number 1�rrr7r)r*r�)rrr�r�rls    r&�test_namedtuple_fields�#PydocDocTest.test_namedtuple_fieldsos}���H�z�;�&?�@��
�
�'��J�J�v����#�#�%���
�
�j�(�+��
�
�k�8�,��
�
�0�(�;��
�
�0�(�;�
�
�s�B�
Bc��[SSS/SS9n[5n[R"U5 SSS5 WR	5nURSU5 URSU5 URSU5 g!,(df   NU=f)	N�NT�abc�defT)�rename�_1�_replace�_asdictr�)rrr�r�rls    r&�!test_namedtuple_public_underscore�.PydocDocTest.test_namedtuple_public_underscoreysm��
��u�e�n�T�
:��
�
�'��J�J�r�N���#�#�%���
�
�d�H�%��
�
�j�(�+��
�
�i��*��
�s�A>�>
Bc�\�UR[[5 SH{n[[SUS9nUS:wa[	SRU5US9 [	SUS9 [	SUS9 SSS5 [R"[05nURUS	5 M} g!,(df   N@=f)
N)z
ISO-8859-1�UTF-8�w��encodingr�z#coding: {})�fileu"""line 1: héz
line 2: hi"""uline 1: hé)	�
addCleanuprr�open�print�formatr7�synopsisr�)rrr��scriptr�s    r&�
test_synopsis�PydocDocTest.test_synopsis�s��������'�/�H��f�c�H�5���w�&��-�.�.�x�8�v�F��(�v�6��o�F�3�	6�
�~�~�f�b�1�H����X��7�0�5�5�s�4B�
B+	c�.^�S7U4SjjnU"SS5 U"SS5 U"SS5 U"SS5 U"S	S5 U"S
S5 U"SS
5 U"SS
5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"SS5 U"S S!5 U"S"S5 U"S#S5 U"S$S%5 U"S&S5 U"S'S(5 U"S)S*5 U"S+S5 U"S,S-S.S/9 U"S0SS1S/9 [R"S2S1S39nURS45 UR5 UR	S55 [
R"U5nTRUS65 SSS5 g!,(df   g=f)8Nc� >�[U[5(a[U5nO)[R"[R
"U5US9nU [R"U5nTRXA5 SSS5 g!,(df   g=f)Nr�)	�
isinstancer�r�io�
TextIOWrapper�BytesIOr7�source_synopsisr�)�sourcer�r��source_filer�rrs     �r&�check�0PydocDocTest.test_source_synopsis.<locals>.check�s`����&�#�&�&�&�v�.�� �.�.�r�z�z�&�/A�H�U����.�.�{�;��� � ��2����s�(A?�?
B
z"""Single line docstring."""zSingle line docstring.z7"""First line of docstring.
Second line.
Third line."""zFirst line of docstring.z9"""First line of docstring.\nSecond line.\nThird line."""z&"""  Whitespace around docstring.  """zWhitespace around docstring.zimport sys
"""No docstring"""z$  
"""Docstring after empty line."""zDocstring after empty line.z(# Comment
"""Docstring after comment."""zDocstring after comment.z3  # Indented comment
"""Docstring after comment."""z""""""r)z"""Embeddednull byte"""z"""Embedded null byte"""u"""Café and résumé."""uCafé and résumé.z'''Triple single quotes'''zTriple single quotesz"Single double quotes"zSingle double quotesz'Single single quotes'zSingle single quotesz"""split\
line"""�	splitlinez#"""Unrecognized escape \sequence"""zUnrecognized escape \sequencez"""Invalid escape seq\uence"""zr"""Raw \stri\ng"""zRaw \stri\ngzb"""Bytes literal"""zf"""f-string"""z("""Concatenated""" \
"string" 'literals'�Concatenatedstringliteralsz"""String""" + """expression"""z("""In parentheses""")zIn parenthesesz,("""Multiple lines """
"""in parentheses""")zMultiple lines in parentheses�()s%# coding: iso-8859-15
"""�uro sign"""u€uro signziso-8859-15r�s"""�"""zutf-8zw+)�moder�z"""Real file test."""
rzReal file test.rw)�tempfile�NamedTemporaryFile�write�flush�seekr7r�r�)rrr��	temp_filer�s`   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�	&��
(�
(�d�W�
E���O�O�5�6��O�O���N�N�1���*�*�9�5�F����V�%6�7�F�
E�
E�s
�"AF�
Fc���[R"S5nURR5SnURR
n[R"U5nURXB5 g)NrTr)	r�import_fresh_moduler#r��__spec__�cachedr7r�r�)rrrTr��filenamer�s     r&�test_synopsis_sourceless�%PydocDocTest.test_synopsis_sourceless�sT��
�
.�
.�t�
4���:�:�(�(�*�1�-���;�;�%�%���>�>�(�+������,r%c��[R"5n[RR	US5n[
RRU5n[US5nURS5 SSS5 [R"U5 [R"U05nURU5 [R"U05nURU5 SSS5 g!,(df   N}=f!,(df   g=f)Nzfoomod42.pyr��foo = 1)r	�temp_cwdrTrU�joinr��util�cache_from_sourcer�r��
py_compile�compiler7r�r�)rr�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�E�K��i��%���
�
�9�%�&����y�)��~�~�i��4�H����h�'�#�n�n�[�"�=�O����o�.�"�
!�&�%��"�
!�s%�AC<�"C+�4A.C<�+
C9	�5C<�<
D
c�T�SnUR[R"U5S5 g)Nz#I Am A Doc


Here is my description)z
I Am A Docz
Here is my description)r�r7�splitdoc)rr�example_strings  r&�test_splitdoc_with_description�+PydocDocTest.test_splitdoc_with_description�s$��A���������7�C�	Er%c�J�[R"5nUR[5nUR	[
R"U55 SSS5 URWR[5 SSS5 g!,(df   N7=f!,(df   g=frw)
r	r��assertWarns�DeprecationWarning�assertFalser7�	ispackager�r�r8)rrr��cms   r&� test_is_package_when_not_package�-PydocDocTest.test_is_package_when_not_package�si��
�
�
�
!�X��!�!�"4�5��� � �����!:�;�6����R�[�[�(�3�"�
!�5�5��"�
!�s"�B�&B�(B�
B	�
B�
B"c���[R"5n[RR	US5n[US5R
5 UR[5nUR[R"U55 SSS5 [R"U5 URWR[5 SSS5 g!,(df   NM=f!,(df   g=f)N�__init__.pyr�)r	r�rTrUr�r��closer�r��
assertTruer7r��remover�r�r8)rrr�r�r�s    r&�test_is_package_when_is_package�,PydocDocTest.test_is_package_when_is_package�s���
�
�
�
!�X������X�}�=�I���C� �&�&�(��!�!�"4�5��������� 9�:�6��I�I�i� ����R�[�[�(�3�
"�
!�6�5��"�
!�s$�AC$�&&C�>C$�
C!	�C$�$
C2c��"SS[5n[[[55nURUS'US	US	URUS'UR
US'[R"U5nURX25 g)Nc��\rSrSrSrSrg)�/PydocDocTest.test_allmethods.<locals>.TestClassic��g)NTrrqs r&�method_returning_true�EPydocDocTest.test_allmethods.<locals>.TestClass.method_returning_true	s��r%rN)rr r!r"r�r$rr%r&�	TestClassr�s��
r%r�r�r#�	__class__�__subclasshook__�__init_subclass__)	r�dict�varsr�r�r�r7�
allmethods�assertDictEqual)rrr�r��methodss    r&�test_allmethods�PydocDocTest.test_allmethodss���	��	�
��V��%��,5�,K�,K��(�)��Y���[�!�(1�'A�'A��#�$�(1�(C�(C��$�%��"�"�9�-�����W�/r%c��^�"SS5m"U4SjST5n[R"U5n[U5nURUS[-5 [R"U[R
"5S9nS[S3n[
U5nURS	5Vs/sHoU(dMUR5PM nnUHnURXt5 M gs snf)
Nc�(�\rSrSrSSjr\rSrSrg)�+PydocDocTest.test_method_aliases.<locals>.AiNc��g)z(Raise this widget in the stacking order.Nr)rr�	aboveThiss  r&�tkraise�3PydocDocTest.test_method_aliases.<locals>.A.tkraise��r%c��g)zReturn sizeNrrqs r&�a_size�2PydocDocTest.test_method_aliases.<locals>.A.a_size!rr%rrw)rr r!r"r
�liftrr$rr%r&r�rs��
?��D�
"r%r�c�>>�\rSrSrSSjr\rYRrSrg)�+PydocDocTest.test_method_aliases.<locals>.Bi#Nc��g)z'Configure resources of an item TAGORID.Nr)rr�tagOrId�cnf�kws    r&�
itemconfigure�9PydocDocTest.test_method_aliases.<locals>.B.itemconfigure$rr%rrw)	rr r!r"r�
itemconfigr�b_sizer$)r�s�r&r�r#s���
>�&�J��X�X�Fr%r�amPython 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
r4)
r7r�rPr�rrErh�splitr9r�)	rrr�rIr��as_textr�r��
expected_liner�s	        @r&�test_method_aliases� PydocDocTest.test_method_aliasess����	"�	"�	��	����q�!����o������%�J�K%�%	�N���q�5�=�=�?�;����*���
�:�C�.��3@�3F�3F�t�3L�U�3L�4�PT�,�$�*�*�,�3L��U�+�M��M�M�-�1�,��Vs�$
C#�2C#c
��^^^�SSKJm SSKJmJm "UUU4SjS5n[
R"U5n[U5nURUS[<S[(aSOS	<S
[(aSOS<S35 S
TT[S4/[4STSST[S44Sjn[
R"U5n[U5nURUS[-5 S
[S[4Sjn[
R"U5n[U5nURUS[-5 Sn[
R"U5n[U5nURUS[-5 g)Nr)�Callable)�Literal�	Annotatedc�V>�\rSrSrSY\\\/\4SYSSY\S4SS4S	jrS
rg)�,PydocDocTest.test_long_signatures.<locals>.Aiy�arg1�arg2)z
some valuezother value�arg3zsome docs about this typer�Nc��grwr)rrr(r)r*s    r&�__init__�5PydocDocTest.test_long_signatures.<locals>.A.__init__zs��
r%r)rr r!r"rcr�r,r$)r%r#r$s���r&r�r'ysM���
�'��c�3���(<�=�
�&�'B�C�
� )��.I�)I�J�
�#�	
r%r�z0Python Library Documentation: class A in module aR

class A(builtins.object)
 |  A(
 |      arg1: collections.abc.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: collections.abc.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 objectr4r(zSome docr))r��������r�z
Some otherc��grwr�r(r)s  r&r��/PydocDocTest.test_long_signatures.<locals>.func����
r%z�Python Library Documentation: function func in module %s

func(
    arg1: collections.abc.Callable[[typing.Annotated[int, 'Some doc']], str],
    arg2: Literal[1, 2, 3, 4, 5, 6, 7, 8]
) -> Annotated[int, 'Some other']
c��grwrr6s  r&�Afunction_with_really_long_name_so_annotations_can_be_rather_small�lPydocDocTest.test_long_signatures.<locals>.function_with_really_long_name_so_annotations_can_be_rather_small�r8r%z�Python 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��g)N.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%z�Python 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
)
�collections.abcr#�typingr$r%r7r�rPr�rrrcr�)	rrr�rIr�r:�does_not_have_namer%r#r$s	      @@@r&�test_long_signatures�!PydocDocTest.test_long_signaturesusv���,�-�	�	����q�!����o������0�
!�
!�r�'T�T�
!�
!�r�'X�X�5�		�:	��I�c�:�o�6�7��<�=�	��0�1�	��s�L�(�
)�	����t�$����o��������
�	�	��	��	����`�a����o��������
�	�1�����1�2����o���������	r%c�H�SSKn[U5up#[U5upC[[5upS[[5upcURHRnUS3nSUS3n	URX�5 URX�5 UR
X�5 UR
X�5 MT g)Nrz = _Featurez<strong>z</strong> = _Feature)�
__future__r[rLr�all_feature_namesr�r�)
rrrF�future_textr`�future_html�pydoc_mod_text�pydoc_mod_html�feature�txtrgs
          r&�test__future__imports�"PydocDocTest.test__future__imports�s���	�'�
�3���'�
�3���*�9�5���*�9�5���!�3�3�G��I�[�)�C��g�Y�&:�;�D��M�M�#�+��M�M�$�,����S�1����T�2�
4r%)r2)9rr r!r"r2rsr��skipIf�hasattrror�rr�r�r�r�r�r�r�r�r�r�r�r�rrrrrr$r.r�r�r;rSrermrqrtrwr�r�r�r�r�r�r�r�r�r�r�r�rr rCrNr$rr%r&r�r��s����G�3��_�_�W�S�*�-�@�#�,�,�.�H�J��
'��J�
'��_�_�W�S�*�-�@�#�,�,�.�H�J��0��J�0�1�9�
Q�
(�4'�
7�6��'��'�
+�:�%�>"�64�@6�8	6�-�Y��_�_�W�S�*�-�@�#�,�,�.�H�J�
�]�]����'��'��(�J�'�:�_�_�W�S�*�-�@�#�,�,�.�H�J��
�]�]����'�&[�(��J�&[�R�_�_�W�S�*�-�@�#�,�,�.�H�J��"D��J�"D�H8�H��]�]����'�'�(�'��_�_�W�S�*�-�@�#�,�,�.�H�J��
�]�]����'�'�(��J�'� ;�C�J�<�+�	8�J8�X�-��-�
/�E�
4�4�0�2�W2��W2�rT�l3r%r�c��\rSrSrSrSrSrSr\R\
R"\S5S55r
Sr\
R"S	5S
5r\
R"S	5S5r\
R"S5S
5rSrSrg)�PydocImportTesti�c��[R"[5UlUR	[
[5 [R"5 grw)rT�mkdirrr�r�rr��invalidate_cachesrqs r&�setUp�PydocImportTest.setUp�s,������(��
������'��#�#�%r%c��SnSSSSRU5S4SRU5SRU544n[RR[U5[R
-S-nUHrupE[
US	5nURS
RU55 SSS5 [U[S9RS5n[X4-nURX�5 Mt g!,(df   NK=f)
N�
testmod_xyzzy)�
i_am_not_herer[)�test.i_am_not_here_eitherr\)ztest.i_am_not_here.neither_am_ir�zi_am_not_here.{}r[ztest.{}�pyr�z
import {}
)�
PYTHONPATHr�)r�rTrUr�r�extsepr�r�rCr�badimport_patternr�)	rr�modname�	testpairs�sourcefn�importstring�
expectedinmsg�fr�r�s	         r&�test_badimport�PydocImportTest.test_badimport�s���"��.�F�E�
�
&�
&�w�
/��A�
�
�
�g�
&�	�(8�(8��(A�B��	��7�7�<�<���0�2�9�9�<�t�C��+4�'�L��h��$�����
�,�,�\�:�;�%�#�G��?�F�F�w�O�F�(�G�+C�C�H����X�.�,5�$�$�s�!C,�,
C:	c�B�[RR[S5n[R"U5 [RRUS5[R
-S-n[
US5nURS5 SSS5 UR[/S9 [5n[5n[R"S5 SSS5 SSS5 URWR5S5 URWR5S5 [5n[5n[R"S5 SSS5 SSS5 URUR5R5S5 URUR5S5 SSS5 g!,(df   GN3=f!,(df   N�=f!,(df   GN=f!,(df   N�=f!,(df   N�=f!,(df   g=f)	N�	syntaxerrr,r]r�zinvalid python syntax = $1
�rU�xyzzyr))rTrUr�rrUr_r�r�r�rrr7�aproposr�r*r9)rr�pkgdir�	badsyntaxrfr?r@s      r&�test_apropos_with_bad_package�-PydocImportTest.test_apropos_with_bad_package�sd�������f�k�2��
������G�G�L�L���4�r�y�y�@�4�G�	�
�)�S�
!�Q�
�G�G�2�3�"�
�
(�
(�v�h�
(�
7� �"�c�$�&�#��M�M�'�*�'�#�
���S�\�\�^�R�0����S�\�\�^�R�0� �"�c�$�&�#��M�M�+�.�'�#�
���S�\�\�^�1�1�3�[�A����S�\�\�^�R�0�8�
7�"�
!��'�&��#�"��'�&��#�"��8�
7�sz�;F9�)H�4G�?G�G�AH�0G?�;G.�G?�AH�9
G�
G�G�
G+	�&H�.
G<�8G?�?
H
	�	H�
Hc��[RR[S5Ul[R
"URS5 UR
[RUR5 UR[/S9 [5n[5n[R"S5 SSS5 SSS5 SSS5 URWR5S5 URWR5S5 g!,(df   N_=f!,(df   Nh=f!,(df   Nq=f)N�
unreadablerrk�SOMEKEYr))rTrUr�r�unreadable_dirrUr��rmdirr�rrr7rmr�r*)rrr?r@s   r&� test_apropos_with_unreadable_dir�0PydocImportTest.test_apropos_with_unreadable_dirs��� �g�g�l�l�6�<�@���
����$�$�a�(�������$�"5�"5�6��
(�
(�v�h�
(�
7� �"�c�$�&�#��M�M�)�,�'�#�8�
	
��������,���������,�	'�&��#�"��8�
7�s<�	D1�D �D�6D �>D1�
D�D � 
D.	�*D1�1
D?zcannot remove x bitc�~�[RR[S5n[R"U5 UR[U5 [RRUS5n[US5nURS5 SSS5 [R"[R"U5R5n[R"X[R)-5 UR[/S9 [5n[ R""S5 SSS5 SSS5 UR%SWR'55 [R"X5 g!,(df   N�=f!,(df   N^=f!,(df   Ng=f![R"X5 f=f)N�walkpkgr�r�r�rkr))rTrUr�rrUr�rr�r��stat�S_IMODE�st_mode�chmod�S_IEXECr�rr7rmr�r*)rrrnr�r��current_mode�stdouts      r&�test_apropos_empty_doc�&PydocImportTest.test_apropos_empty_docs�������f�i�0��
����������'��G�G�L�L���7�	�
�)�S�
!�T��J�J�y�!�"��|�|�B�G�G�F�O�$;�$;�<��	+��H�H�V�T�\�\�M�9�:��,�,�6�(�,�;�_�=N�RX��
�
�b�!�>O�;��M�M�)�V�_�_�%6�7��H�H�V�*�"�
!��
>O�=N��;�;��
�H�H�V�*�sH�=E1�<F$�F�F�*F�2(F$�1
E?�
F	�F�
F!�F$�$F<c��[RR[S5n[R"U5 [RRUS5n[USSS9nUR
S5 SSS5 UR[/S9 [[R5n[RRS[5 UR[S	5 SSK
nSSS5 URS
S5nSnURXv5 U[RSS&SSS5 g!,(df   N�=f!,(df   Na=f!U[RSS&f=f!,(df   g=f)
N�test_error_packager��wtr�r�zraise ValueError("ouch")
rkr�ouchzsearch?key=test_error_package�Pydoc: Search Resultsz8<a href="test_error_package.html">test_error_package</a>)rTrUr�rrUr�r�r��tuplero�insert�assertRaisesRegex�
ValueErrorr�r�r�)rrrn�initrf�saved_pathsr�r^�founds        r&�test_url_search_package_error�-PydocImportTest.test_url_search_package_error/s�������f�&:�;��
������w�w�|�|�F�M�2��
�$��w�
/�1�
�G�G�4�5�0�
�
(�
(�v�h�
(�
7�����/�K��H�H�O�O�A�v�&�

*��+�+�J��?�-�@��,�,�-L�+�-��-���
�
�e�*�)������8�
7�0�
/��@�?��*�������8�
7�sH�&D8�>E2�E�)E	�.-E�E2�8
E�	
E	�E�E/�/E2�2
Fz(causes undesirable side-effects (#20128)c��SnSnSnX-U-n[5n[R"US9nU"S5 UR5R	5n[UR
55nURX�5 g)Nr.r1r/r'rp)rr7r(r*r9�lenr��assertGreaterEqual)	rr�num_header_lines�num_module_lines_min�num_footer_linesr�rJr-r��	num_liness	         r&�test_modules�PydocImportTest.test_modulesFsw���� ����#�:�=M�M��������V�,���y�����"�(�(�*����)�)�+�,�	����	�4r%c���Sn[5n[R"US9n[5nU"S5 SSS5 WR	5nURX5 g!,(df   N0=f)Nzpydoc - r'z
modules pydoc)rr7r(rr*r��rrr�rJr-r�r�s      r&�test_modules_search�#PydocImportTest.test_modules_searchVsV����������V�,��
�
�'��?�#���!�!�#���
�
�h�'�	�
�s�	A�
A,z+some buildbots are not cooperating (#20128)c��Sn[5n[R"US9n[5nU"S5 SSS5 WR	5nURUR
U55 g!,(df   N?=f)Nzgc - r'zmodules garbage)rr7r(rr*r��
startswithr�s      r&�test_modules_search_builtin�+PydocImportTest.test_modules_search_builtincs`����������V�,��
�
�'��$�%���!�!�#������)�)�(�3�4�	�
�s�	A-�-
A;c��[R"[R5nURU[5 UR	UR
S5 UR	UR[R5 UR	UR[R5 [[RS'g![[RS'f=frl)	r7�
importfiler8�assertIsNotr�rr�rorp)rr�loaded_pydocs  r&�test_importfile�PydocImportTest.test_importfileos���	)� �+�+�E�N�N�;�L����\�5�1����\�2�2�G�<����\�2�2�E�N�N�C����\�2�2�E�N�N�C�#(�C�K�K�� ��5�C�K�K�� �s�B*C�C)r�ruN)rr r!r"rWrgrprwr	�skip_unless_working_chmodr�rPrr�r��skipr�r�r�r�r$rr%r&rSrS�s���&�
/�*1�*
-��(�(�
�_�_�]�$9�:�+�;�)�+� *�.�]�]�=�>�
5�?�
5��]�]�=�>�
(�?�
(��]�]�@�A�	5�B�	5�	)r%rSc�$�\rSrSr\S5rSrg)�Recti{c�4�URUR-$)zArea of the rect)r��hrqs r&�area�	Rect.area|s���v�v�����r%rN�rr r!r"�propertyr�r$rr%r&r�r�{s��
���r%r�c�&�\rSrSr\"S5rSrg)�Squarei�c� �URS-$)Nr.)�siderqs r&r�Square.<lambda>�s�����A�r%rNr�rr%r&r�r��s
���-�.�Dr%r�c���\rSrSrSrSrSrSrSrSr	Sr
S	r\S
5r
\S5rSr\S
5rSrSr\S5r\S5rSrSrSrSrSrSrSrSrSrSrSr Sr!\"RF\S55r$\"RF\S55r%\"RF\S 55r&\"RF\S!55r'\"RF\S"55r(\"RF\S#55r)S$r*\S%5r+\S&5r,\S'5r-\S(5r.\S)5r/\S*5r0\S+5r1\S,5r2\S-5r3\S.5r4\S/5r5S0r6S1r7\S25r8S3r9S4r:g5)6�TestDescriptionsi�c�R�UR[RS[5 grlrmrqs r&rs�TestDescriptions.tearDown�r�r%c�\�[R"[5nURSU5 g)Nr)r7r�rr��rrrIs  r&�test_module�TestDescriptions.test_module�s �����{�+���
�
�m�S�)r%c��"SS5nU"5nUR[R"U5S5 UR[R"U5S5 S[-nUR	U[R
"U55 g)Nc��\rSrSrSrSrg)�&TestDescriptions.test_class.<locals>.Ci�zNew-style classrNrrr%r&�Cr��s��"r%r�zclass CzC in module %s object)r�r7�describerr�r�)rrr�r~r�s    r&�
test_class�TestDescriptions.test_class�sd��"�"�
�C���������*�I�6��������*�C�0�*�X�5���
�
�h�� 0� 0�� 3�4r%c�b�UR[R"[R[
5S5 [R"[R[
[RS9nURSU5 URSU5 [(d?UR[RR5R5SU5 UR[R"[[
5S5 [R"[[
[RS9nURSU5 URSU5 [(d@UR[RR5R5SU5 gg)	N�
_GenericAliasrz_GenericAlias in module typingzList = class list(object)r�GenericAliaszGenericAlias in module builtinsz
class list(object))r�r7r�rA�Listrcr��	plaintextr�rr`r#r9r�r�s  r&�test_generic_alias�#TestDescriptions.test_generic_alias�s�����������C�(8�9�?�K����v�{�{�3�/�%�/�/�J���
�
�6��<��
�
�1�3�7�#�#��M�M�$�,�,�,�,�.�9�9�;�A�>��D��������S�	�2�N�C����t�C�y�5�?�?�C���
�
�7��=��
�
�,�c�2�#�#��M�M�$�,�,�,�,�.�9�9�;�A�>��D�$r%c���UR[R"[R[
[45S5 [R"[R[
[4[RS9nURSU5 URSU5 [RR(aIUR[RRR5R5SU5 UR[R"[
[-5S5 [R"[
[-[RS9nURSU5 URSU5 [(dJUR[RRR5R5SU5 gg)	N�_UnionGenericAliasrz#_UnionGenericAlias in module typingzUnion = typing.Unionr�	UnionTypez UnionType in module types objectz!
class UnionType(builtins.object))r�r7r�rA�Unionrcr�r�r�r�r#r9r�r�typesr�r�s  r&�test_union_type� TestDescriptions.test_union_type�s5�����������S�#�X�(>�?�AU�V����v�|�|�C��H�5����P���
�
�;�S�A��
�
�,�c�2��<�<����M�M�&�,�,�.�.�4�4�6�A�A�C�A�F��L��������c�	�2�K�@����s�S�y�5�?�?�C���
�
�8�#�>��
�
�:�C�@�#�#��M�M�%�/�/�1�1�7�7�9�D�D�F�q�I�3�O�$r%c��UR[R"[R5S5 [R
"[R[RS9nURSU5 [RR(a\URSU5 UR[RRR5R5SU5 gURSU5 g)N�_SpecialFormrz_SpecialForm in module typingzNoReturn = typing.NoReturnrz%NoReturn = class _SpecialForm(_Final))r�r7r�rA�NoReturnr�r�r�r#r9r�r�s  r&�test_special_form�"TestDescriptions.test_special_form�s������������8�.�I����v������I���
�
�5�s�;��?�?�"�"��M�M�6��<��M�M�&�/�/�1�1�7�7�9�D�D�F�q�I�3�O��M�M�A�3�Gr%c	�D�S[R[RS[S[R[R
[[R44Sjn[R"S5n"SS[RU[R[[45nUR[R"U5R5SS	5 UR[R"U5R5S
S5 g)N�data�xr�c��grwr)r�r�s  r&�foo�/TestDescriptions.test_typing_pydoc.<locals>.foo�s��r%�Tc��\rSrSrSrg)�-TestDescriptions.test_typing_pydoc.<locals>.Ci�rNr�rr%r&r�r��s��cr%r����z?ffoooo(data: List[Any], x: int) -> Iterator[Tuple[int, Any]]r.z2class CC(collections.abc.Mapping, typing.Generic))rAr��Anyrc�Iterator�Tuple�TypeVar�Generic�Mappingr�r�r7r�r�)rrr�r�r�s    r&�test_typing_pydoc�"TestDescriptions.test_typing_pydoc�s���	�f�k�k�&�*�*�-�	��	�!�?�?�6�<�<��V�Z�Z��+H�I�	�
�N�N�3���A����q�!�6�>�>�#�s�(�#;�A�����)�)�#�.�9�9�;�B�?�9�	:�	
����)�)�!�,�7�7�9�!�<�P�	Rr%c��SH?nUR[R"U55 [R"U5 MA SHMnUR[R"U55 UR[[RU5 MO g![a$ URSR
U55 M�f=f)N)r�z
str.translatezbuiltins.strzbuiltins.str.translatezfinding the doc of {!r} failed)�notbuiltins�strrrzstrr.translatezstr.trrrranslatezbuiltins.strrrzbuiltins.str.trrranslate)	r�r7�locater��ImportError�failr�r��assertRaises)rr�names  r&�test_builtin�TestDescriptions.test_builtin�s���/�D�
� � ����d�!3�4�
I�� � ��&�
/�1�D�
���e�l�l�4�0�1����k�5�+;�+;�T�B�	1���
I��	�	�:�A�A�$�G�H�
I�s�B�*C�Cc��[R"[R"U55nURS5n[	U5S:�deUS$�Nr4r.)r7�plainr�rr���or^�liness   r&�_get_summary_line�"TestDescriptions._get_summary_line�sB���{�{�5�+�+�A�.�/���
�
�4� ���5�z�Q�����Q�x�r%c��[R"[R"U55nURS5nSR	USS5$r�)r7r�r�rr�r�s   r&�_get_summary_lines�#TestDescriptions._get_summary_lines�s>���{�{�5�+�+�A�.�/���
�
�4� ���y�y��q�r��#�#r%c�v�URUR[RR5S5 g)Nzwrap(self, text))r�r�r4�TextWrapper�wraprqs r&�test_unbound_python_method�+TestDescriptions.test_unbound_python_method�s,������/�/��0D�0D�0I�0I�J��	 r%c�v�URUR[RR5S5 g)Nz1dump(self, obj, /) unbound _pickle.Pickler method)r�r��_pickle�Pickler�dumprqs r&�test_unbound_builtin_method�,TestDescriptions.test_unbound_builtin_method�s+������/�/����0D�0D�E�?�	Ar%c��[R"5nURURUR5S5 g)Nz2wrap(text) method of textwrap.TextWrapper instance)r4rr�r�r)rr�ts  r&�test_bound_python_method�)TestDescriptions.test_bound_python_method�s3��� � �"������/�/����7�@�	Br%c��[S/SQ5n[R"U5nURUR	S5UR	S55 URUR	S5UR	S55 "SS5n"SS	5n[R"U5 [R"U5 g)
Nr�)r�r��agegroupr�r�rc��\rSrSrSrSrg)�MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonIterableFieldsi�Nr�rr r!r"�_fieldsr$rr%r&�NonIterableFieldsr�s���Gr%rc��\rSrSr//rSrg)�MTestDescriptions.test_field_order_for_named_tuples.<locals>.NonHashableFieldsirNrrr%r&�NonHashableFieldsrs	���d�Gr%r)rr7r��
assertLess�index)rrr�r-rrs     r&�!test_field_order_for_named_tuples�2TestDescriptions.test_field_order_for_named_tuples�s����H�&K�L�����V�$��������
�+�Q�W�W�[�-A�B��������,�a�g�g�j�.A�B�	�	�	�	�	���*�+�
���*�+r%c��[5n[R"U5nURUR	UR
5S5 g)Nz/dump(obj, /) method of _pickle.Pickler instance)rrrr�r�r	)rrr-�ps   r&�test_bound_builtin_method�*TestDescriptions.test_bound_builtin_method	s9���J���O�O�A�������/�/����7�=�	?r%c�b�URUR[R5S5 g)Nz0stat(path, *, dir_fd=None, follow_symlinks=True))r�r�rTr{rqs r&�test_module_level_callable�+TestDescriptions.test_module_level_callables%������/�/����8�>�	@r%c�b�URUR[R5S5 g)Nztime())r�r��timerqs r&�!test_module_level_callable_noargs�2TestDescriptions.test_module_level_callable_noargss$������/�/��	�	�:��	r%c��SSKnURUR	WR
5S5 g![a URS5 NIf=f)Nrz_stat extension is missingzS_IMODE(object, /))�_statr��skipTestr�r�r|)rrr*s  r&�test_module_level_callable_o�-TestDescriptions.test_module_level_callable_osL��	8��
	
����/�/��
�
�>� �	"��	�	8��M�M�6�7�	8�s�2�A�Ac�b�URUR[R5S5 g)Nz*lower(self, /) unbound builtins.str method)r�r�r��lowerrqs r&�"test_unbound_builtin_method_noargs�3TestDescriptions.test_unbound_builtin_method_noargs$s$������/�/��	�	�:�8�	:r%c�Z�URURSR5S5 g)Nr)z'lower() method of builtins.str instance)r�r�r/rqs r&� test_bound_builtin_method_noargs�1TestDescriptions.test_bound_builtin_method_noargs(s$������/�/����9�5�	7r%c�b�URUR[R5S5 g)Nz0add(self, object, /) unbound builtins.set method�r�r��set�addrqs r&�test_unbound_builtin_method_o�.TestDescriptions.test_unbound_builtin_method_o,s%������/�/����8�>�	@r%c�j�URUR[5R5S5 g)Nz.add(object, /) method of builtins.set instancer6rqs r&�test_bound_builtin_method_o�,TestDescriptions.test_bound_builtin_method_o0s&������/�/���	�	�:�<�	>r%c�b�URUR[R5S5 g)Nz9__contains__(self, object, /) unbound builtins.set method�r�r�r7�__contains__rqs r&�%test_unbound_builtin_method_coexist_o�6TestDescriptions.test_unbound_builtin_method_coexist_o4s'������/�/��0@�0@�A�G�	Ir%c�j�URUR[5R5S5 g)Nz7__contains__(object, /) method of builtins.set instancer?rqs r&�#test_bound_builtin_method_coexist_o�4TestDescriptions.test_bound_builtin_method_coexist_o8s)������/�/���0B�0B�C�E�	Gr%c�|�URUR[RRS5S5 g)N�utcnowz0utcnow(type, /) unbound datetime.datetime method)r�r��datetime�__dict__rqs r&�'test_unbound_builtin_classmethod_noargs�8TestDescriptions.test_unbound_builtin_classmethod_noargs<s2������/�/��0A�0A�0J�0J�8�0T�U�>�	@r%c�v�URUR[RR5S5 g)Nz*utcnow() class method of datetime.datetime)r�r�rHrGrqs r&�%test_bound_builtin_classmethod_noargs�6TestDescriptions.test_bound_builtin_classmethod_noargs@s,������/�/��0A�0A�0H�0H�I�8�	:r%c�h�URUR[RS5S5 g)N�__class_getitem__z?__class_getitem__(type, object, /) unbound builtins.dict method)r�r�r�rIrqs r&�"test_unbound_builtin_classmethod_o�3TestDescriptions.test_unbound_builtin_classmethod_oDs+������/�/��
�
�>Q�0R�S�M�	Or%c�b�URUR[R5S5 g)Nz:__class_getitem__(object, /) class method of builtins.dict)r�r�r�rPrqs r&� test_bound_builtin_classmethod_o�1TestDescriptions.test_bound_builtin_classmethod_oHs'������/�/��0F�0F�G�H�	Jr%c��[R"S5nURnURUR	U5S5 g)N�	_testcapiz-func_with_unrepresentable_signature(a, b=<x>))r�
import_module�#func_with_unrepresentable_signaturer�r�)rrrW�builtins   r&�2test_module_level_callable_unrepresentable_default�CTestDescriptions.test_module_level_callable_unrepresentable_defaultLs=��"�/�/��<�	��?�?������/�/��8�;�	=r%c��URUR[R5S5 [R
"S5nURnURURUR5S5 g)Nz9maketrans(x, y=<unrepresentable>, z=<unrepresentable>, /)rWzstaticmeth(a, b=<x>))r�r�r��	maketransrrX�%DocStringUnrepresentableSignatureTest�
staticmeth�rrrW�clss   r&�1test_builtin_staticmethod_unrepresentable_default�BTestDescriptions.test_builtin_staticmethod_unrepresentable_defaultTsd��	
����/�/��
�
�>�G�	I�!�/�/��<�	��=�=������/�/����?�"�	$r%c��URUR[R5S5 [R
"S5nURnURURUR5S5 g)NzIpop(self, key, default=<unrepresentable>, /) unbound builtins.dict methodrWzVmeth(self, /, a, b=<x>) unbound _testcapi.DocStringUnrepresentableSignatureTest method)r�r�r��poprrXr_�methras   r&�3test_unbound_builtin_method_unrepresentable_default�DTestDescriptions.test_unbound_builtin_method_unrepresentable_default^sk��	
����/�/����9�
+�	,�"�/�/��<�	��=�=������/�/����9�
E�	Fr%c��URUR0R5S5 [R"S5nUR5nURURUR5S5 g)NzGpop(key, default=<unrepresentable>, /) method of builtins.dict instancerWzQmeth(a, b=<x>) method of _testcapi.DocStringUnrepresentableSignatureTest instance)r�r�rfrrXr_rg)rrrW�objs   r&�1test_bound_builtin_method_unrepresentable_default�BTestDescriptions.test_bound_builtin_method_unrepresentable_defaultjsn��	
����/�/����7�
/�	0�"�/�/��<�	��=�=�?������/�/����9�
Q�	Rr%c��[R"S5nURnURSnUR	URU5S5 g)NrW�	classmethz[classmeth(type, /, a, b=<x>) unbound _testcapi.DocStringUnrepresentableSignatureTest method)rrXr_rIr�r�)rrrWrb�descrs    r&�8test_unbound_builtin_classmethod_unrepresentable_default�ITestDescriptions.test_unbound_builtin_classmethod_unrepresentable_defaultvsO��"�/�/��<�	��=�=�����[�)������/�/��6�
E�	Fr%c��[R"S5nURnURUR	UR
5S5 g)NrWzSclassmeth(a, b=<x>) class method of _testcapi.DocStringUnrepresentableSignatureTest)rrXr_r�r�roras   r&�6test_bound_builtin_classmethod_unrepresentable_default�GTestDescriptions.test_bound_builtin_classmethod_unrepresentable_default�sC��"�/�/��<�	��=�=������/�/��
�
�>�
>�	?r%c��"SS5nSGHup#nURU5 X!RlURUR	UR5SU-5 URUR	U"5R5SU-S-5 X!R
RlURUR	UR
5SU-S-5 X!RlURUR	UR5SU-5 SSS5 GM! g!,(df   GM4=f)	Nc�:�\rSrSrSr\S5r\S5rSr	g)�:TestDescriptions.test_overridden_text_signature.<locals>.Ci�c��grwr�r<�kwargss  r&rg�?TestDescriptions.test_overridden_text_signature.<locals>.C.meth�s��r%c��grwrrzs  r&�cmeth�@TestDescriptions.test_overridden_text_signature.<locals>.C.cmeth����r%c��grwrrzs  r&�smeth�@TestDescriptions.test_overridden_text_signature.<locals>.C.smeth�r�r%rN)
rr r!r"rg�classmethodr~�staticmethodr�r$rr%r&r�rx�s+��
�
�
��
�
�
��
r%r�))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�rgz0 method of test.test_pydoc.test_pydoc.C instancer~z- class method of test.test_pydoc.test_pydoc.Cr�)rWrg�__text_signature__r�r�r~�__func__r�)rrr��text_signature�unbound�bounds     r&�test_overridden_text_signature�/TestDescriptions.test_overridden_text_signature�s
��	�	�
/
�*�N�U����n�-�,:���)�� � ��!7�!7����!?���(�*�� � ��!7�!7�����!A����)[�[�]�6D��� � �3�� � ��!7�!7����!@��%��*Y�Y�[�-;���*�� � ��!7�!7����!@��'�)�+�.�-�
/
�.�-�s�C>D1�1
E	c�>�"SS5nURURURS5S5 URURUR5S5 UR	S[
R"[
R"U555 g)Nc�$�\rSrSr\S5rSrg)�-TestDescriptions.test_staticmethod.<locals>.Xi�c��g)zA static methodNr�r��ys  r&�sm�0TestDescriptions.test_staticmethod.<locals>.X.sm����r%rN)rr r!r"r�r�r$rr%r&�Xr��s��
�
��
r%r�r�zsm(x, y)
    A static method
zJ
 |  Static methods defined here:
 |
 |  sm(x, y)
 |      A static method
)r�r�rIr�r�r7r�r��rrr�s  r&�test_staticmethod�"TestDescriptions.test_staticmethod�s���	�	�
	
����0�0����D�1A�B�1�	2�	
����0�0����6�9�	�	
�
�
��
�[�[��!�!�!�$�%�	'r%c�>�"SS5nURURURS5S5 URURUR5S5 UR	S[
R"[
R"U555 g)Nc�$�\rSrSr\S5rSrg)�,TestDescriptions.test_classmethod.<locals>.Xi�c��g)zA class methodNr)rbr�s  r&r��/TestDescriptions.test_classmethod.<locals>.X.cm�r�r%rN)rr r!r"r�r�r$rr%r&r�r��s��
�
��
r%r�r�zcm(...)
    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
)r�r�rIr�r�r7r�r�r�s  r&�test_classmethod�!TestDescriptions.test_classmethod�s���	�	�
	
����0�0����D�1A�B�0�	1�	
����0�0����6�9�	�	
�
�
��
�[�[��!�!�!�$�%�	'r%c�|�URUR[R5S5 URUR[R
5S5 URUR[R5S5 URUR[R5S5 g)Nrd�realr<rk)
r�r�rcrd�floatr�rr<�
memoryviewrkrqs r&�test_getset_descriptor�'TestDescriptions.test_getset_descriptor�s���	
����/�/��
�
�>��L�����/�/��
�
�;�V�D�����/�/�	���?��H�����/�/�
���?��Gr%c���URUR[R5S5 URUR[R
5S5 URUR[R
5S5 URUR[R5S5 URUR[R5S5 g)Nr��start�fget�value)r�r��complexr��ranger��slicer�r��
StopIterationr�rqs r&�test_member_descriptor�'TestDescriptions.test_member_descriptor�s���	
����/�/����=�v�F�����/�/����<�g�F�����/�/����<�g�F�����/�/��
�
�>��G�����/�/�
�0C�0C�D�g�Nr%c�n�"SS5nURURUR5S5 g)Nc��\rSrSrSrSrg)�4TestDescriptions.test_slot_descriptor.<locals>.Pointi�r�rN)rr r!r"�	__slots__r$rr%r&�Pointr��s�� �Ir%r�r�)r�r�r�)rrr�s  r&�test_slot_descriptor�%TestDescriptions.test_slot_descriptor�s+��	!�	!�����/�/����8�#�>r%c�t�"SS5nURURURS5S5 g)Nc��\rSrSrSrg)�6TestDescriptions.test_dict_attr_descriptor.<locals>.NSi�rNr�rr%r&�NSr��r�r%r�rI)r�r�rI)rrr�s  r&�test_dict_attr_descriptor�*TestDescriptions.test_dict_attr_descriptor�s3��	�	�����/�/����J�0G�H�#�	%r%c��URUR[[R5R
5S5 URUR[[R5R5S5 URUR[[R5R5S5 URUR[[R5R5S5 g)N�width�debug�major�max)r�r�rro�	hash_infor��flagsr��version_infor��
float_infor�rqs r&� test_structseq_member_descriptor�1TestDescriptions.test_structseq_member_descriptor�s�������/�/��S�]�]�0C�0I�0I�J� �	"�����/�/��S�Y�Y��0E�0E�F� �	"�����/�/��S�5E�5E�0F�0L�0L�M� �	"�����/�/��S�^�^�0D�0H�0H�I��	 r%c�r�[SS5nURURUR5S5 g)N�Box)r��heightz    Alias for field number 0
)rr�r�r�)rrr�s  r&� test_namedtuple_field_descriptor�1TestDescriptions.test_namedtuple_field_descriptors3���� 3�4������0�0����;�>�	r%c�<�URUR[R5S5 URUR[R5S5 URS[R"[R"[555 g)Nzarea
    Area of the rect
z#
 |  area
 |      Area of the rect
)	r�r�r�r�r�r�r7r�r�rqs r&�
test_property�TestDescriptions.test_property
sy������0�0����;�>�	�
	
����0�0����=�@�	�	
�
�
���[�[��!�!�$�'�(�	*r%c�^�"SS5m"U4SjS5nURURUR5S[S35 SURlURURUR5S[S35 S	URlURURUR5S
5 g)Nc��\rSrSrSrSrg)�?TestDescriptions.test_custom_non_data_descriptor.<locals>.Descric��UcU$g�Nr�r�rrrkrbs   r&�__get__�GTestDescriptions.test_custom_non_data_descriptor.<locals>.Descr.__get__����;��K�r%rN)rr r!r"r�r$rr%r&�Descrr�s��
r%r�c�&>�\rSrSrY"5rSrg)�;TestDescriptions.test_custom_non_data_descriptor.<locals>.Xi!rN�rr r!r"�attrr$�r�s�r&r�r�!�
����7�Dr%r�rfzH.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>�Custom descriptorz_.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>
    Custom descriptor
r�zfoo(...)
    Custom descriptor
)r�r�r�rr#�rrr�r�s  @r&�test_custom_non_data_descriptor�0TestDescriptions.test_custom_non_data_descriptors����	�	�
	�	�	
����0�0����8�?�
��S�;W�	X�-���������0�0����8�?�
���;�	�
 ���������0�0����8�;�	r%c�z^�"SS5m"U4SjS5nURURUR5S5 SURlURURUR5S5 SURlURURUR5S	5 g)
Nc� �\rSrSrSrSrSrg)�;TestDescriptions.test_custom_data_descriptor.<locals>.Descri5c��UcU$gr�rr�s   r&r��CTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__get__6r�r%c��SS- g)Nr�rrr�s   r&�__set__�CTestDescriptions.test_custom_data_descriptor.<locals>.Descr.__set__:s	���!�r%rN)rr r!r"r�r�r$rr%r&r�r�5s��
�
r%r�c�&>�\rSrSrY"5rSrg)�7TestDescriptions.test_custom_data_descriptor.<locals>.Xi<rNr�r�s�r&r�r�<r�r%r�r)r�z    Custom descriptor
r�zfoo
    Custom descriptor
)r�r�r�r#rr�s  @r&�test_custom_data_descriptor�,TestDescriptions.test_custom_data_descriptor3s����	�	�	�	�	
����0�0����8�"�=�,���������0�0����8�;�	� ���������0�0����8�;�	r%c��S[4Sjn[R"[RR	U55nURSU5 [R"5R	U5nURSU5 g)Nr�c��# �g7fr�r)�igns r&�
coro_function�=TestDescriptions.test_async_annotation.<locals>.coro_functionMs����s�zasync coro_functionz4async <a name="-coro_function"><strong>coro_function)rcr7r�r��documentr�rE)rrr�r^rgs    r&�test_async_annotation�&TestDescriptions.test_async_annotationLsd��	��	��{�{�5�?�?�3�3�M�B�C���
�
�+�T�2��}�}��'�'�
�6���
�
�B��	r%c��Sn[R"[RRU55nUR	SU5 [R
"5RU5nUR	SU5 g)Nc�# �S7v� g7fr�rrr%r&�an_async_generator�LTestDescriptions.test_async_generator_annotation.<locals>.an_async_generatorYs
����G�s�	zasync an_async_generatorz>async <a name="-an_async_generator"><strong>an_async_generator)r7r�r�rr�rE)rrrr^rgs    r&�test_async_generator_annotation�0TestDescriptions.test_async_generator_annotationXs_��	��{�{�5�?�?�3�3�4F�G�H���
�
�0�$�7��}�}��'�'�(:�;���
�
�L��	r%c�v�Sn[R"5RU5nURSU5 g)Nc��g)za link https://localhost/Nrrr%r&�a_fn_with_https_link�HTestDescriptions.test_html_for_https_links.<locals>.a_fn_with_https_linkfs��r%z3<a href="https://localhost/">https://localhost/</a>)r7rErr�)rrrrgs   r&�test_html_for_https_links�*TestDescriptions.test_html_for_https_linksds2��	��}�}��'�'�(<�=���
�
�A��	
r%c�<�SSKJn [R"U5 g)Nr)�module_none)�test.test_pydocrr7r�)rrrs  r&�test_module_none�!TestDescriptions.test_module_noneps��/�
����%r%rN);rr r!r"rsr�r�r�r�r�r�r�r�r�r�rrr
rrr r#r'r,r0r3r9r<rArDrJrMrQrTr�cpython_onlyr[rcrhrlrqrtr�r�r�r�r�r�r�r�r�r�r�r�rrrrr$rr%r&r�r��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�x�\rSrSrSrSr\R4Sjr\R4Sjr	Sr
SrSrS	r
S
rg)�PydocFodderTestivc�R�UR[RS[5 grlrmrqs r&rs�PydocFodderTest.tearDownwr�r%c��UR5nSupVUbURU5nUbURX55nXEU$)N)rN)r�r)rrr^�	beginline�endliner��
beginindex�endindexs       r&�
getsection�PydocFodderTest.getsectionzsI�����!��&��
�� ����Y�/�J����{�{�7�7�H���)�)r%c�R�[R"5nURU5n[U5nU[R
LaSOSnUR
USUS3S5nURSU5 URSU5 URSU5 URS	U5 URS
U5 URSU5 URSU5 [R(dIURS
U5 URSU5 URSU5 URSU5 OHURSU5 URSU5 URSU5 URSU5 UR
USUS3S5nURSU5 U[R
LaSOSnURSU-U5 URSU5 [R(d7URSU5 URSU5 URSU5 O6URSU5 URSU5 URS U5 UR
US!US3S5nURS"U5 URS#U5 g)$N�defined here�inherited from Bz |  Methods �:zJ |  ----------------------------------------------------------------------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
 |  sin(x, /)z- |  get(...) method of builtins.dict instancez8 |  dict_get = get(...) method of builtins.dict instancez |  sin(object, /)z |  Class methods z |  B_classmethod(x)z* |  B_classmethod_alias = B_classmethod(x))
r7rXrrPrr�rr�rr�rrrbrIr��wherer��notes       r&�test_text_doc_routines_in_class�/PydocFodderTest.test_text_doc_routines_in_class�sB���m�m�o�����c�"���F�#��"%����"6��<N������,�u�g�Q�(?��Q���
�
�;�U�C��
�
�;�U�C��
�
�S�UZ�[��
�
�G��O��
�
�N�PU�V��
�
�A�5�I��
�
�d�fk�l��+�+��M�M�H�%�P��M�M�B�E�J��M�M�F��N��M�M�?��G��M�M�I�5�Q��M�M�C�U�K��M�M�B�E�J��M�M�;�U�C�����*=�e�W�A�(F��X���
�
�n�pu�v��K�M�M�)�r�/_���
�
�@�4�G��O��
�
�f�hm�n��+�+��M�M�Z�\a�b��M�M�e�gl�m��M�M�/�5�1��M�M�I�5�Q��M�M�T�V[�\��M�M�.��6�����*<�U�G�1�(E��W���
�
�,�e�4��
�
�B�E�Jr%c�N�[R"5nURU5n[U5nU[R
LaSOSnUR
USUS3S5nURSU5 URSU5 URSU5 URS	U5 URS
U5 URSU5 URSU5 [R(dIURS
U5 URSU5 URSU5 URSU5 OHURSU5 URSU5 URSU5 URSU5 UR
USUS3S5nURSU5 U[R
LaSOSnURSU-U5 URSU5 UR
USUS3S5nURSU5 URSU5 g)Nr"r#zMethods r$rdzA_method_alias = A_method(self)zB_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.objectzobject_repr = __repr__(self, /)z)count(self, object, /) from builtins.listz#list_count = count(self, object, /)z"__repr__(...) from builtins.objectzobject_repr = __repr__(...)zStatic 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 instancezClass methods zB_classmethod(x)z&B_classmethod_alias = B_classmethod(x))
r7rErrhrr�rr�rrr&s       r&�test_html_doc_routines_in_class�/PydocFodderTest.test_html_doc_routines_in_class�s����m�m�o�����c�"���6�"��"%����"6��<N������(�5�'��(;�V�D���
�
�7��?��
�
�7��?��
�
�O�QV�W��
�
�C�U�K��
�
�J�E�R��
�
�=�u�E��
�
�`�bg�h��+�+��M�M�D�e�L��M�M�>��F��M�M�B�E�J��M�M�;�U�C��M�M�E�u�M��M�M�?��G��M�M�>��F��M�M�7��?�����/�%���(B�F�K���
�
�j�lq�r��K�M�M�)�r�/_���
�
�<�t�C�U�K��
�
�b�di�j�����.���q�(A�6�J���
�
�(�%�0��
�
�>��Fr%c�B�UR[R5 grw)r)r�Drqs r&�)test_text_doc_inherited_routines_in_class�9PydocFodderTest.test_text_doc_inherited_routines_in_class�����,�,�[�]�]�;r%c�B�UR[R5 grw)r,rr/rqs r&�)test_html_doc_inherited_routines_in_class�9PydocFodderTest.test_html_doc_inherited_routines_in_class�r2r%c���[R"5nUR[5n[	U5nURUSS5nUR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
S	U5 UR
S
U5 UR
SU5 UR
SU5 UR
S
U5 [R(d%UR
SU5 UR
SU5 O$UR
SU5 UR
SU5 UR
SU5 UR
SU5 [R(dIUR
SU5 UR
SU5 UR
SU5 UR
SU5 OHUR
SU5 UR
SU5 UR
SU5 UR
SU5 [R(dUR
SU5 gUR
SU5 g)N�	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 methodz
    sin(x, /)z    sin(object, /))	r7rXrFrrPrr�rr�rrrIr�r�s    r&� test_text_doc_routines_in_module�0PydocFodderTest.test_text_doc_routines_in_module�s����m�m�o�����{�+���F�#�������V�<���
�
�A�5�I��
�
�0�%�8��
�
�G��O��
�
�>��F��
�
�O�QV�W��
�
�O�QV�W��
�
�;�U�C��
�
�G��O��
�
�G��O��
�
�E�u�M��
�
�X�Z_�`��+�+��M�M�Z�\a�b��M�M�e�gl�m��M�M�I�5�Q��M�M�T�V[�\�	
�
�
�*�E�2��
�
�6��>��+�+��M�M�R�TY�Z��M�M�_�af�g��M�M�P�RW�X��M�M�^�`e�f��M�M�S�UZ�[��M�M�`�bg�h��M�M�L�e�T��M�M�Z�\a�b��+�+��M�M�/�5�1��M�M�.��6r%c���[R"5nUR[5n[	U5nURUSS5nUR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
SU5 UR
S	U5 UR
S
U5 UR
SU5 UR
SU5 [R(d%UR
S
U5 UR
SU5 O$UR
SU5 UR
SU5 UR
SU5 UR
SU5 [R(dIUR
SU5 UR
SU5 UR
SU5 UR
SU5 OHUR
SU5 UR
SU5 UR
SU5 UR
SU5 [R(dUR
SU5 gUR
SU5 g)Nz
 Functionsz& 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 methodz
 sin(x, /)z sin(object, /))	r7rErFrrhrr�rrr9s    r&� test_html_doc_routines_in_module�0PydocFodderTest.test_html_doc_routines_in_modules����m�m�o�����{�+���6�"�������d�;���
�
�>��F��
�
�-�u�5��
�
�D�e�L��
�
�:�E�B��
�
�L�e�T��
�
�L�e�T��
�
�8�%�@��
�
�D�e�L��
�
�D�e�L��
�
�B�E�J��
�
�U�W\�]��+�+��M�M�W�Y^�_��M�M�b�di�j��M�M�F��N��M�M�Q�SX�Y��
�
�'��/��
�
�3�U�;��+�+��M�M�O�QV�W��M�M�\�^c�d��M�M�M�u�U��M�M�[�]b�c��M�M�P�RW�X��M�M�]�_d�e��M�M�I�5�Q��M�M�W�Y^�_��+�+��M�M�,��.��M�M�+�U�3r%rN)rr r!r"rsrrr�r)r,r0r4r:r=r$rr%r&rrvsA��3�*�3>�-�-�(K�T3>�-�-� G�D<�<�,7�\+4r%rz/Socket server not available on Emscripten/WASI.c�$�\rSrSrSrSrSrSrg)�PydocServerTesti1zTests for pydoc._start_serverc�R�UR[RS[5 grlrmrqs r&rs�PydocServerTest.tearDown7r�r%c	�8^�Sn[R"USSS9mURTRS5 UR	TR
5 UR
U4Sj5 URSTR5 UR
[5 URS[[RRTRS55R55 URS[[RRTRS	55R55 TR5 UR!TR
5 UR#TR$5 UR#TR5 g)
Nc��SU<SU<S3nU$)Nzthe URL sent was: (z, �)r)r��content_typer^s   r&�my_url_handler�3PydocServerTest.test_server.<locals>.my_url_handler=s��36��E�D��Kr%�	localhostr)�hostname�portc�J>�TR(aTR5$S$rw)�serving�stop)�serverthreads�r&r�-PydocServerTest.test_server.<locals>.<lambda>Is���<�+?�+?�L�%�%�'�I�T�Ir%s$the URL sent was: (/test, text/html)z/tests'the URL sent was: (/test.css, text/css)z	/test.css)r7�
_start_serverr��errorr�rMr�r�r�rrr�r��urljoin�readrNr�r��	docserver)rrrGrOs  @r&�test_server�PydocServerTest.test_server:s<���	��*�*�� ����
	
����+�+�T�2�����,�,�-����I�	�	
�
�
�k�<�#3�#3�4����
�#����3��F�L�L�(�(��)9�)9�7�C�D�I�I�K�	�	
���6��F�L�L�(�(��)9�)9�;�G�H�M�M�O�	�
	��������-�-�.����,�0�0�1����,�*�*�+r%rN)rr r!r"r#rsrVr$rr%r&r@r@1s��
(�3� ,r%r@c�$�\rSrSrSrSrSrSrg)�PydocUrlHandlerTesti]zTests for pydoc._url_handlerc��[RnUR[USS5 UR[USS5 g)Nr�r)r��foobar)r7r�r��	TypeError)rrrfs  r&�test_content_type_err�)PydocUrlHandlerTest.test_content_type_err`s5���������)�Q��R�0����)�Q��X�6r%c�N�/SQnUR[RS[5 UR	5 UHup#URX#5 M SSS5 [[RS'g!,(df   N&=f![[RS'f=f)N))r)�Pydoc: Index of Modules)zget?key=r`)rr`)rGz
Pydoc: Topics)rEzPydoc: Keywords)r7�Pydoc: module pydoc)z
get?key=pydocra)zsearch?key=pydocr�)z
topic?key=defzPydoc: KEYWORD def)ztopic?key=STRINGSzPydoc: TOPIC STRINGS)r[zPydoc: Error - foobarr7)rnrorpr7r�r�)rr�requestsr�ras    r&�test_url_requests�%PydocUrlHandlerTest.test_url_requestses|����	
�
�
�c�k�k�'�*�E�2�	)��,�,�.�"*�J�C��)�)�#�5�#+�/�
$)�C�K�K�� �/�.��
$)�C�K�K�� �s"�B�A:�B�:
B�B�B$rN)rr r!r"r#r]rcr$rr%r&rYrY]s��&�7�
)r%rYc�,�\rSrSrSrSrSrSrSrg)�
TestHelperi�c�^^�[U5mUU4Sjn[5m[R"TS9n[R
RRUSU5 UR5 SSS5 SSS5 TR5R5RSS9$!,(df   NA=f!,(df   NJ=f)zn
Given a list of inputs, run an interactive help session.  Returns a string
of what would be shown on screen.
c�>�TRU5 [T5nTRU[R-5 U$rw)r��nextrTr+)�prompt�
next_input�
input_iterrJs  ��r&�mock_getline�9TestHelper.mock_interactive_session.<locals>.mock_getline�s4����L�L�� ��j�)�J��L�L��b�j�j�0�1��r%r'�getlineNF)�keepends)�iterrr7r(r�r�r�r�interactr*r9r�)rr�inputsrmr-rlrJs    @@r&�mock_interactive_session�#TestHelper.mock_interactive_session�s����
�&�\�
�	��
�&��\�\��0�F����$�$�+�+�F�I�|�L����!�M����� �&�&�(�3�3�U�3�C�C�	M�L���
�s$�AB<�B+�0B<�+
B9	�5B<�<
C
c��UR[[RR5[[
R55 grw)r��sortedr7r(rE�keyword�kwlistrqs r&�
test_keywords�TestHelper.test_keywords�s-��������� 5� 5�6�����/�	1r%c�N�URUR/SQ5/SQ5 g)N)r)z    �quit)rz
help>     z
help> quit)r�rtrqs r&�"test_interact_empty_line_continues�-TestHelper.test_interact_empty_line_continues�s"������)�)�*>�?�2�	
r%c��/SQnUHAnURUS9 URURU/5SU3/5 SSS5 MC g!,(df   MU=f)N)r}�q�exit)�quit_commandr)rWr�rt)rr�
quit_commands�quit_cmds   r&� test_interact_quit_commands_exit�+TestHelper.test_interact_quit_commands_exit�sY��-�
�%�H����8��4�� � ��1�1�8�*�=��h�Z�(�)��5�4�&�4�4�s�'A
�
A	rN)	rr r!r"rtrzr~r�r$rr%r&rfrf�s��D�*1�
�r%rfc��\rSrSrSr\R"\"\S5=(a \R"5S5\
S55r\R"\"\S5=(a \R"5S5\
S55r\R"\"\S5=(a \R"5S5\
S55r
\R"\"\S5=(a \R"5S5\
S55rS	rS
rg)�PydocWithMetaClassesi�c�R�UR[RS[5 grlrmrqs r&rs�PydocWithMetaClasses.tearDown�r�r%r�r�c�2�"SS[5n"SSUS9n[S[55n[5n[R
"US9nU"U5 [[4USS--nUR5R5nURXg5 g)	Nc�(^�\rSrSrU4SjrSrU=r$)�=PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.Metai�c�0>�US:Xag[TU]U5$)N�ham�spam��super�__getattr__�rrr�r�s  �r&r��IPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.Meta.__getattr__�s����5�=�!��w�*�4�0�0r%r)rr r!r"r�r$�
__classcell__�r�s@r&�Metar��s
���
1�
1r%r�c�8�\rSrSr\R
S5rSrg)�;PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DAi�c��g)N�eggsrrqs r&r��?PydocWithMetaClasses.test_DynamicClassAttribute.<locals>.DA.ham�s��r%rN)rr r!r"r��DynamicClassAttributer�r$rr%r&�DAr��s��
�
(�
(�
�)�
r%r���	metaclassc3�># �UHnU(aSU-OSv� M g7f)z	
 |      r)Nrr+s  r&r.�BPydocWithMetaClasses.test_DynamicClassAttribute.<locals>.<genexpr>�s&���.I�/G�!�CD�l�Q�.>��.K�/G�r/r'r.)rr��expected_data_docstringsrr7r(�!expected_dynamicattribute_patternrr*r9r�)rrr�r�r�rJr-r�r�s        r&�test_DynamicClassAttribute�/PydocWithMetaClasses.test_DynamicClassAttribute�s���	1�4�	1�
	�4�	�).�.I�/G�.I�)I�%�������V�,���r�
�9���;�B�Q�?�?�A�
����"�(�(�*������/r%c��"SS[5n"SSUS9n[5n[R"US9nU"U5 [[
-nUR
5R5nURXV5 g)Nc�.^�\rSrSrSrU4SjrSrU=r$)�HPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Metai�c�
�/SQ$)N)r�r r�LIFEr�rbs r&�__dir__�PPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__dir__�s��F�Fr%c�0>�US:Xag[TU]U5$)Nr�r�)r��_Meta__getattrr�s  �r&r��TPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Meta.__getattr__�s����&�=���w�(��.�.r%r�rr r!r"r�r�r$r�r�s@r&r�r��s���
G�
/�
/r%r�c��\rSrSrSrg)�IPydocWithMetaClasses.test_virtualClassAttributeWithOneMeta.<locals>.Classi�rNr�rr%r&�Classr��r�r%r�r�r')	rrr7r(�"expected_virtualattribute_pattern1rr*r9r�)rrr�r�rJr-r�r�s       r&�%test_virtualClassAttributeWithOneMeta�:PydocWithMetaClasses.test_virtualClassAttributeWithOneMeta�sc��	/�4�	/�	�d�	�������V�,���u�
�:�X�E�
����"�(�(�*������/r%c�^
^�"SS[5m
"SS[5m"U
U4SjST
T5n"SST
S	9n"S
SX!S	9n[5n[R"US9nU"U5 [[
-nUR
5R5nURXg5 [5n[R"US9nU"U5 [[
-nUR
5R5n	URX�5 g)
Nc�.^�\rSrSrSrU4SjrSrU=r$)�IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1i�c�
�/SQ$)N)r�r rr�rr�s r&r��QPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__dir__����E�Er%c�0>�US:Xag[TU]U5$)Nr�r�r�r�s  �r&r��UPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta1.__getattr__������%�<���w�*�4�0�0r%rr�r�s@r&�Meta1r������
F�
1�
1r%r�c�.^�\rSrSrSrU4SjrSrU=r$)�IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2i�c�
�/SQ$)N)r�r r�tworr�s r&r��QPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__dir__�r�r%c�0>�US:Xag[TU]U5$)Nr�r.r�r�s  �r&r��UPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta2.__getattr__�r�r%rr�r�s@r&�Meta2r��r�r%r�c�8>^�\rSrSrUU4SjrU4SjrSrU=r$)�IPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3i�c
�>�[[[/SQTRU5-TRU5-555$)N)r�r r�three)r`rwr7r�)rbr�r�s ��r&r��QPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__dir__�sC����F�3�D��M�M�#�&�'�).���s�);�<�$=�>�?�?r%c�0>�US:Xag[TU]U5$)Nr�r/r�r�s  �r&r��UPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Meta3.__getattr__�s����'�>���w�*�4�0�0r%rr�)r�r�r�s@��r&�Meta3r��s���
?�
1�
1r%r�c��\rSrSrSrg)�JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class1i�rNr�rr%r&�Class1r��r�r%r�r�c��\rSrSrSrg)�JPydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta.<locals>.Class2i�rNr�rr%r&�Class2r��r�r%r�r')
rrr7r(�"expected_virtualattribute_pattern2rr*r9r��"expected_virtualattribute_pattern3)rrr�r�r�rJr-�expected_text1�result1�expected_text2�result2r�r�s          @@r&�%test_virtualClassAttributeWithTwoMeta�:PydocWithMetaClasses.test_virtualClassAttributeWithTwoMeta�s����	1�D�	1�	1�D�	1�	1�	1�E�5�	1�	�u�	�	�V�	�������V�,���v��;�h�F���/�/�#�)�)�+������1�������V�,���v��;�h�F���/�/�#�)�)�+������1r%c��"SS[5n"SSUS9n[5n[R"US9nU"U5 [[
-nUR
5R5nURXV5 g)Nc��\rSrSrSrSrg)�.PydocWithMetaClasses.test_buggy_dir.<locals>.Mi	c�
�/SQ$)N)r�r�missing�hererr�s r&r��6PydocWithMetaClasses.test_buggy_dir.<locals>.M.__dir__	s��C�Cr%rN)rr r!r"r�r$rr%r&�Mr�	s��
Dr%r�c��\rSrSrSrSrg)�.PydocWithMetaClasses.test_buggy_dir.<locals>.Ci	zpresent!rN)rr r!r"r�r$rr%r&r�r�	s���Dr%r�r�r')	rrr7r(�!expected_missingattribute_patternrr*r9r�)rrr�r�rJr-r�r�s       r&�test_buggy_dir�#PydocWithMetaClasses.test_buggy_dir	se��	D��	D�	�!�	�������V�,���q�	�9�H�D�
����"�(�(�*������/r%c��[5n[R"S5 SSS5 WR5nUR	SU5 g!,(df   N1=f)Nz	enum.Enumz
class Enum)rr7r)r*r�)rrr�rls   r&�test_resolve_false�'PydocWithMetaClasses.test_resolve_false	sB���
�'��J�J�{�#���#�#�%���
�
�l�H�-��
�s�A
�
ArN)rr r!r"rsr�rPrQror�rr�r�r�r�r�r$rr%r&r�r��s��3��_�_�W�S�*�-�@�#�,�,�.�H�J��0��J�0�(�_�_�W�S�*�-�@�#�,�,�.�H�J��0��J�0�"�_�_�W�S�*�-�@�#�,�,�.�H�J��'2��J�'2�R�_�_�W�S�*�-�@�#�,�,�.�H�J��0��J�0�.r%r�c�B�\rSrSrSrSSjrSrSrSrSr	S	r
S
rg)�TestInternalUtilitiesi 	c�L�[R"5nURUl[R
R
URS5UlURUR5 [R"5=UlnS[RU/Ul
g)N�nonexistentr))r��TemporaryDirectoryr��argv0dirrTrUr��argv0r��cleanup�getcwd�
abs_curdir�curdir�curdir_spellings)rr�tmpdirr�s   r&rW�TestInternalUtilities.setUp"	sj���,�,�.������
��W�W�\�\�&�+�+�}�=��
�������'�')�y�y�{�2���*�!#�R�Y�Y�
� ;��r%Nc�L�UcURn[R"X5$rw)r�r7�_get_revised_path)rr�
given_pathr�s   r&r�'TestInternalUtilities._get_revised_path*	s#���=��J�J�E��&�&�z�9�9r%c���[RR5nURH5n[	URU55HnUR
U5 M M7 U$rw)rorU�copyr�r��countr�)rr�
clean_path�spelling�__s    r&�_get_starting_path�(TestInternalUtilities._get_starting_path1	sQ���X�X�]�]�_�
��-�-�H��J�,�,�X�6�7���!�!�(�+�8�.��r%c��UR5nUR/U-nURURU5U5 grw)rr�r�r)rrr	�
expected_paths   r&�,test_sys_path_adjustment_adds_missing_curdir�BTestInternalUtilities.test_sys_path_adjustment_adds_missing_curdir9	s<���,�,�.�
����)�J�6�
�����/�/�
�;�]�Kr%c��UR5nUR/U-nUR/U-nURUR	U5U5 XR/-nURUR	U5U5 grw)rr�r�r�r)rrr	r�leading_argv0dir�trailing_argv0dirs     r&�*test_sys_path_adjustment_removes_argv0_dir�@TestInternalUtilities.test_sys_path_adjustment_removes_argv0_dir>	sy���,�,�.�
����)�J�6�
� �M�M�?�Z�7������/�/�0@�A�=�Q�&�-�-��8������/�/�0A�B�M�Rr%c�^�U4SjnTR5nTR/U-nTR/U-nTRU"U5U5 UTR/-nTR/U-nTRU"U5U5 g)Nc�@>�TRU[RS9$)N)r�)rr7r8)rrrs �r&r�\TestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dir.<locals>._get_revised_pathG	s����)�)�*�E�N�N�)�K�Kr%)rr�r�r�)rrrr	rrrs`     r&�+test_sys_path_adjustment_protects_pydoc_dir�ATestInternalUtilities.test_sys_path_adjustment_protects_pydoc_dirF	s����	L��,�,�.�
� �M�M�?�Z�7�����)�,<�<�
����*�+;�<�m�L�&�$�-�-��8�����)�,=�=�
����*�+<�=�}�Mr%c���UR5nURH�nURUS9 U/U-nURUR	U55 X/-nURUR	U55 UR
/U-nURUR	U55 X@R
/-nURUR	U55 SSS5 M� g!,(df   M�=f)N)�curdir_spelling)rr�rWr�rr�)rrr	r
�leading_curdir�trailing_curdirrrs       r&�5test_sys_path_adjustment_when_curdir_already_included�KTestInternalUtilities.test_sys_path_adjustment_when_curdir_already_includedQ	s����,�,�.�
��-�-�H����h��7�"*��j�!8���!�!�$�"8�"8��"H�I�",�z�"9���!�!�$�"8�"8��"I�J�$(�M�M�?�^�#C� ��!�!�$�"8�"8�9I�"J�K�$3�}�}�o�$E�!��!�!�$�"8�"8�9J�"K�L�8�7�.�7�7�s�B+C'�'
C6	)r�r�r�r�rw)rr r!r"rWrrrrrr r$rr%r&r�r� 	s)��<�:��L�
S�	N�Mr%r�c��[R"5n[R"[R/UQ76 [R"[
5 grw)r
�threading_setupr��addModuleCleanup�threading_cleanupr)�thread_infos r&�setUpModuler'`	s8��"�2�2�4�K����.�@�@�O�;�O����m�,r%�__main__)drHrTror��importlib.utilr�r�r�r7r�rxrr�rNr{r��test.support�testr&r�rAr��
unittest.mock�urllib.parser��	xml.etreer��xml.etree.ElementTreer4r�collectionsr�urllib.requestrrrrr	�test.support.script_helperr
rrr
rrrrrrr�test.support.os_helperrrrrrrr�HAVE_DOCSTRINGSr�r9r�r�r�r��expected_html_data_docstringsr3r+r�r`r�r�r�r�r�rArCrLrPrYr[rbrh�TestCaserjr�rSr�r�r�rrPr@rYrfr�r�r'r�mainrr%r&�<module>r8s����	�
����	������	������
��������"�.��&�"�M�M�)�E�E�E�<�;�%�'�	�	��<�<��� ��
 0��\�x
�E�G�y�|!&�&I�/G�&I�!I��M��^!&�&I�/G�&I�!I��,�-4�G�D�"�*�*�,E��N��%� 
�E�G�!"�$&�
�E�G�#�&�
�E�G�#�&�,
�E�G�-#�0%�
�E�G�"����"��	��	� �H�%�%� �Fx3�8�$�$�x3�v[)�m�[)�|��/�T�/�m&�x�(�(�m&�`x4�h�'�'�x4�v
�����W�5��%,�h�'�'�%,�	�%,�P!)�-�!)�H(��"�"�(�Vq.�8�,�,�q.�h=M�H�-�-�=M�@-��z���M�M�O�r%

Youez - 2016 - github.com/yon3zu
LinuXploit