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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/test/__pycache__/test_pickletools.cpython-312.pyc
�

���gE��6�ddlZddlZddlZddlmZddlmZddlZddlZGd�deej�Z
Gd�d�ZGd�d	ej�ZGd
�dej�Z
Gd�d
ej�Zd�Zedk(rej"�yy)�N)�support)�AbstractPickleTestsc�.�eZdZdd�Zd�ZdZdZd�Zd�Zy)�OptimizedPickleTestsNc�V�tjtj||fi|���S�N)�pickletools�optimize�pickle�dumps)�self�arg�proto�kwargss    �*C:\Python312\\Lib\test\test_pickletools.pyrzOptimizedPickleTests.dumpss#���#�#�F�L�L��e�$F�v�$F�G�G�c�.�tj|fi|��Sr)r�loads)r
�buf�kwdss   rrzOptimizedPickleTests.loadss���|�|�C�(�4�(�(rc��td�D�cgc]
}t|���}}|j|d�ttjdz�D]�}tj
||�}tj|�}|j||�|j|d|d�tj|�}tj|�}|j||�|j|d|d�|jtj|�|jtj|���ycc}w)Ni�������)�range�str�appendr�HIGHEST_PROTOCOLrr�assertEqual�assertIsr	r
�assertNotIn�LONG_BINGET�LONG_BINPUT)r
�i�datar�pickled�	unpickled�pickled2�
unpickled2s        r�test_optimize_long_bingetz.OptimizedPickleTests.test_optimize_long_bingets�� %�c�
�+�
�1��A��
��+����D��H���6�2�2�Q�6�7�E��l�l�4��/�G����W�-�I����Y��-��M�M�)�B�-��2��7�"�+�+�G�4�H����h�/�J����Z��.��M�M�*�R�.�*�R�.�9����V�/�/��:����V�/�/��:�8��,s�Ec��d}|jtj|�tj|�}|j	|gd��|j|d|d�t
j|�}tj|�}|j	|gd��|j|d|d�|jtj|�y)Ns ��]�(�spamq�ham�he.)�spam�hamr-r�)	�assertInr�BINPUTrrr r	r
r!)r
r&r'r(r)s     r� test_optimize_binput_and_memoizez5OptimizedPickleTests.test_optimize_binput_and_memoize's���D��	
�
�
�f�m�m�W�-��L�L��)�	�����$:�;��
�
�i��l�I�a�L�1��'�'��0���\�\�(�+�
�����%;�<��
�
�j��m�Z��]�3��������1rr)	�__name__�
__module__�__qualname__rr�test_pickle_to_2x�+test_framed_write_sizes_with_delayed_writerr*r1�rrrr	s'��H�)���37�/�;� 2rrc��eZdZd�Zd�Zd�Zy)�SimpleReaderc� �||_d|_y)Nr�r%�pos)r
r%s  r�__init__zSimpleReader.__init__Cs����	���rc�|�|j|j|j|z}|xj|z
c_|Srr;)r
�nr%s   r�readzSimpleReader.readGs0���y�y����4�8�8�a�<�0�����A�
���rc���|jjd|j�dz}|st|j�}|j|j|}||_|S)N�
r)r%�findr<�len)r
�nlr%s   r�readlinezSimpleReader.readlineLsO��
�Y�Y�^�^�E�4�8�8�
,�q�
0����T�Y�Y��B��y�y����2�&������rN)r2r3r4r=r@rFr7rrr9r9Bs����
rr9c�6�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	y)	�GenopsTestsc	��tjd�}|j|D�cgc]}|djf|ddz��c}gd��ycc}w)N�(I123
KJ4Vxt.rr))�MARKNr)�INT�{r)�BININT1��)�BININT�4Vx�)�TUPLEN�
)�STOPN�)r	�genopsr�name�r
�it�items   r�test_genopszGenopsTests.test_genopsVsP��
�
�
� B�
C�����"�E�"�$�4��7�<�<�/�T�!�"�X�5�"�E�H
�	��Es�A
c	�P�tjd�}|j|jd�d�t	j
|�}|j|D�cgc]}|djf|ddz��c}gd��|j|j�d�ycc}w)Nsprefix(I123
KJ4Vxt.suffixrPsprefixrr))rKNrP)rLrM�)rNrO�)rQrRrW)rTN�)rVN�ssuffix)�io�BytesIOrr@r	rXrY�r
�fr[r\s    r�test_from_filezGenopsTests.test_from_fileas����J�J�E�F����������I�.�
�
�
��
"�����"�E�"�$�4��7�<�<�/�T�!�"�X�5�"�E�H
�	�	
�������9�-��Fs�B#c	��td�}tj|�}|j|D�cgc]}|djf|ddz��c}gd��ycc}w)NrJrr))rKNN)rLrMN)rNrON)rQrRN)rTNN)rVNN)r9r	rXrrYres    r�test_without_poszGenopsTests.test_without_pososZ���;�<��
�
�
��
"�����"�E�"�$�4��7�<�<�/�T�!�"�X�5�"�E�H
�	��Es�Ac���tjd�}t|�}|j|djd�|jtd�5t|�ddd�y#1swYyxYw)N�Nr�NONE�#pickle exhausted before seeing STOP�r	rX�nextrrY�assertRaisesRegex�
ValueErrorrZs   r�test_no_stopzGenopsTests.test_no_stop{s]��
�
�
��
%���B�x������a����v�.�
�
#�
#�J�5�7���H�7�7�7���A+�+A4c�0�tjd�}|jtd�5t	|�ddd�tjd�}|jtd�5t	|�ddd�y#1swY�IxYw#1swYyxYw)NsI123�-no newline found when trying to read stringnlsJ4�&not enough data in stream to read int4)r	rXrprqro)r
r[s  r�test_truncated_datazGenopsTests.test_truncated_data�s���
�
�
��
(��
�
#�
#�J�?�A���H�A��
�
��
-��
�
#�
#�J�8�:���H�:�:�	A�A��:�:�s�B�+B�B	�Bc���tjd�}t|�}|j|djd�|jtd�5t|�ddd�y#1swYyxYw)N�N�rrl�&at position 1, opcode b'\\xff' unknownrnrZs   r�test_unknown_opcodezGenopsTests.test_unknown_opcode�s]��
�
�
��
)���B�x������a����v�.�
�
#�
#�J�9�;���H�;�;�;�rsc��td�}tj|�}t|�}|j	|dj
d�|j
td�5t|�ddd�y#1swYyxYw)Nryrrlz.at position <unknown>, opcode b'\\xff' unknown)r9r	rXrorrYrprqres    r�test_unknown_opcode_without_posz+GenopsTests.test_unknown_opcode_without_pos�sk����"��
�
�
��
"���B�x������a����v�.�
�
#�
#�J�A�C���H�C�C�C�s�!A6�6A?N)
r2r3r4r]rgrirrrwr{r}r7rrrHrHUs%��	�.�
����rrHc��eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�DisTestsNc��tj�}tj|fd|i|��|j	|j�|�y�N�out)rc�StringIOr	�disr�getvalue)r
r%�expectedrr�s     r�	check_diszDisTests.check_dis�s9���k�k�m������0�#�0��0���������2rc���tj�}|jt|�5t	j
|fd|i|��ddd�|j
|j�|�y#1swY�*xYwr�)rcr�rprqr	r�rr�)r
r%r��expected_errorrr�s      r�check_dis_errorzDisTests.check_dis_error�sY���k�k�m��
�
#�
#�J��
?��O�O�D�4�c�4�V�4�@���������2�@�
?�s�A-�-A6c�(�|jdd�y)N�(N(tl.z�    0: (    MARK
    1: N        NONE
    2: (        MARK
    3: t            TUPLE      (MARK at 2)
    4: l        LIST       (MARK at 0)
    5: .    STOP
highest protocol among opcodes = 0
�r��r
s r�	test_markzDisTests.test_mark�������y�#�	rc�,�|jddd��y)Nr�z�    0: (    MARK
    1: N      NONE
    2: (      MARK
    3: t        TUPLE      (MARK at 2)
    4: l      LIST       (MARK at 0)
    5: .    STOP
highest protocol among opcodes = 0
r.)�indentlevelr�r�s r�test_indentlevelzDisTests.test_indentlevel�s�����y�#��	�	rc�:�|jtd�d�y)Nr�z�(    MARK
N        NONE
(        MARK
t            TUPLE      (MARK at unknown opcode offset)
l        LIST       (MARK at unknown opcode offset)
.    STOP
highest protocol among opcodes = 0
)r�r9r�s r�test_mark_without_poszDisTests.test_mark_without_pos�s�����|�I�.�1�	rc�*�|jddd�y)NsNt.z@    0: N    NONE
    1: t    TUPLE      no MARK exists on stack
zno MARK exists on stack�r�r�s r�test_no_markzDisTests.test_no_mark�s�����V�&��	 rc�(�|jdd�y)Ns
Np0
qr�.z�    0: N    NONE
    1: p    PUT        0
    4: q    BINPUT     1
    6: r    LONG_BINPUT 2
   11: \x94 MEMOIZE    (as 3)
   12: .    STOP
highest protocol among opcodes = 4
r�r�s r�test_putzDisTests.test_put�s�����:�=�	rc��|jddd�|jddd�|jddd�|jdd	d
�y)NsNp1
p1
.zC    0: N    NONE
    1: p    PUT        1
    4: p    PUT        1
zmemo key 1 already definedsNp1
q.zC    0: N    NONE
    1: p    PUT        1
    4: q    BINPUT     1
s
Np1
r.zD    0: N    NONE
    1: p    PUT        1
    4: r    LONG_BINPUT 1
sNp1
�.zH    0: N    NONE
    1: p    PUT        1
    4: \x94 MEMOIZE    (as 1)
zmemo key None already definedr�r�s r�test_put_redefinedzDisTests.test_put_redefined�sq�����]�-�"�		#�
	
���^�.�"�		#�
	
���7�:�"�		#�
	
���]�-�%�		&rc�*�|jddd�y)Nsp0
z    0: p    PUT        0
z'stack is empty -- can't store into memor�r�s r�test_put_empty_stackzDisTests.test_put_empty_stack�s�����W�'�.�	0rc�*�|jddd�y)Ns(p0
z.    0: (    MARK
    1: p        PUT        0
z"can't store markobject in the memor�r�s r�test_put_markobjectzDisTests.test_put_markobject�s�����X�(�*�	+rc�(�|jdd�y)Ns(Np1
g1
hjt.z�    0: (    MARK
    1: N        NONE
    2: p        PUT        1
    5: g        GET        1
    8: h        BINGET     1
   10: j        LONG_BINGET 1
   15: t        TUPLE      (MARK at 0)
   16: .    STOP
highest protocol among opcodes = 1
r�r�s r�test_getzDisTests.test_gets�����<�
?�
	rc�v�|jddd�|jddd�|jddd�y)N�g1
.z    0: g    GET        1
z%memo key 1 has never been stored intosh.z    0: h    BINGET     1
sj.z    0: j    LONG_BINGET 1
r�r�s r�test_get_without_putzDisTests.test_get_without_put
sO�����X�(�,�	.�	
���Y�)�,�	.�	
���2�5�,�	.rc�X�i}|jdd|��|jdd|��y)NsNp1
.z^    0: N    NONE
    1: p    PUT        1
    4: .    STOP
