Current File : //opt/imh-python/lib/python2.7/test/test_pydoc.pyc
�
��Wc@soddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZ
ddlZddlZddlmZddlmZddlmZmZmZmZmZmZddlmZejjr'd"Znd#Zd	j�Z e!d
�eD��Z"dj�Z#e!d�eD��Z$d
Z%dZ&d�Z'd�Z(d�Z)d�Z*dej+fd��YZ,dej+fd��YZ-de,fd��YZ.dej+fd��YZ/ej0ejj1d�dej+fd��Y�Z2dej+fd��YZ3d �Z4e5d!krke4�ndS($i����N(t
namedtuple(tassert_python_ok(tTESTFNtrmtreet
reap_childrentcaptured_stdouttcaptured_stderrtrequires_docstrings(t	pydoc_mods.dictionary for instance variables (if defined)s2list of weak references to the object (if defined)ts�
NAME
    test.pydoc_mod - This is a test module for test_pydoc

FILE
    %s
%s
CLASSES
    __builtin__.object
        B
        C
    A
    
    class A
     |  Hello and goodbye
     |  
     |  Methods defined here:
     |  
     |  __init__()
     |      Wow, I have no function!
    
    class B(__builtin__.object)
     |  Data descriptors defined here:
     |  
     |  __dict__%s
     |  
     |  __weakref__%s
     |  
     |  ----------------------------------------------------------------------
     |  Data and other attributes defined here:
     |  
     |  NO_MEANING = 'eggs'
    
    class C(__builtin__.object)
     |  Methods defined here:
     |  
     |  get_answer(self)
     |      Return say_no()
     |  
     |  is_it_true(self)
     |      Return self.get_answer()
     |  
     |  say_no(self)
     |  
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |  
     |  __dict__
     |      dictionary for instance variables (if defined)
     |  
     |  __weakref__
     |      list of weak references to the object (if defined)

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

DATA
    __author__ = 'Benjamin Peterson'
    __credits__ = 'Nobody'
    __version__ = '1.2.3.4'

VERSION
    1.2.3.4

AUTHOR
    Benjamin Peterson

CREDITS
    Nobody
ccs%|]}|rd|ndVqdS(s

     |      R	N((t.0ts((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pys	<genexpr>mssg
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="test.html"><font color="#ffffff">test</font></a>.pydoc_mod</strong></big></big> (version 1.2.3.4)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:%s">%s</a>%s</font></td></tr></table>
    <p><tt>This&nbsp;is&nbsp;a&nbsp;test&nbsp;module&nbsp;for&nbsp;test_pydoc</tt></p>
<p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="test.pydoc_mod.html#B">B</a>
</font></dt><dt><font face="helvetica, arial"><a href="test.pydoc_mod.html#C">C</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="test.pydoc_mod.html#A">A</a>
</font></dt></dl>
 <p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="A">class <strong>A</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Hello&nbsp;and&nbsp;goodbye<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%%">Methods defined here:<br>
<dl><dt><a name="A-__init__"><strong>__init__</strong></a>()</dt><dd><tt>Wow,&nbsp;I&nbsp;have&nbsp;no&nbsp;function!</tt></dd></dl>

</td></tr></table> <p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="B">class <strong>B</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%">Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>%s</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>%s</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>NO_MEANING</strong> = 'eggs'</dl>

</td></tr></table> <p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="C">class <strong>C</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%">Methods defined here:<br>
<dl><dt><a name="C-get_answer"><strong>get_answer</strong></a>(self)</dt><dd><tt>Return&nbsp;<a href="#C-say_no">say_no</a>()</tt></dd></dl>

<dl><dt><a name="C-is_it_true"><strong>is_it_true</strong></a>(self)</dt><dd><tt>Return&nbsp;self.<a href="#C-get_answer">get_answer</a>()</tt></dd></dl>

<dl><dt><a name="C-say_no"><strong>say_no</strong></a>(self)</dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%"><dl><dt><a name="-doc_func"><strong>doc_func</strong></a>()</dt><dd><tt>This&nbsp;function&nbsp;solves&nbsp;all&nbsp;of&nbsp;the&nbsp;world's&nbsp;problems:<br>
hunger<br>
lack&nbsp;of&nbsp;Python<br>
war</tt></dd></dl>
 <dl><dt><a name="-nodoc_func"><strong>nodoc_func</strong></a>()</dt></dl>
</td></tr></table><p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%"><strong>__author__</strong> = 'Benjamin Peterson'<br>
<strong>__credits__</strong> = 'Nobody'<br>
<strong>__version__</strong> = '1.2.3.4'</td></tr></table><p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%">Benjamin&nbsp;Peterson</td></tr></table><p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%%">Nobody</td></tr></table>
ccs!|]}|jdd�VqdS(t s&nbsp;N(treplace(R
R((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pys	<genexpr>�ss&no Python documentation found for '%s'sCproblem in %s - <type 'exceptions.ImportError'>: No module named %scOs8||f}tdtj||�\}}}|j�S(sW
    Runs pydoc on the specified module. Returns the stripped
    output of pydoc.
    s-B(Rtpydoct__file__tstrip(tmodule_nametargstenvtrctoutterr((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt	run_pydoc�s
!cCsWtj�}|j|�}|jt�p-d}|rGd|d}n|j�|fS(s&Returns pydoc generated output as htmlR	s
<br><a href="s">Module Docs</a>(RtHTMLDoct	docmodulet	getdoclocRR(tmoduletdoctoutputtloc((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytget_pydoc_html�scCsxtj�}|jt�pd}|r8d|d}n|j|�}tjd�}|jd|�}|j�|fS(s&Returns pydoc generated output as textR	s
MODULE DOCS
    s
s.(	RtTextDocRRRtretcompiletsubR(RRRRtpatt((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytget_pydoc_textsc	CsX|jt�}|jt�}tj||dddddd�}ddj|�GHd	S(
s"Prints unified diffs for two textstnitfromfiletexpectedttofiletgots
R	N(t
splitlinestTruetdifflibtunified_difftjoin(ttext1ttext2tlines1tlines2tdiffs((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytprint_diffss
	t
PydocBaseTestcBs)eZdd�Zejdd��ZRS(cs:|ptjjt�g�ddd��fd�}|S(si
        A version of pkgutil.walk_packages() that will restrict itself to
        a given path.
        R	cs�|p�||�S(N((tpathtprefixtonerror(tdefault_patht
walk_packages(sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytwrappersN(tosR7tdirnameRtNone(tselfR;R7R<((R:R;sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt_restricted_walk_packagessccs8tj}|j||�t_z	dVWd|t_XdS(N(tpkgutilR;RA(R@R7R;((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytrestrict_walk_packages#s			N(t__name__t
__module__R?RAt
contextlibtcontextmanagerRC(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR6s
tPydocDocTestcBs�eZeejejjdkd�d���Zeejejjdkd�d���Z	d�Z
d�Zd�Zd�Z
d�Zd	�Zd
�Zejejjdkd�d��ZRS(
is)Docstrings are omitted with -O2 and abovecCs�tt�\}}tjt�}tjdkrNddl}|j|�}n|}t|||ft	}||kr�t
||�|jd�ndS(Ntwin32i����s%outputs are not equal, see diff above(RRtinspectt
getabsfiletsystplatformt
nturl2pathtpathname2urltexpected_html_patterntexpected_html_data_docstringsR5tfail(R@tresulttdoc_loctmod_fileRNtmod_urlt
expected_html((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_html_doc0s
cCs\tt�\}}ttjt�|ft}||krXt||�|jd�ndS(Ns%outputs are not equal, see diff above(R%Rtexpected_text_patternRJRKtexpected_text_data_docstringsR5RR(R@RSRTt
expected_text((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_text_docBs
cCs,ttj�\}}|j|dd�dS(NR	s'MODULE DOCS incorrectly includes a link(R%txmltetreetassertEqual(R@RSRT((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_issue8225NscCs1tj}zdt_tj�Wd|t_XdS(N(RLtstdinR?Rtgetpager(R@tprevious_stdin((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_getpager_with_stdin_noneSs
		cCsjddd��Y}ddd��Y}tj|��}tj|��}|j|jdd�|�dS(NtAcBseZdZRS(i*(RDRE(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyRe^stBcBseZRS((RDRE(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyRf`s(((Rt
render_docR_R
(R@ReRftadoctbdoc((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_non_str_name[s
cCs3d}t|�}t|}|j||d�dS(Nstest.i_am_not_heres&documentation for missing module found(Rtmissing_patternR_(R@tmissing_moduleRSR(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_not_herefs

cCs9d}t|�}t|j�}|j||d�dS(Ns test.i_am_not_here sLwhite space was not stripped from module name or other error output mismatch(RRkRR_(R@RlRSR(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_input_stripms
cCsetj}|j|d�d�|j|d�d�|j|d�d�|j|d�d�dS(Ns<function stripid at 0x88dcee4>s<function stripid>s <function stripid at 0x01F65390>t42s<type 'exceptions.Exception'>(RtstripidR_(R@Rp((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_stripidus	c
Cs�tjj��p}tjj|d�}t|d��}|jd�WdQXtj	|�t
j|i�}|j|d�WdQXdS(Nsdt.pytws$"""
my doc

second line
"""
foo = 1
smy doc(
ttestttest_supportttemp_cwdR=R7R/topentwritet
py_compileR"RtsynopsisR_(R@ttest_dirt	init_pathtfobjRy((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_synopsis�s

s)Docstrings are omitted with -OO and abovec
Cs�tjj���}tjj|d�}tjj|d�}t|d��}|jd�WdQXtj	|�t
j|i�}|j|�t
j|i�}|j|�WdQXdS(Nsfoomod42.pysfoomod42.pycRrsfoo = 1(
RsRtRuR=R7R/RvRwRxR"RRytassertIsNone(R@RzR{tcached_pathR|Rytsynopsis_cached((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt"test_synopsis_sourceless_empty_doc�s

(RDRERtunittesttskipIfRLtflagstoptimizeRXR\R`RdRjRmRnRqR}R�(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyRH.s
						
	tPydocImportTestcBs,eZd�Zd�Zd�Zd�ZRS(cCs&tjt�|_|jtt�dS(N(R=tmkdirRRzt
addCleanupR(R@((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytsetUp�sc	Cs�d}d
dddj|�dj|�fdj|�|ff}tjjt|�tjd	}xt|D]l\}}t|d
��}|jdj|��WdQXt|dt�}t	||f}|j
||�qiWdS(Nt
testmod_xyzzyt
i_am_not_herestest.i_am_not_here_eitherti_am_not_here_eitherstest.i_am_not_here.neither_am_isi_am_not_here.neither_am_isi_am_not_here.{}stest.{}tpyRrs
import {}
t
PYTHONPATH(R�R�(stest.i_am_not_here_eitherR�(stest.i_am_not_here.neither_am_isi_am_not_here.neither_am_i(tformatR=R7R/RtextsepRvRwRtbadimport_patternR_(	R@tmodnamet	testpairstsourcefntimportstringt
expectedinmsgtfRSR(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_badimport�s cCsGtjjtd�}tj|�tjj|d�tjd}t|d��}|jd�WdQX|jdtg���t	��&}t
��}tjd�WdQXWdQX|j
|j�d�|j
|j�d�t	��&}t
��}tjd�WdQXWdQX|j
|j�j�d�|j
|j�d�WdQXdS(	Nt	syntaxerrt__init__R�Rrsinvalid python syntax = $1
R7txyzzyR	(R=R7R/RR�R�RvRwRCRRRtaproposR_tgetvalueR(R@tpkgdirt	badsyntaxR�RR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_apropos_with_bad_package�s 
 cCs�tjjtd�|_tj|jd�|jtj|j�|jdtg��6t	��&}t
��}tjd�WdQXWdQXWdQX|j
|j�d�|j
|j�d�dS(Nt
unreadableiR7tSOMEKEYR	(R=R7R/Rtunreadable_dirR�R�trmdirRCRRRR�R_R�(R@RR((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt test_apropos_with_unreadable_dir�s(RDRER�R�R�R�(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR��s			tTestDescriptionscBs,eZd�Zd�Zd�Zd�ZRS(cCs3ddlm}tj|�}|jd|�dS(Ni����(tpydocfodderR�(RsR�RRgtassertIn(R@R�R((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_module�scCsuddd��Y}|�}|jtj|�d�|jtj|�d�dt}|j|tj|��dS(NtCcBseZdZRS(s
Classic class(RDREt__doc__(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR��ssclass Cs
instance of Csinstance of C in module %s((R_RtdescribeRDR�Rg(R@R�tcR(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_classic_class�s	
cCsxdtfd��Y}|�}|jtj|�d�|jtj|�d�dt}|j|tj|��dS(NR�cBseZdZRS(sNew-style class(RDRER�(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR��ssclass CsC in module %s object(tobjectR_RR�RDR�Rg(R@R�R�R(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_class�s	
cCsztdddgdt�}t��}tj|�WdQX|j�}|jd|�|jd|�|jd|�dS(NtNTtabctdeftrenamet_1t_replacet_asdict(RR,RRthelpR�R�(R@R�thelp_iothelptext((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt!test_namedtuple_public_underscore�s(RDRER�R�R�R�(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR��s				stest requires unicode supporttTestUnicodecBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCs�tjddjd��|_djd�|j_djd�|j_djd�|j_djd�|j_|j|jj	t
�dS(NtQsRational numbers: ℚtutf8sℚ(ttypest
ModuleTypetdecodeR�t__version__t__date__t
__author__t__credits__tassertIsInstanceR�tunicode(R@((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR�	scCs&tj|j�}|j|t�dS(N(RRgR�R�tstr(R@R((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_render_docscCs&|jtj|jjd�d�dS(NtasciisRational numbers: &#8474;(R_Rt_encodeR�R�(R@((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_encodescCs�tj|j�}tjt}t_zOtjj��:tj	|d�|j
td�j�tj|��WdQXWd|t_XdS(Ntpipe(
RRgR�R=tpopenRvRsRtRut	pipepagerR_treadR�(R@Rtsaved((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_pipepagers/cstj�j�}i���fd�}tj|}t_z1tj|d��j�dtj|��Wd|t_XdS(NcsK|j�dd!}�jd|d|j��t|�j��d<dS(Nii����t"tcontent(RR_RvR�(tcmdtfilename(RR@(sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pytmock_system0sR	R�(RRgR�R=tsystemt
tempfilepagerR_R�(R@RR�R�((RR@sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_tempfilepager+s!c
Cs�tj|j�}tjj��jtdd��8}tj|}t_ztj	|�Wd|t_XWdQX|j
dtd�j��WdQXdS(NRRrsRational numbers:(RRgR�RsRtRuRvRLtstdoutt
plainpagerR�R�(R@RR�R�((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_plainpager;scCs�tj|j�}tjj���tjj��jtdd��8}tj	|}t_	ztj
|�Wd|t_	XWdQX|jdtd�j��WdQXWdQXdS(NRRrsRational numbers:(
RRgR�RsRtRutcaptured_stdinRvRLR�tttypagerR�R�(R@RR�R�((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_ttypagerKsc
CsRtjj��'t��}tj|j�WdQXWdQX|j|j�d�dS(Ns
wrote Q.html
(	RsRtRuRRtwritedocR�R_R�(R@R((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_htmlpageXs(
RDRER�R�R�R�R�R�R�R�(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR�s	
						
t
TestHelpercBseZd�Zd�ZRS(cCs)|jttjj�ttj��dS(N(R_tsortedRtHelpertkeywordstkeywordtkwlist(R@((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt
test_keywords`scCs�x_dD]W}|jtj|��ytj|�Wqtk
r]|jdj|��qXqWx:d
D]2}|jtj|��|jttj|�qiWdS(NR�s
str.translates__builtin__.strs__builtin__.str.translatesfinding the doc of {!r} failedtnot__builtin__tstrrrsstrr.translatesstr.trrrranslates__builtin__.strrrs__builtin__.str.trrranslate(sstrs
str.translates__builtin__.strs__builtin__.str.translate(R�R�sstrr.translatesstr.trrrranslates__builtin__.strrrs__builtin__.str.trrranslate(	tassertIsNotNoneRtlocateRgtImportErrorRRR�R~tassertRaises(R@tname((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyttest_builtinds


(RDRER�R�(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyR�_s	cCs/z tjjttttt�Wdt�XdS(N(	RsRttrun_unittestRHR�R�R�R�R(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt	test_mainvst__main__(s.dictionary for instance variables (if defined)s2list of weak references to the object (if defined)(R	R	(6R=RLR-t__builtin__R!RxRRFRJR�RBR�t	xml.etreeR]R�ttest.test_supportRstcollectionsRttest.script_helperRRRRRRRRRttHAVE_DOCSTRINGStexpected_data_docstringsRRYttupleRZRPRQRkR�RRR%R5tTestCaseR6RHR�R�t
skipUnlessthave_unicodeR�R�R�RD(((sh/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pydoc.pyt<module>sZ.	N	
t	
	
					sA#	X