403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.164
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python27/lib64/python2.7/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python27/lib64/python2.7/test/test_linecache.pyo
�
�q2_c@s�dZddlZddlZddlZddlmZejZdZ	dZ
dZej�Zej
Zdj�Zejje�ZdZd	Zd
Zdejfd��YZd
�Zedkr�e�ndS(s  Tests for the linecache module i����N(tsupports
!@$)(!@#_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((s8/opt/alt/python27/lib64/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
addCleanupRtunlinktTESTFNRtwritetSOURCE_3RRR(Rtfptlines((s8/opt/alt/python27/lib64/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((s8/opt/alt/python27/lib64/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(RRRRRRRR tSOURCE_1RRR%tSOURCE_2t
checkcache(RRtsource_nametsourcetsource_listRR((s8/opt/alt/python27/lib64/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((s8/opt/alt/python27/lib64/python2.7/test/test_linecache.pytraise_memoryerror�stupdatecache(RRRt
assertTrueRt	swap_attrRR'(RR#R7tlines2tlines3((s8/opt/alt/python27/lib64/python2.7/test/test_linecache.pyttest_memoryerrors
	
(t__name__t
__module__RR$R+R3R=(((s8/opt/alt/python27/lib64/python2.7/test/test_linecache.pyR's
				!cCstjt�dS(N(Rtrun_unittestR(((s8/opt/alt/python27/lib64/python2.7/test/test_linecache.pyt	test_main�st__main__(t__doc__Rtunittesttos.pathRttestRt__file__RR
RRtsplitt
TEST_HOME_DIRRRR
tdirnameRR-R.R!tTestCaseRRAR>(((s8/opt/alt/python27/lib64/python2.7/test/test_linecache.pyt<module>s&		h	

Youez - 2016 - github.com/yon3zu
LinuXploit