Current File : //opt/imh-python/lib/python2.7/test/test_linecache.pyo
�
��Wc@s�dZddlZddlZddlZddlmZejZ	dZ
dZdZej
�Zejjej�Zdj
�Zejje	�ZdZd	Zd
Zdejfd��YZd
�Zedkr�e�ndS(s  Tests for the linecache module i����N(ttest_supports
!@$)(!@#_1ts,inspect_fodder inspect_fodder2 mapping_testss
linecache abcs3
" Docstring "

def function():
    return result

s%
def f():
    return 1 + 1

a = f()

s
def f():
    return 3tLineCacheTestscBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsztj}|j|td�t�|j|td�t�|jt|td�|j|td�t�|j|td�t�xgtD]_}t	j
jt|�d}x=t
t|��D])\}}|j||||d��q�Wq�WxgtD]_}t	j
jt|�d}x=t
t|��D])\}}|j||||d��q&Wq�Wtjd�}|j|g�dS(	Niii����g�������?is.pysa/b/c/__init__.pyi�(t	linecachetgetlinetassertEqualtFILENAMEtEMPTYtassertRaisest	TypeErrortINVALID_NAMEtTESTStostpathtjoint	TEST_PATHt	enumeratetopentMODULEStMODULE_PATHtgetlines(tselfRtentrytfilenametindextlinetempty((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyttest_getline)s 	
%
%cCsm|jtjtj�ttjd��}|jt�WdQXtjtj�}|j	|dddg�dS(Ntws
s	def f():
s
    return 3
(
t
addCleanuptsupporttunlinktTESTFNRtwritetSOURCE_3RRR(Rtfptlines((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyttest_no_ending_newlineGs
cCs�g}xDtD]<}tjjt|�d}|j|�tj|d�q
Wg|D]}|tjkrT|^qT}|j	|g�tj
�g|D]}|tjkr�|^q�}|j	|g�dS(Ns.pyi(RRR
RRtappendRRtcacheRt
clearcache(RtcachedRRtfntcached_empty((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyttest_clearcacheNs

(
(cCs�tj}tjd}|jtj|�t|d��}|jt�WdQX||d�g}t|��N}xDt	|�D]6\}}|j
||||d��|j|�q}WWdQXt|d��}|jt�WdQXtj
d�x7t	|�D])\}}|j
||||d��q�Wtj
|�t|��N}xDt	|�D]6\}}|j
||||d��|j|�qRWWdQXdS(Ns.pyRitdummy(RRRR RRRR!tSOURCE_1RRR&tSOURCE_2t
checkcache(RRtsource_nametsourcetsource_listRR((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyttest_checkcache^s*	


!
cCs�tjt�}|j|�d�}tjtd|��tjt�}WdQX|j||�tj�tjtd|��tjt�}WdQX|j|g�|jtjt�|�dS(Nc_s
t�dS(N(tMemoryError(targstkwargs((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pytraise_memoryerror�stupdatecache(RRRt
assertTrueRt	swap_attrRR((RR$R8tlines2tlines3((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyttest_memoryerrors
	
(t__name__t
__module__RR%R,R4R>(((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyR's
				!cCstjt�dS(N(Rtrun_unittestR(((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyt	test_main�st__main__(t__doc__Rtunittesttos.pathRttestRRt__file__RR
RRtsplitR
tdirnameRRRR.R/R"tTestCaseRRBR?(((sl/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_linecache.pyt<module>s&	h