highest protocol among opcodes = 0
)�memor�zM    0: g    GET        1
    3: .    STOP
highest protocol among opcodes = 0
r�)r
r�s  r�	test_memozDisTests.test_memosC�������y�#�
�	�	�	
���x�"��		�	rc�(�|jdd�y)Ns(N00N.z�    0: (    MARK
    1: N        NONE
    2: 0        POP
    3: 0        POP        (MARK at 0)
    4: N    NONE
    5: .    STOP
highest protocol among opcodes = 0
r�r�s r�
test_mark_popzDisTests.test_mark_pop&r�rc�P�|jddd�|jddd�y)N�az    0: a    APPEND
z1tries to pop 2 items from stack with only 0 itemss]az*    0: ]    EMPTY_LIST
    1: a    APPEND
z1tries to pop 2 items from stack with only 1 itemsr�r�s r�test_too_small_stackzDisTests.test_too_small_stack1s6�����T�$�8�	:�	
���U�%�9�	:rc�*�|jddd�y)Nrk�    0: N    NONE
rmr�r�s rrrzDisTests.test_no_stop:s�����T�$�*�	,rc�P�|jddd�|jddd�y)NsNI123r�rusNJ4rvr�r�s rrwzDisTests.test_truncated_data?s4�����X�(�4�	6�	
���]�-�-�	/rc�*�|jddd�y)Nryr�rzr�r�s rr{zDisTests.test_unknown_opcodeGs�����X�(�.�	0rc�*�|jddd�y)Ns]N.z\    0: ]    EMPTY_LIST
    1: N    NONE
    2: .    STOP
