Current File : //opt/imh-python/lib/python2.7/test/test_inspect.pyo
�
��Wc@s�ddlZddlZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZmZede
fde��%ddlmZddlmZWdQXyddlZWnek
r�dZnXejZejd-�red ZnddlZyddWnejZnXej�Zd
ejfd��YZ d�Z!de fd��YZ"de fd��YZ#dejfd��YZ$de$fd��YZ%de$fd��YZ&de$fd��YZ'de$fd��YZ(de)fd��YZ*d e)fd!��YZ+d"�Z,d#ejfd$��YZ-d%ejfd&��YZ.d'e.fd(��YZ/d)e/fd*��YZ0d+�Z1e2d,kr�e1�ndS(.i����N(tUserList(tUserDict(trun_unittesttcheck_py3k_warningsthave_unicodes*tuple parameter unpacking has been removedtquiet(tinspect_fodder(tinspect_fodder2tctoiit
IsTestBasecBsYeZeejejejejejej	ej
ejejej
g
�Zd�ZRS(cCs�t|�}|j||�d|j|f�xe|jt|g�D]M}|tjkrp|tjkrpqFn|j||�d|j|f�qFWdS(Ns%s(%s)s
not %s(%s)(	tevalt
assertTruet__name__t
predicatestsettinspecttisgeneratorfunctiont
isfunctiontassertFalse(tselft	predicatetexptobjtother((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytistest6s#(R
t
__module__RRt	isbuiltintisclasstiscodetisframeRtismethodtismoduletistracebacktisgeneratorRRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR
0s
ccs xtd�D]}|Vq
WdS(Ni(txrange(Rti((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytgenerator_function_example@stTestPredicatescBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsKttd�tt���}d}d||f}|j|||�dS(NcSs
|jd�S(Ntis(t
startswith(tx((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt<lambda>Fsis#There are %d (not %d) is* functions(tlentfiltertdirRtassertEqual(Rtcounttexpectedterr_msg((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_sixteenEscCs�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd	�|jtj	d
�|jtj	d�|jtj
d�|jtjd
�tt
d�r|jtjd�n"|jtjttj�j��tt
d�rc|jtjd�n|jtjtjj��dS(Nssys.exits	[].appendsmod.spam.func_codestb.tb_framesmod.spamsmod.StupidGit.abuses	git.arguetmodttbs__builtin__.file.closeds__builtin__.file.softspaces(x for x in xrange(2))R%tGetSetDescriptorTypestype(tb.tb_frame).f_localstMemberDescriptorTypesdatetime.timedelta.days(RRRRRRRR R!tisdatadescriptorR"RthasattrttypestisgetsetdescriptorRttypeR4ttb_frametf_localstismemberdescriptortdatetimet	timedeltatdays(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_excluding_predicatesNs(
"cCs6|jtjtj��|jtjgj��dS(N(RRt	isroutineR3tspamR/(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_isroutinefscCs�|jtjd�|jtjt��dtfd��Y}|jtj|��dtfd��Y}|jtj|���dS(Ns
mod.StupidGittnewstylecBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRFnst
CustomGetattrcBseZd�ZRS(cSsdS(N(tNone(Rtattr((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt__getattr__rs(R
RRJ(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRGqs(RRRRtlisttobjectR(RRFRG((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_isclassjscCsadtfd��Y}|�}d|_ttj|��}|jd|�|jd|�dS(NtCcBseZdZRS(tatb(RORP(R
Rt	__slots__(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRNwsi*RORP(RLROtdictRt
getmemberstassertIntassertNotIn(RRNR)tmembers((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_get_slot_membersvs		cs�ddlm�m�dtf��fd��Y}d|fd��Y}|�}|jtj|��|jtj|��|jtj|��|jtjt��|jtjd��dS(Ni����(tABCMetatabstractmethodtAbstractClassExamplecseZ�Z�d��ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytfoo�s(R
Rt
__metaclass__R[((RXRY(sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRZ�stClassExamplecBseZd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR[�s(R
RR[(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR]�si(	tabcRXRYRLRRt
isabstractRtint(RRZR]RO((RXRYsj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_isabstract�s	(R
RR2RBRERMRWRa(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR&Ds						
tTestInterpreterStackcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cOs-tjj|||�tjddd�dS(Niii	(tunittesttTestCaset__init__tgittabuse(Rtargstkwargs((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRe�scCs*|jtjd�|jtjd�dS(Ns	git.ex[2]smod.fr(RRR!R(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_abuse_done�scCs�|jttj�dk�|jtjddtdddgdf�|jtjddtddd	gdf�|jtjd
dtddd
gdf�|jtjddtdddgdf�dS(Niiiiteggss    st = inspect.stack()
i	RDs    eggs(b + d, c + f)
ii+targues            spam(a, b, c)
ii'Rgs        self.argue(a, b, c)
(RR+R3tstR.tmodfile(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_stack�scCs�|jttj�d�|jtjddtdddgdf�|jtjddtddd	gdf�|jtjd
dtddd
gdf�dS(Niiii+Rls            spam(a, b, c)
i	RDs    eggs(b + d, c + f)
iiRks    q = y // 0
(R.R+RfttrRn(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_trace�scCs�tjtj�\}}}}|j|ddg�|j|d�|j|d�|j|idd6dd6dd6�|jtj||||�d�dS(NR)tyitpis(x=11, y=14)(RtgetargvaluesR3tfrR.RHtformatargvalues(RRhtvarargstvarkwtlocals((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_frame�s%cCs�tjtjj�\}}}}|j|ddddddggg�|j|d�|j|d�|jtj||||�d	�dS(
NRORPRtdtetftgths2(a=7, b=8, c=9, d=3, (e=4, (f=5,)), *g=(), **h={})(RRtR3Rutf_backR.Rv(RRhRwRxRy((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_previous_frame�s!((R
RReRjRoRqRzR�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRb�s							t
GetSourceBasecBs)eZdZd�Zd�Zd�ZRS(cOsJtjj|||�ttj|j���}|j�|_WdQXdS(N(	RcRdRetopenRt
getsourcefilet
fodderFiletreadtsource(RRhRitfp((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRe�scCs.|jjd�}dj||d|!�dS(Ns
i(R�tsplittjoin(Rttoptbottomtlines((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytsourcerange�scCs)|jtj|�|j||��dS(N(R.Rt	getsourceR�(RRR�R�((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytassertSourceEqual�sN(R
RRHR�ReR�R�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR��s		tTestRetrievingSourceCodecBs�eZeZd�Zd�Zejej	j
dkd�d��Zd�Zd�Z
d�Zd�Zd	�Zd
�Zd�Zd�ZRS(
c	Cstjttj�}|j|dtjfdtjfdtjfdtjfdtjfg�tj	g|D]}|d^qn�}|j|tjdftjtjtjffgtjdftjtjfftjtjtjffggg�tj	g|D]}|d^qt
�}|j|tjd	ftjd
ftjtjfftjtjtjffggg�dS(NtFesteringGobtMalodorousPerverttParrotDroppingst	StupidGittTiti(((((RRSR3RR.R�R�R�R�tgetclasstreetTrue(Rtclassestclsttree((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getclasses�s.	&	)	cCsAtjttj�}|j|dtjfdtjfg�dS(NRkRD(RRSR3RR.RkRD(Rt	functions((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getfunctions�sis)Docstrings are omitted with -O2 and abovecCsU|jtjt�d�|jtjtj�d�|jtjtj�d�dS(NsA module docstring.sA longer,

indented

docstring.s$Another

docstring

containing

tabs(R.RtgetdocR3R�RfRg(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getdocs
cCs|jtjd�d�dS(NsAn
    indented
    docstring.sAn
indented
docstring.(R.Rtcleandoc(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_cleandocscCs9|jtjt�d�|jtjtj�d�dS(Ns	# line 1
s
# line 20
(R.RtgetcommentsR3R�(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getcommentsscCs�|jtjt�t�|jtjtj�t�|jtjtjj�t�|jtjtjj�t�|jtjt�tjd�|jtjdt
�t�dS(Nt__builtin__(R.Rt	getmoduleR3R�RgtstrtsystmodulesRHRn(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getmodules cCs0|jtjdd�|jtjdd�dS(Nii'ii.(R�RfRgR3R�(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getsource!scCs�|jtjtj�t�|jtjtj�t�d}td|d�}|jtj|�d�ddd|j
ftj|j
<|jtj|�|�dS(Ns2_non_existing_filename_used_for_sourcefile_test.pyRHtexeci(
R.RR�R3RDRnRfRgtcompileRHtco_filenamet	linecachetcache(Rtfntco((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getsourcefile%scCs#|jtjtj�tj�dS(N(R.RtgetfileR3R�t__file__(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getfile.scBs�ddlm}d}||�}ej|<d|_d|_d|jU|jej	|j
j�d�ej|=eje
ddd	��dS(
Ni����(t
ModuleTypet__inspect_dummys<string>tdummys
def x(): passsa=10ttsingle(R9R�R�R�R�t
__loader__t__dict__R.RR�R)t	func_codeR�R�(RR�tnametm((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getmodule_recursion1s		
csvd\��ej�d���fd�}|e_z/i}e��d�|Uej|d�Wd�e_XdS(s4doctest monkeypatches linecache to enable inspections<test>sdef x(): pass
cs*|�kr�jt�S�||�SdS(N(t
splitlinesR�(tfilenametmodule_globals(R�tgetlinesR�(sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytmonkey@s
R�R)N(s<test>sdef x(): pass
(R�R�RHR�RR�(RR�tns((R�R�R�sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_proceed_with_fake_filename<s		(R
RR3R�R�R�RctskipIfR�tflagstoptimizeR�R�R�R�R�R�R�R�R�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR��s	!									tTestDecoratorscBs eZeZd�Zd�ZRS(cCs|jtjdd�dS(Nii(R�tmod2twrapped(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_wrapped_decoratorPscCs|jtjdd�dS(Ni	i
(R�R�tgone(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_replacing_decoratorSs(R
RR�R�R�R�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�Ms	t
TestOnelinerscBsVeZeZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�ZRS(cCs|jtjdd�dS(Ni(R�R�toll(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_oneline_lambdaXscCs|jtjdd�dS(Nii(R�R�ttll(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_threeline_lambda\scCs|jtjdd�dS(Ni!i"(R�R�ttlli(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_twoline_indented_lambdaascCs|jtjdd�dS(Ni%(R�R�tonelinefunc(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_onelinefuncfscCs|jtjdd�dS(Ni(i)(R�R�tmanyargs(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_manyargsjscCs|jtjdd�dS(Ni,i-(R�R�ttwolinefunc(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_twolinefuncpscCs|jtjddd�dS(Nii1(R�R�RO(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_lambda_in_listvscCs|jtjdd�dS(Ni7(R�R�t	anonymous(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_anonymous{s(R
RR�R�R�R�R�R�R�R�R�R�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�Vs							tTestBuggyCasescBs�eZeZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
eje
ed�pqejddkd�d��Zd
�Zd�ZRS(cCs|jtjdd�dS(Ni:i;(R�R�twith_comment(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_with_comment�scCs|jtjddd�dS(Nii?i@(R�R�t
multiline_sig(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_multiline_sig�scCs |jtj�jdd�dS(NiGiH(R�R�tfunc69tfunc71(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_nested_class�scCs|jtjdd�dS(NiM(R�R�tfunc77(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt#test_one_liner_followed_by_non_name�scCs|jtjjdd�dS(NiS(R�R�tcls82tfunc83(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_one_liner_dedent_non_name�scCs|jtjdd�dS(NiXiZ(R�R�tfunc88(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt&test_with_comment_instead_of_docstring�scCs|jtjdd�dS(Ni_ia(R�R�tmethod_in_dynamic_class(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_method_in_dynamic_class�sR�i����s.pycs.pyos,unicodedata is not an external binary modulecCs0|jttjt�|jttjt�dS(N(tassertRaisestIOErrorRR�tunicodedatat
findsource(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_findsource_binary�scCs�dg}t|ddd�}|jttj|�|jttj|�dd||jftj	|j<|j
tj|�|df�|j
tj|�|d�dS(Nsx=1it_dynamically_created_fileR�i(R�R�R�RR�R�RHR�R�R�R.(RR�R�((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt!test_findsource_code_in_linecache�s	cCsYxRddgD]D}td|d�}|jttj|�|jttj|�q
WdS(NR�s<string>sx=1R�(R�R�R�RR�R�(RtfnameR�((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt test_findsource_without_filename�s(s.pycs.pyo(R
RR�R�R�R�R�R�R�R�R�RcR�R8R�R�R�R�R�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR��s									t_BrokenDataDescriptorcBs)eZdZd�Zd�Zd�ZRS(s2
    A broken data descriptor. See bug #1785.
    cGstd��dS(Ns#should not __get__ data descriptors(tAssertionError(Rh((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt__get__�scGs
t�dS(N(tRuntimeError(Rh((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt__set__�scGstd��dS(Ns'should not __getattr__ data descriptors(R�(Rh((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRJ�s(R
Rt__doc__R�RRJ(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR��s		t_BrokenMethodDescriptorcBs eZdZd�Zd�ZRS(s4
    A broken method descriptor. See bug #1785.
    cGstd��dS(Ns%should not __get__ method descriptors(R�(Rh((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR��scGstd��dS(Ns)should not __getattr__ method descriptors(R�(Rh((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRJ�s(R
RRR�RJ(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�s	cCs$gtj|�D]}|d ^qS(Ni(Rtclassify_class_attrs(R�tt((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
attrs_wo_objs�stTestClassesAndFunctionscBsweZd�Zd�Zddddd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
RS(cCs�dd	d��Y}d|fd��Y}d|fd��Y}d||fd��Y}||||f}tj|�}|j||�dS(
NtAcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�stBcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�sRNcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRN�stDcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR	�s((RtgetmroR.(RRRRNR	R0tgot((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_classic_mro�scCs�dtfd��Y}d|fd��Y}d|fd��Y}d||fd��Y}||||tf}tj|�}|j||�dS(	NRcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�sRcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�sRNcBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRN�sR	cBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR	�s(RLRR
R.(RRRRNR	R0R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_newstyle_mro�scCs�tj|�\}}}	}
|j||�|j||�|j|	|�|j|
|�|dk	r�|jtj|||	|
�|�ndS(N(Rt
getargspecR.RHt
formatargspec(Rtroutinetargs_et	varargs_etvarkw_et
defaults_et	formattedRhRwRxtdefaults((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytassertArgSpecEquals�scCsf|jtjddgdd�|jtjddddd	d
gggddd
ddffd�dS(NR)RrRs(x, y)RORPRR{R|R}R~Riiis,(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h)(i(RR3RkRD(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getargspec�s
cCs0dtfd��Y}|j|jdg�dS(NRcBseZd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR��s(R
RR�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�sR(RLRR�(RR((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getargspec_method�scBs_edefdef��>ddU|jedgg�ddU|jedg�WdQXdS(Ns*tuple parameter unpacking has been removeds(parenthesized argument names are invalids"def sublistOfOne((foo,)): return 1R[s%def fakeSublistOfOne((foo)): return 1(Rt
SyntaxWarningRtsublistOfOnetfakeSublistOfOne(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getargspec_sublistofone�s	cCsV|rt}ndd d��Y}d|fd��Y}t|�}|jdd|f|d�|jdd	|f|d
�|jdd|f|d
�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�d|fd��Y}t|�}|jdd|f|d�|jdd	|f|d
�|jdd|f|d
�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�d|fd��Y}t|�}|jdd|f|d�|jdd|f|d�|jdd|f|d
�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�d||fd��Y}t|�}|jdd|f|d�|r�|jdd|f|d�n|jdd	|f|d
�|jdd|f|d
�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�|jdd|f|d�dS(!s~Helper for testing that classify_class_attrs finds a bunch of
        different kinds of attributes on a given class.
        tbasecBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRsRcBsqeZd�Zee�Zd�Zee�Zd�Zee�Zd�Z	d�Z
dZe�Z
e�ZRS(cSsdS(N((((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytsscSsdS(N((R�((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRscSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytgetpscSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�scSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytm1 st1(R
RRtstaticmethodRtclassmethodR tpropertyRsR�R!tdatablobR�tddRtmd(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRs						Rs
static methodsmissing static methodRsclass methodsmissing class methodRsR%smissing propertyR�tmethodsmissing plain methodR!R&tdatasmissing dataR(smissing method descriptorR'smissing data descriptorRcBseZd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�2s(R
RR�(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR1sRNcBseZd�Zd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�@scSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRAs(R
RR�R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRN?s	R	cBseZd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR!Ns(R
RR!(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR	MsN((RLRRT(RRFRRtattrsRRNR	((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt_classify_test
sZ	cCs|jt�dS(s�classify_class_attrs finds static methods, class methods,
        properties, normal methods, and data attributes on an old-style
        class.
        N(R,tFalse(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_classify_oldstyle^scCs|jt�dS(sEJust like test_classify_oldstyle, but for a new-style class.
        N(R,R�(R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_classify_newstylefscCsIxBtt�D]4}tt|�}t|t�r
tj|�q
q
WdS(N(R-R�tgetattrt
isinstanceR;RR(RR�tbuiltin((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_classify_builtin_typeskscCsgddd��Y}|jd|jftj|��|jd|jftj|tj��|�}|jd|jftj|��|jd|jftj|tj��dtfd��Y}|jd|jftj|��|jd|jftj|tj��|�}|jd|jftj|��|jd|jftj|tj��dS(NRcBseZd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR}vs(R
RR}(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRusR}cBseZd�ZRS(cSsdS(N((R((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR}�s(R
RR}(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�s((RTR}RRSRRL(RRRP((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_getmembers_methodss"(	"("(	"N(R
RRR
RHRRRRR,R.R/R3R4(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR�s		
				T			tTestGetcallargsFunctionscBszeZejd�jZdd�Zdd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd	�Zd
�ZRS(s^\.\d+$cCsXt|pid|�}td|d|�}td|d|�}|j||�dS(Ntfuncsfunc(%s)sinspect.getcallargs(func, %s)(RRRRHR.(RR6tcall_params_stringtlocstr1tr2((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytassertEqualCallArgs�s

	cCs�t|pid|�}ytd|d|�Wntk
rE}nX|jd�ytd|d|�Wntk
r�}nX|jd�|jt|�t|��|jt|�t|��dS(NR6sfunc(%s)sException not raisedsinspect.getcallargs(func, %s)(	RRRRHt	ExceptiontfailtassertIsR;R.R�(RR6tcall_param_stringR8tex1tex2((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytassertEqualException�s


c	CsDtdtfdt��&d}t||i|jd6�SWdQXdS(s}Create a function that returns its locals(), excluding the
        autogenerated '.1', '.2', etc. tuple param names (if any).s*tuple parameter unpacking has been removedRsFlambda %s: dict(i for i in locals().items() if not is_tuplename(i[0]))tis_tuplenameN(RRR�RRC(Rt	signaturetcode((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytmakeCallable�s

cCss|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d	�|j|d
�|j|d�|j|d�|j|d
�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�dS(Nsa, b=1t2s2, 3sa=2sb=3, a=2s2, b=3s*(2,)s*[2]s*(2, 3)s*[2, 3]s	**{"a":2}sb=3, **{"a":2}s2, **{"b":3}s**{"b":3, "a":2}s*UserList([2])s*UserList([2, 3])s**UserDict(a=2)s2, **UserDict(b=3)sb=2, **UserDict(a=3)s
**{u"a":2}sb=3, **{u"a":2}s
2, **{u"b":3}s**{u"b":3, u"a":2}(RFR;(RR}((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_plain�s.cCss|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�dS(Ns
a, b=1, *cRGs2, 3s2, 3, 4s*(2,3,4)s	2, *[3,4]s2, 3, *UserList([4])(RFR;(RR}((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_varargs�scCs�|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d	�|j|d
�|j|d�|j|d�|j|d
�dS(Nsa, b=1, **csa=2s2, b=3, c=4s
b=3, a=2, c=4sc=4, **{"a":2, "b":3}s2, c=4, **{"b":3}sb=2, **{"a":3, "c":4}s**UserDict(a=2, b=3, c=4)s2, c=4, **UserDict(b=3)sb=2, **UserDict(a=3, c=4)sc=4, **{u"a":2, u"b":3}s2, c=4, **{u"b":3}sb=2, **{u"a":3, u"c":4}(RFR;(RR}((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt
test_varkw�scCss|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�dS(Ns**cR�sa=1sa=1, b=2sc=3, **{"a": 1, "b": 2}s**UserDict(a=1, b=2)sc=3, **UserDict(a=1, b=2)(RFR;(RR}((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_varkw_only�scCss|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�dS(Ns(b,c), (d,(e,f))=(0,[1,2])s(2,3)s[2,3]sUserList([2,3])s(2,3), (4,(5,6))s(2,3), (4,[5,6])s(2,3), [4,UserList([5,6])](RFR;(RR}((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_tupleargs�scCs�|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�dS(	Ns$a, b=2, (c,(d,e))=(3,[4,5]), *f, **gs2, 3, (4,[5,6]), 7s2, 3, *[(4,[5,6]), 7], x=8s2, 3, x=8, *[(4,[5,6]), 7]s2, x=8, *[3, (4,[5,6]), 7], y=9sx=8, *[2, 3, (4,[5,6])], y=9s4x=8, *UserList([2, 3, (4,[5,6])]), **{"y":9, "z":10}s82, x=8, *UserList([3, (4,[5,6])]), **UserDict(y=9, z=10)(RFR;(RR}((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_multiple_features�scCs|jd�}|jd�}|jd�}|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�|j|d�x�||fD]�}|j|d	�|j|d
�|j|d�|j|d�|j|d
�|j|d�|j|d�|j|d�tri|j|d�n|j|d�|j|d�|j|d�q�W|jd�}|j|d�|j|d�|j|d�|jd�}|j|d�|j|d�dS(NR�sa, bsa, b=1R"sx=1s1,x=1sa=2sb=3s2, 3, 4s1, 2, 3, a=1s2, 3, 4, c=5s2, 3, 4, a=1, c=5sc=2s2, c=3s	2, 3, c=4s2, c=4, b=3s**{u"\u03c0\u03b9": 4}s1, a=2s1, **{"a":2}s	1, 2, b=3s(a,b)=(0,1)s[1]s(1,2,3)s**cs1, 2s1, 2, a=1, b=2(RFRBR(Rtf0tf1tf2R}tf3((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyttest_errors	sBN(R
RtreR�tmatchRCRHR;RBRFRHRIRJRKRLRMRR(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR5�s	
					
			tTestGetcallargsMethodscBseZd�Zd�ZRS(cCs/dtfd��Y}||_|�|_dS(NtFoocBseZRS((R
R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRV:s(RLR�tinst(RRV((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pytsetUp9s	cCs2tt|�j}|d|�|j_|jjS(Nsself, (tsuperRURFR�R)RW(RRDtmk((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRF?s(R
RRXRF(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRU7s	tTestGetcallargsUnboundMethodscBs5eZd�Zdd�Zdd�Zdd�ZRS(cCs tt|�j|�|jjS(N(RYR[RFR�R)(RRD((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRFGscCs%tt|�j|j|||��S(N(RYR[R;t_getAssertEqualParams(RR6R7R8((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR;KscCs%tt|�j|j|||��S(N(RYR[RBR\(RR6R7R8((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyRBOscCs,t|pid|j�}|d||fS(NRWsinst,(RRRW(RR6R7R8((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR\SsN(R
RRFRHR;RBR\(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyR[Es	cCs)tttttttttt	t
�
dS(N(RR�R�R�R�RbRR&R5RUR[(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt	test_mainXs
	t__main__(RR	(3RSR�R9RcRR�R?RRttest.test_supportRRRRR�ttestRR3RR�R�tImportErrorRHR�RntendswithR�t
exc_tracebackR4R�RfRdR
R%R&RbR�R�R�R�R�RLR�RRRR5RUR[R]R
(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_inspect.pyt<module>s\


	

	T/t	*0	��