403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.84
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:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_linecache.cpython-315.opt-1.pyc
R
>lqj�@c�8�Qs]PHs]PHs]PHs]PHs]PHs]PHs]QH G	s	]QH(Gs]QH0G
s
]QH0Gs]QH<Gs\O"s\Q*sQsPs\O,O/\2sQO32s\O,O/\2sQ	sQ
sQsQQ
2sQQ\2s QQ\2s!QQ\ \OD2s#QQ\ \OD2s$QQ\ \OD2s%QQ\!\OD2s&QQ\!\OD2s'QQ2s(QQ2s)Q Q!\OD2s*Q"Q#\OD2s+Q$Q%\OD2s,\-Q&6Xc\O\2P!P!)'zTests for the linecache module )�
ModuleSpec)�support)�	os_helper)�threading_helper)�assert_python_okz.missingz
!@$)(!@#_1z
linecache abcz3
" Docstring "

def function():
    return result

z%
def f():
    return 1 + 1

a = f()

z
def f():
    return 3c�4``�\sQs]-snU1QksQsUsU9s!)�TempFilec�H:�[RU_2[OP
Q59^tt^2oUOUmUO
UO2PPP2UO[OUO
2P!)%fhK<9h)F)�delete)�super�setUp�tempfile�NamedTemporaryFile�name�	file_name�write�file_byte_string�
addCleanupr�unlink)�self�fp�	__class__s& ��(C:\Python315\\Lib\test\test_linecache.pyr�TempFile.setUp/sd���
��
��
�
(�
(��
6�
6�"��W�W�D�N��H�H�T�*�*�+�7�	
���	�(�(�$�.�.�9�7�
6�s�-B�B!	�B!	)r)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�__classdictcell__�
__classcell__�r�
__classdict__s@@rrr-s����:�:�rc�@``�\sQs]7snU1QksQsQsQsUsU9s	!)�GetLineTestsGoodDatac�:�POUO2OQ2Um[RU_2P!)��utf-8)�join�	file_list�encoderr
r)rrs&�rr�GetLineTestsGoodData.setUp:s,��� "������ 7� >� >�w� G���
��
�r"c	�n�[OUO29^tt^2o[U2FD^vq#UO	Q2%f
UQ*
o[
OUOU]*2oUOV42J`	PPP2P!)%fhP!9h��
)�tokenize�openr�	enumerate�endswith�	linecache�getline�assertEqual)rr�index�line�cached_lines&    r�test_getline�!GetLineTestsGoodData.test_getline>sv��
�]�]�4�>�>�
*�
*�b�(��}����}�}�T�*�*��D�L�D�'�/�/������	�J��� � ��3� -�+�
*�
*�
*�s�(B#�AB#�#B4	�,B4	c�~�[OUO2oUOVO2P!�N)r3�getlinesrr5r)�r�liness& r�
test_getlines�"GetLineTestsGoodData.test_getlinesGs(���"�"�4�>�>�2��������/r")r)
rrrrrr9r@rrrr s@@rr$r$7s�����4�0�0r"r$c�.`�\sQs]LsnQsQsQsUsP!)�GetLineTestsBadDatac�j�UO[OUO]2P2P!)�)r5r3r4r�rs&rr9� GetLineTestsBadData.test_getlineOs#������*�*�4�>�>�1�=�r�Br"c�h�UO[OUO2,2P!r<)r5r3r=rrFs&rr@�!GetLineTestsBadData.test_getlinesRs!������+�+�D�N�N�;�R�@r"�)rrrrr9r@rr�r!s@rrCrCLs����C�A�Ar"rCc�,`�\sQs]Vsn,sQsQsUsP!)�	EmptyFilec�n�[OUO2oUOUQ,2P!r-)r3r=rr5r>s& rr@�EmptyFile.test_getlinesYs(���"�"�4�>�>�2��������'r"rJ)rrrrr)r@rrrKs@rrMrMVs�����I�(�(r"rMc��\sQs]^sQ,sQsP!)�SingleEmptyLiner.rJ�rrrrr)rrJr"rrQrQ^s	����Ir"rQc� �\sQs]bs,QNsQsP!)�GoodUnicoderJ)uá
zb
zabcdef
uááááá
rRrJr"rrTrTbs��;�Ir"rTc��\sQs]esQsQsP!)�BadUnicode_NoDeclarations
�abcrJ�rrrrrrrJr"rrVrVes��#�r"rVc��\sQs]hsQsQsP!)�BadUnicode_WithDeclarations# coding=utf-8
�abcrJrWrJr"rrYrYhs��1�r"rYc�(`�\sQs]lsnQsQsUsP!)�
FakeLoaderc��QU0!)zsource for rJ�r�fullnames&&r�
get_source�FakeLoader.get_sourcems���X�J�'�'r"rJ�rrrrr_rrrKs@rr[r[ls����(�(r"r[c�(`�\sQs]qsnQsQsUsP!)�NoSourceLoaderc��P!r<rJr]s&&rr_�NoSourceLoader.get_sourcers��r"rJrarKs@rrcrcqs�����r"rcc�|`�\sQs]vsnQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsUsP!)�LineCacheTestsc���[OoUOU[Q2[2UOU[P2[2UO[U[Q2UOU[]2[2UOU[]2[2[FDo[OO[U2Q*o[UQQ59^tt^2o[U2FD#vqVUOVaV5]*22J%	PPP2J�	[OQ2oUOU,2P!)%fhJ�9h)�g�������?�.pyr'��encodingza/b/c/__init__.pyi�)r3r4r5�FILENAME�EMPTY�assertRaises�	TypeError�INVALID_NAME�MODULES�os�pathr(�MODULE_PATHr0r1r=)rr4�entry�filename�filer6r7�emptys&       rr9�LineCacheTests.test_getlinexs���#�#��	
�����5�1�5�9������2�.��6�	
���)�W�h��<�	
������*�E�2������q�1�5�9��W�E��w�w�|�|�K��7�%�?�H��h��1�1�T�#,�T�?�K�E��$�$�T�7�8�Q�Y�+G�H�$3�2�1���"�"�#6�7�������#�
2�1�1�s�<4E&	�&E7
�/E7
c�~�UO[O[O2[	[OQQQ59^tt^2oUO[2PPP2[O[O2oUOU,QN2P!)%fhKJ9h)�wr'rk)r.z	def f():
z
    return 3
)
rrr�TESTFNr0r�SOURCE_3r3r=r5)rrr?s&  r�test_no_ending_newline�%LineCacheTests.test_no_ending_newline�st�����	�(�(�)�*:�*:�;�
�)�"�"�C�'�
:�
:�b��H�H�X��;��"�"�9�#3�#3�4������ F�G�;�
:�s�B,�,B<	�5B<	c��,o[FDVo[OO[U2Q*oUOU2[OU]2JX	UOU,2STt,tFDpD[O7fJUMJ	ooUOU,2[O2STt,tFDpD[O7fJUMJ	ooUOU,2P!ttohttoh)rj)rrrsrtr(ru�appendr3r4�assertNotEqual�cacher5�
clearcache)r�cachedrvrw�fn�cached_emptys&     r�test_clearcache�LineCacheTests.test_clearcache�s������W�E��w�w�|�|�K��7�%�?�H��M�M�(�#����h��*��	
���F�B�'�%+�I�V�r����/H���V��I�����r�*�	����%+�E�V�r�Y�_�_�/D���V��E�����r�*��
J��
Fs�:D�D�	D�&Dc�`�[Oo[OQ*oUO	[O
U2[
UQQQ59^tt^2oUO[2PPP2UU]2,o[
UQQ59^tt^2o[U2FD4vqVUOVaV%]*22UOU2J6	PPP2[
UQQQ59^tt^2oUO[2PPP2[OQ2[U2FD#vqVUOVaV%]*22J%	[OU2[
UQQ59^tt^2o[U2FD4vqVUOVaV%]*22UOU2J6	PPP2P!)%fhCKu9h)%fhCK9h)%fhK�9h)%fhP!9h)rjr|r'rk�dummy)r3r4rr}rrr0r�SOURCE_1r1r5r��SOURCE_2�
checkcache)rr4�source_name�source�source_listr6r7s&      r�test_checkcache�LineCacheTests.test_checkcache�s����#�#���&�&��.�����	�(�(�+�6�
�+�s�W�
5�
5���L�L��"�6���Q����
�+��
0�
0�F�(��0���� � ��w�{�A�I�'F�G��"�"�4�(� 1�1�
�+�s�W�
5�
5���L�L��"�6�	���W�%�%�[�1�K�E����T�7�;��	�#B�C�2�	���[�)�
�+��
0�
0�F�(��0���� � ��w�{�A�I�'F�G��"�"�4�(� 1�1�
0�/6�
5�
5��1�
0�
0��
6�
5��1�
0�
0�sJ�G!�AG5�H	�AH�!G2	�*G2	�5H	�>H	�	H	�H	�H-	�%H-	c��[O[2o[O2UO	P
[O
[P22UO	U[O[22P!�F)r3r=rmr�r5�	lazycacher>s& r�test_lazycache_no_globals�(LineCacheTests.test_lazycache_no_globals�sV���"�"�8�,����������	� 3� 3�H�d� C�D�����	� 2� 2�8� <�=r"c��[O[[22o[O2UOP	[O[[222UO][[O[*22UOU[O[22P!)T)	r3r=�NONEXISTENT_FILENAME�globalsr�r5r��lenr�r>s& r�test_lazycache_smoke�#LineCacheTests.test_lazycache_smoke�s����"�"�#7���C����������)�%�%�&:�G�I�F�	H�����C�	���0D� E�F�G�	
����	� 2� 2�3G� H�Ir"c�p�[O2[O[[	22o[O2[O[2[O
[[	22UO
U[O[22P!r<)r3r�r=r�r�r�r5�updatecacher>s& r�*test_lazycache_provide_after_failed_lookup�9LineCacheTests.test_lazycache_provide_after_failed_lookup�sm�������"�"�#7���C���������/�0����0�'�)�<�����	� 5� 5�6J� K�Lr"c��[O2[O[[	22[O
2P!r<)r3r�r�r�r�r�rFs&r�test_lazycache_check�#LineCacheTests.test_lazycache_check�s-���������0�'�)�<����r"c���[O2UOP
[OP[	222UOP
[OQ[	222P!)Fz<foo>)r3r�r5r�r�rFs&r�test_lazycache_bad_filename�*LineCacheTests.test_lazycache_bad_filename�sL����������	� 3� 3�B��	� B�C�����	� 3� 3�G�W�Y� G�Hr"c�F�[O2[O[[	22oUOP
[O[[	222UO][[O[*22P!r�)	r3r�r=r�r�r5r�r�r�r>s& r�test_lazycache_already_cached�,LineCacheTests.test_lazycache_already_cached�si�������"�"�#7���C��������� 4�g�i�@�	B�	
����C�	���0D� E�F�Gr"c��[O[2oUOU2Qo[O
[QU29^tt^2[O[2oPPP2UO
WU2[O2[O
[QU29^tt^2[O[2oPPP2UO
W,2UO
[O[2U2P!)%fhK�9h)%fhKa9h)c��[gr<)�MemoryError)�args�kwargss*,r�raise_memoryerror�:LineCacheTests.test_memoryerror.<locals>.raise_memoryerror�s���r"r�)r3r=rm�
assertTruer�	swap_attrr5r�)rr?r��lines2�lines3s&    r�test_memoryerror�LineCacheTests.test_memoryerror�s����"�"�8�,�������	�
�
�
�y�-�9J�
K�
K��'�'��1�F�L������'�����
�
�
�y�-�9J�
K�
K��'�'��1�F�L������$�����+�+�H�5�u�=�L�
K��
L�
K�s$�D#�D6�#D3	�,D3	�6E	�?E	c
��Qo[O2QQQP-oUO[OV2,2[	2[21FD�o[O2QQQU-oUO
[29^tt^2oUO[OV2,2PPP2UO[WO2Q2J�	[O2QQQ[2-oUO
[29^tt^2oUO[OV2Q,2PPP2UO[WO2Q2P[	21FD�o[O2QQQ[2QU-oUO
[29^tt^2oUO[OV2Q,2PPP2UO[UO2Q2J�	[O2QQQ[2Q[P[22-oUO
[29^tt^2oUO[OV2Q,2PPP2UO[UO2Q2[O2[Q[22oQQQUOQU-oUO[OV2Q	,2P!)%fhCK�9h)%fhCK9h)%fhCKo9h)%fhK�9h)
z
scheme://pathrza.b.c�
__loader__z+Module globals is missing a __spec__.loaderzsource for a.b.c
�__spec__z-Module globals; __loader__ != __spec__.loaderzx.y.zzsource for x.y.z
)
r3r�r5r=�objectrc�assertWarns�DeprecationWarning�str�warningr[r�loader)rrw�module_globalsr�r|�specs&     r�test_loader�LineCacheTests.test_loaders���"������$�g�|�T�B������+�+�H�E�r�J��h�� 0�0�F�� � �"�(�'�<��H�N��!�!�"4�5�5��� � ��!3�!3�H�!M�r�R�6����S����^�J�
L�1�	����$�g�|�Z�\�J��
�
�
�0�
1�
1�Q����Y�/�/��I�2�3�
5�2�	
����Q�Y�Y��F�	H��&�(�N�D�� � �"�(�'�<���(�$�0�N��!�!�"4�5�5��� � ��!3�!3�H�!M�"6�!7�9�6�
���S����^�J�
L�#�	����$�g�|�Z�\�$�j��Z�\�&B�D��
�
�
�0�
1�
1�Q����Y�/�/��I�2�3�
5�2�	
����Q�Y�Y��H�	J�	�����'�:�<�0��$�g�|�T�[�[�$�d�,������+�+�H�E�.�/�	1�I6�5�5��2�
1�
1��6�5�5��2�
1�sH�'L:	�-(M�(M"	�(M6�:M
�M
�M	�M	�"M3
�+M3
�6N	�?N	c��QoQ[-o[OU2oUOU,2[OV2oUO	[U2]2[OU2oUOVE2[O2[OU2oUOU,2P!)z<frozen fakemodule>�__file__)rmr3r=r5�
assertGreaterr�r�)rrwr�ryr?�lines_cacheds&     r�test_frozen�LineCacheTests.test_frozen4s���(��$�h�/���"�"�8�,�������#��"�"�8�<�����3�u�:�q�)� �)�)�(�3������-������"�"�8�,�������#r"c��Q[Q*Q1QQQ*Q11FCD%vqUOQU029^tt^2[O2[OU2oUOU,2UO
U[O2PPP2UQ1QU1V11FD�vqEUOQU0VEQ	59^tt^2[O2]Q
,U1[OU$[OU2UO
U[O2PPP2J�	CJ(	[O2P!)%fhK�9h)%fhJ�9h)
�z filename with embedded NUL bytes�ai@Bzvery long filenamez
updatecache: �ok�keyzcheckcache: )r�r^i�)r�zNUL bytes filename)u	��.pyz'surrogate codes (MUSICAL SYMBOL G CLEF))	r��subTestr3r�r��assertListEqual�assertNotInr�r�)rr�descr?r�r^s&     r�test_invalid_names�!LineCacheTests.test_invalid_namesAsK��*�
��
� B�C�
K��9�_�2�3�

�J�D����
�d�V�4�5�5��$�$�&�!�-�-�d�3���$�$�U�B�/�� � ��y���7�	6�$(��,���
��|�!L�
���\�\�L���"7�&)�"�>�>��(�(�*�,-�t�R��+B�I�O�O�C�(��(�(��-��$�$�S�)�/�/�:�>�>�"M�'

�8	����#6�5��>�>�>�s&�AE 	�A#E3
� E0
�)E0
�3F�<Fc��Qo[QU2vq#oUOU]2UOUQ2UOUQ2P!)z1import linecache;assert len(linecache.cache) == 0z-cr")rr5)r�cmdline�retcode�stdout�stderrs&    r�test_linecache_python_string�+LineCacheTests.test_linecache_python_string`sH��E��"2�4��"A��������!�$������%������%r"rJ)rrrrr9rr�r�r�r�r�r�r�r�r�r�r�r�r�rrrKs@rrgrgvs\����$�2H�+�")�B>�J�M��
I�
H�
>�/1�b$��>&�&r"rgc�F``�\sQsQsnU1QksQsQsQsQsUs	U9s
!)�LineCacheInvalidationTests�gc	�:�[RU_2[O2[O
Q*Um[O
Q*Um[O
Q*UmUOUOUO1FD�oUO[OU2[UQQQ59^tt^2oUOQUQ02PPP2UOU[O2[OU2UO!U[O2J�	["O$UO2[UOQQQ59^tt^2oUOQ2PPP2P!)%fhK�9h)%fhP!9h)	z.1z.2z.3r|r'rkzprint("I am z")zprint("was modified"))r
rr3r�rr}�deleted_file�
modified_file�unchanged_filerrr0rr�r�r=�assertInrs�remove)r�fnamer�rs&  �rr� LineCacheInvalidationTests.setUphsD���
��
������%�,�,�t�3���&�-�-��4���'�.�.��5����'�'��(�(��)�)�+�E�
�O�O�I�,�,�e�4��e�S�7�3�3�v����|�E�7�"�5�6�4�
���U�I�O�O�4����u�%��M�M�%����1�+�	�	�	�$�#�#�$�
�$�$�$�c�G�
<�
<���L�L�0�1�=�
<�4�3��=�
<�
<�s$�F+	�F>�+F;
�4F;
�>G	�G	c�D�[OUO2UOUO[O2UOUO[O2UOUO[O2P!r<)r3r�r�r�r�r�r�r�rFs&r� test_checkcache_for_deleted_file�;LineCacheInvalidationTests.test_checkcache_for_deleted_file~s`�����T�.�.�/�����*�*�I�O�O�<��
�
�d�(�(�)�/�/�:��
�
�d�)�)�9�?�?�;r"c�D�[OUO2UOUO[O
2UO
UO[O
2UOUO[O
2P!r<)r3r�r�r�r�r�r�r�rFs&r�!test_checkcache_for_modified_file�<LineCacheInvalidationTests.test_checkcache_for_modified_file�s`�����T�/�/�0��
�
�d�'�'����9�����+�+�Y�_�_�=��
�
�d�)�)�9�?�?�;r"c�.�[O2UOUO[O2UOUO
[O2UO
UO[O2P!r<)r3r�r�r�r�r�r�r�rFs&r�!test_checkcache_with_no_parameter�<LineCacheInvalidationTests.test_checkcache_with_no_parameter�sZ����������*�*�I�O�O�<�����+�+�Y�_�_�=��
�
�d�)�)�9�?�?�;r")r�r�r�)rrrrrr�r�r�rrrr s@@rr�r�gs����2�,<�<�<�<r"r�c�n`�\sQsQsn\O
\O2Q22sQsUs	P!)�MultiThreadingTest�c��`�[O29^tt^2o,n[]
2FDwo[OOUQUQ02o[
UQ29^tt^2oUOQ2UOQ2PPP2ROU2Jy	U1QkoQoUU,]*2PPP2P!)%fhKH9h)%fhP!9h)�
�test_rjr|zimport time
zimport system
c�:�UO2[]d2FD$oRFDo[OU]2J	J&	P!)�d)�wait�ranger3r4)�b�_r�	filenamess&  �r�linecache_get_line�EMultiThreadingTest.test_read_write_safety.<locals>.linecache_get_line�s4��������s��A� )��!�)�)�$��2�!*�$r"c�(�[O[U22o,oSFD,o[OV11Q5oUO	U2J.	[
OU29^tt^2PPP2P!)%fhP!9h))�targetr�)�	threading�Barrierr��Threadr�r�
start_threads)�funcs�barrier�threads�func�threads&    r�check�8MultiThreadingTest.test_read_write_safety.<locals>.check�sh��#�+�+�C��J�7����!�D�&�-�-�T�
�K�F��N�N�6�*�"�
&�3�3�G�<�<��=�<�<�<�s�4B�B	�	B	)	r�TemporaryDirectoryr�rsrtr(r0rr�)r�
tmpdirname�ir�hrr
r�s&      @r�test_read_write_safety�)MultiThreadingTest.test_read_write_safety�s�����
(�
(�
*�
*�j��I��2�Y���w�w�|�|�J�%��s�#��?���$��_�_���G�G�O�,��G�G�-�.�%�� � ��&��
3�

�
�%�&��+�,�7+�
*�%�_��	+�
*�
*�s0�A
C �*#C

�
6C �
C�C�C � C1	�)C1	rJ)
rrrrr�reap_threads�requires_working_threadingrrrrKs@rr�r��s.�����"�"��0�0�2�-�3�#�-r"r��__main__)/�__doc__r3�unittest�os.pathrsrrr/�importlib.machineryr�testr�test.supportrr�test.support.script_helperrr�rmr�rqrnrt�dirname�	TEST_PATH�splitrrrur�r�r~rr$rC�TestCaserMrQrTrVrYr[rcrgr�r�r�mainrJr"r�<module>r$s���&�������*��"�)�7������*�,����
���G�G�O�O�H�%�	�
�
�
�
!���g�g�o�o�h�'��������
:�:�0�8�0�*A�(�A�(�$�h�&7�&7�(��*�H�,=�,=��<�&��(9�(9�<�$�2�H�4E�4E�$�2�!4�h�6G�6G�2�(�(�
��
o&�X�&�&�o&�b'<��!2�!2�'<�T -��*�*� -�F�z���M�M�O�r"

Youez - 2016 - github.com/yon3zu
LinuXploit