highest protocol among opcodes = 1
z$stack not empty after STOP: \[list\]r�r�s r�test_stop_not_empty_stackz"DisTests.test_stop_not_empty_stackLs�����V�&�
-�	.rc�|�|jddd��|jddd��|jddd��y)	Ns(Nt.a,    0: (    MARK Push markobject onto the stack.
    1: N        NONE Push None on the stack.
    2: t        TUPLE      (MARK at 0) Build a tuple out of the topmost stack slice, after markobject.
    3: .    STOP                       Stop the unpickling machine.
highest protocol among opcodes = 0
r)�annotatea>    0: (    MARK            Push markobject onto the stack.
    1: N        NONE        Push None on the stack.
    2: t        TUPLE      (MARK at 0) Build a tuple out of the topmost stack slice, after markobject.
    3: .    STOP                       Stop the unpickling machine.
highest protocol among opcodes = 0
rbs(((((((ttttttt.a�    0: (    MARK            Push markobject onto the stack.
    1: (        MARK        Push markobject onto the stack.
    2: (            MARK    Push markobject onto the stack.
    3: (                MARK Push markobject onto the stack.
    4: (                    MARK Push markobject onto the stack.
    5: (                        MARK Push markobject onto the stack.
    6: (                            MARK Push markobject onto the stack.
    7: t                                TUPLE      (MARK at 6) Build a tuple out of the topmost stack slice, after markobject.
    8: t                            TUPLE      (MARK at 5) Build a tuple out of the topmost stack slice, after markobject.
    9: t                        TUPLE      (MARK at 4) Build a tuple out of the topmost stack slice, after markobject.
   10: t                    TUPLE      (MARK at 3)     Build a tuple out of the topmost stack slice, after markobject.
   11: t                TUPLE      (MARK at 2)         Build a tuple out of the topmost stack slice, after markobject.
   12: t            TUPLE      (MARK at 1)             Build a tuple out of the topmost stack slice, after markobject.
   13: t        TUPLE      (MARK at 0)                 Build a tuple out of the topmost stack slice, after markobject.
   14: .    STOP                                       Stop the unpickling machine.
highest protocol among opcodes = 0
r�r�s r�
test_annotatezDisTests.test_annotateTs^�����w�!��
	�	�	
���w�!��
	�	�	
���)�,�"�#	�	rc�p�|jdd�|jdd�|jdd�y)NsS'abc'
.zQ    0: S    STRING     'abc'
    7: .    STOP
highest protocol among opcodes = 0
sS"abc"
.sS'õ'
.zV    0: S    STRING     '\xc3\xb5'
    6: .    STOP
highest protocol among opcodes = 0
r�r�s r�test_stringzDisTests.test_stringvs@�����|�&�	�
	
���|�&�	�
	
���(�+�	rc���|jddd�|jddd�|jddd�|jddd	�|jd
dd�|jddd
�y)NsSabc'
.�zno string quotes around b"abc'"sSabc"
.zno string quotes around b'abc"'sS'abc
.z3strinq quote b"'" not found at both ends of b"'abc"sS"abc
.z3strinq quote b'"' not found at both ends of b'"abc'sS'abc"
.z6strinq quote b"'" not found at both ends of b'\\'abc"'sS"abc'
.z6strinq quote b'"' not found at both ends of b'"abc\\''r�r�s r�test_string_without_quotesz#DisTests.test_string_without_quotes�s������[�"�?�	A����[�"�?�	A����[�"�V�	X����[�"�W�	Y����]�B�Z�	\����]�B�Z�	\rc�L�|jdd�|jdd�y)Ns	Tabc.zQ    0: T    BINSTRING  'abc'
    8: .    STOP
highest protocol among opcodes = 1
sTõ.zV    0: T    BINSTRING  '\xc3\xb5'
    7: .    STOP
highest protocol among opcodes = 1
r�r�s r�test_binstringzDisTests.test_binstring�s,�����/�2�	�
	
���4�7�	rc�L�|jdd�|jdd�y)NsUabc.zV    0: U    SHORT_BINSTRING 'abc'
    5: .    STOP
highest protocol among opcodes = 1
sUõ.z[    0: U    SHORT_BINSTRING '\xc3\xb5'
    4: .    STOP
highest protocol among opcodes = 1
r�r�s r�test_short_binstringzDisTests.test_short_binstring�s+�����|�&�	�
	
���(�+�	rc�L�|jdd�|jdd�y)Nscmodule
name
.zY    0: c    GLOBAL     'module name'
   13: .    STOP
highest protocol among opcodes = 0
scmödule
näme
.u[    0: c    GLOBAL     'mödule näme'
   15: .    STOP
highest protocol among opcodes = 0
r�r�s r�test_globalzDisTests.test_global�s,�����*�-�	�
	
���8�;�	rc�(�|jdd�y)Ns(imodule
name
.zz    0: (    MARK
    1: i        INST       'module name' (MARK at 0)
   14: .    STOP
highest protocol among opcodes = 0
r�r�s r�	test_instzDisTests.test_inst�s�����+�.�	rc�(�|jdd�y)NsPabc
.zQ    0: P    PERSID     'abc'
    5: .    STOP
highest protocol among opcodes = 0
r�r�s r�test_persidzDisTests.test_persid�s�����z�$�	r)r2r3r4�maxDiffr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrwr{r�r�r�r�r�r�r�r�r�r7rrrr�s����G�3�
3�	�	�	� �	�&�,0�
+��	.��	�:�,�
/�0�
.� �D�"\�
�
�
��rrc��eZdZd�Zy)�MiscTestCasec�D�hd�}tj|t|��y)N>O�int4�long1�long4�pyint�pyset�uint1�uint2�uint4�uint8�bytes1�bytes4�bytes8�float8�pybool�pydict�pylist�pylong�pynone�code2op�floatnl�opcodes�pybytes�pyfloat�pytuple�string1�string4�pybuffer�pystring�stringnl�	anyobject�	pyunicode�	read_int4�
OpcodeInfo�
bytearray8�
markobject�
read_long1�
read_long4�
read_uint1�
read_uint2�
read_uint4�
read_uint8�
stackslice�StackObject�bytes_types�pybytearray�pyfrozenset�read_bytes1�read_bytes4�read_bytes8�read_float8�read_floatnl�read_string1�read_string4�
UP_TO_NEWLINE�
read_stringnl�decimalnl_long�pybytes_or_str�unicodestring1�unicodestring4�unicodestring8�decimalnl_short�read_bytearray8�unicodestringnl�pyinteger_or_bool�stringnl_noescape�ArgumentDescriptor�read_decimalnl_long�read_unicodestring1�read_unicodestring4�read_unicodestring8�TAKEN_FROM_ARGUMENT1�TAKEN_FROM_ARGUMENT4�read_decimalnl_short�read_unicodestringnl�TAKEN_FROM_ARGUMENT4U�TAKEN_FROM_ARGUMENT8U�read_stringnl_noescape�stringnl_noescape_pair�read_stringnl_noescape_pair)�not_exported)r�check__all__r	)r
rs  r�test__all__zMiscTestCase.test__all__�s��
��8	���T�;�\�JrN)r2r3r4rr7rrr�r��s��Krr�c�V�|jtjt��|Sr)�addTest�doctest�DocTestSuiter	)�loader�tests�patterns   r�
load_testsr#�s��	�M�M�'�&�&�{�3�4��Lr�__main__)rcrr	�testr�test.pickletesterrr�unittest�TestCaserr9rHrr�r#r2�mainr7rr�<module>r*s���	�
���1���62�.��0A�0A�62�r��&G�(�#�#�G�Tg�x� � �g�T	K�8�$�$�K�B�
�z���H�M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit