Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_lzma.cpython-312.pyc

�

'Μg�r��
�ddlZddlZddlmZmZmZddlZddlZddlZddl	Z	ddl
mZddlZddl
mZmZddlmZddlmZmZmZed�ZddlmZmZmZmZGd	�d
ej6�ZGd�dej6�ZGd
�d�ZGd�dej6�ZGd�dej6�Z Gd�dej6�Z!dZ"dZ#dZ$dZ%ejLdd�gZ'dZ(ejRdd�ejLejTejVzd�gZ,dZ-ej\dd �d!ejLigZ/d"Z0ejRd#d�ejbd$d �ejLd#dd%�gZ2d&Z3d'Z4e5d(k(rejl�yy))�N)�BytesIO�UnsupportedOperation�DEFAULT_BUFFER_SIZE)�support)�_4G�
bigmemtest)�
import_module)�TESTFN�unlink�FakePath�lzma)�LZMACompressor�LZMADecompressor�	LZMAError�LZMAFilec�n�eZdZd�Zd�Zd�Zd�Zd'd�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�Zej@e!e"dzd��d ���Z#ej@e!e"dzd!��d"���Z$d#�Z%ejLd$��Z'd%�Z(y&)(�CompressorDecompressorTestCasec�f�|jttg�|jttd��|jttd��|jttd��|jttd��|jtttj
��|jt�5td	d
tjig��ddd�|jttd�|jttd
��|jt�5ttjd��ddd�|jt�5ttjd��ddd�|jttt��|jt�5ttjt��ddd�|jt�5ttjt��ddd�t�}|jt|j�|jt|jdd�|jt|jd�|j�}|jt|jd�|jt|j�t�}|jt|j�|jt|jdd�|j|�|jt|jd�y#1swY���xYw#1swY��'xYw#1swY���xYw#1swY���xYw#1swY��{xYw)Ng������@��format���check�asdf��preset���filters��id�rr�sqw��memlimit�zzz��rr�foo�barsblahsquux)�assertRaises�	TypeErrorr�
ValueErrorr
�FORMAT_AUTO�FILTER_LZMA2r�
FORMAT_RAW�
FILTERS_RAW_1�	FORMAT_XZ�FORMAT_ALONE�compress�flush�
decompress�EOFError)�self�lzc�empty�lzds    �+/usr/local/lib/python3.12/test/test_lzma.py�test_simple_bad_argsz3CompressorDecompressorTestCase.test_simple_bad_argss{�����)�^�R�8����)�^�D��A����)�^�2��>����)�^�F��C����)�^�Q��?����*�n�T�=M�=M��N�
�
�
�z�
*��!�t�T�5F�5F�.G�-H�I�+�	
���)�%5�r�:����)�%5���F�
�
�
�y�
)��T�_�_�e�<�*��
�
�z�
*��T�_�_�y�A�+�	
���*�&6�
��N�
�
�
�z�
*��D�N�N�M�J�+�
�
�
�z�
*��D�$5�$5�}�M�+�������)�S�\�\�2����)�S�\�\�6�6�B����)�S�Y�Y��8��	�	������*�c�l�l�G�<����*�c�i�i�0�� �����)�S�^�^�4����)�S�^�^�V�V�D����u�����(�C�N�N�G�<�;+�
*��
*�
)��+�
*��+�
*��
*�
*�s<�M2�>M?�7N� N�
 N&�2M<�?N	�N�N#�&N0c�j�|jttdg��|jttddig��|jttddig��|jt�5ttj
dd�g��ddd�|jt�5ttjdd�g��ddd�|jt�5ttjdd�g��ddd�y#1swY��xYw#1swY�RxYw#1swYyxYw)	N�wobsiter�xyzzyrr!�́r�r!�foo)r+r,rr-r
r/�FILTER_DELTA�
FILTER_X86�r8s r<�test_bad_filter_specz3CompressorDecompressorTestCase.test_bad_filter_specAs������)�^�j�\��J����*�n���|�n��M����*�n��e�}�o��N�
�
�
�z�
*��4�+<�+<�Q�$G�#H�I�+�
�
�
�z�
*��4�+<�+<�Q�$G�#H�I�+�
�
�
�z�
*��4�?�?�1�$E�#F�G�+�
*�	+�
*��
*�
*��
*�
*�s$�1D�-D�)D)�D�D&�)D2c��t�}|jt�|jt|jd�y)Nsnyan)rr6�
COMPRESSED_XZr+r7�r8r;s  r<�test_decompressor_after_eofz:CompressorDecompressorTestCase.test_decompressor_after_eofLs,��� �����}�%����(�C�N�N�G�<�c�f�td��}|jt|jt�tt
jd��}|jt|jt�tt
jd��}|jt|jt�y)N�r$)	rr+rr6rIr
r2r3�COMPRESSED_ALONErJs  r<�test_decompressor_memlimitz9CompressorDecompressorTestCase.test_decompressor_memlimitQsq����-�����)�S�^�^�]�C��t�~�~��=�����)�S�^�^�]�C��t�0�0�4�@�����)�S�^�^�5E�FrLc�.�|j|j�|j|�}|j|t�|j|j
|�|j
|j�|j|j|�y�N)�assertFalse�eofr6�assertEqual�INPUTr�
assertTrue�unused_data)r8r;�datarrX�outs      r<�_test_decompressorz1CompressorDecompressorTestCase._test_decompressor]sj��������!��n�n�T�"������e�$�������E�*������� �������+�6rLc��t�}|j|ttj�t�}|j|t
tj�yrR)rr[rIr
�CHECK_CRC64rO�
CHECK_NONErJs  r<�test_decompressor_autoz5CompressorDecompressorTestCase.test_decompressor_autoesA��� ������]�D�4D�4D�E�� ������%5�t���GrLc��ttj�}|j|ttj
�yrR)rr
r2r[rIr]rJs  r<�test_decompressor_xzz3CompressorDecompressorTestCase.test_decompressor_xzls(���t�~�~�.������]�D�4D�4D�ErLc��ttj�}|j|ttj
�yrR)rr
r3r[rOr^rJs  r<�test_decompressor_alonez6CompressorDecompressorTestCase.test_decompressor_aloneps)���t�0�0�1������%5�t���GrLc��ttjt��}|j	|t
tj�y�Nr)rr
r0r1r[�COMPRESSED_RAW_1r^rJs  r<�test_decompressor_raw_1z6CompressorDecompressorTestCase.test_decompressor_raw_1t�)���t���
�F������%5�t���GrLc��ttjt��}|j	|t
tj�yre)rr
r0�
FILTERS_RAW_2r[�COMPRESSED_RAW_2r^rJs  r<�test_decompressor_raw_2z6CompressorDecompressorTestCase.test_decompressor_raw_2xrhrLc��ttjt��}|j	|t
tj�yre)rr
r0�
FILTERS_RAW_3r[�COMPRESSED_RAW_3r^rJs  r<�test_decompressor_raw_3z6CompressorDecompressorTestCase.test_decompressor_raw_3|rhrLc��ttjt��}|j	|t
tj�yre)rr
r0�
FILTERS_RAW_4r[�COMPRESSED_RAW_4r^rJs  r<�test_decompressor_raw_4z6CompressorDecompressorTestCase.test_decompressor_raw_4�rhrLc	���t�}g}tdtt�d�D]G}|j	|j
�|j
|jt||dz���Idj|�}|j|t�|j|jtj�|j|j
�|j|jd�y�Nr�
rL�r�range�lenrIrSrT�appendr6�joinrUrVrr
r]rWrX�r8r;rZ�is    r<�test_decompressor_chunksz7CompressorDecompressorTestCase.test_decompressor_chunks�s���� �����q�#�m�,�b�1�A����S�W�W�%��J�J�s�~�~�m�A�a��d�&;�<�=�2��h�h�s�m������e�$�������D�$4�$4�5������� �������#�.rLc	��t�}g}tdtt�d�D]�}|j	|j
�|j
|jd��|j
|jd��|j
|jd��|j
|jt||dz����dj|�}|j|t�|j|jtj�|j|j
�|j|jd�yrvrxr}s    r<�test_decompressor_chunks_emptyz=CompressorDecompressorTestCase.test_decompressor_chunks_empty�s���� �����q�#�m�,�b�1�A����S�W�W�%��J�J�s�~�~�c�*�+��J�J�s�~�~�c�*�+��J�J�s�~�~�c�*�+��J�J�s�~�~�m�A�a��d�&;�<�=�2��h�h�s�m������e�$�������D�$4�$4�5������� �������#�.rLc���t�}d}g}tt�dz}|j|j	td||���|j|j�|jt|d�|�|j|j	d|���|j|j�|jt|d�|�|j|j	t|d|���|jt|d�|�|jsM|j|j	d|���|jt|d�|�|js�Mdj|�}|j|t�|j|jtj�|j|jd�y)N�d���
max_length���rL)rrzrIr{r6rS�needs_inputrU�assertLessEqualrTr|rVrr
r]rX)r8r;r�rZ�len_s     r<� test_decompressor_chunks_maxsizez?CompressorDecompressorTestCase.test_decompressor_chunks_maxsize�s���� ���
����=�!�Q�&���
�
�3�>�>�-���"6�-7�"�9�	:�������)�����S��W��z�2�	�
�
�3�>�>�#�*�>�=�>�������)�����S��W��z�2�	�
�
�3�>�>�-���"6�-7�"�9�	:����S��R��\�:�6��'�'��J�J�s�~�~�c�j�~�A�B�� � ��S��W��z�:��'�'��h�h�s�m������e�$�������D�$4�$4�5�������#�.rLc��t�}g}|j|jtddd��d�|j	|jdd��|j	|jtddd��|j	|jtdd��|jdj|�t�y)Nr�rr�rLr��i��rrUr6rIr{r|rV�r8r;rZs   r<�test_decompressor_inputbuf_1z;CompressorDecompressorTestCase.test_decompressor_inputbuf_1�s���� ����	
������
�d�s�(;�34�(�6�7:�	<�
	�
�
�3�>�>�#�q�)�*�	�
�
�3�>�>�-��C�"8�"�=�>�	�
�
�3�>�>�-���"5�6�7�������#���.rLc���t�}g}|j|jtddd��d�|j	|jd��|j	|jtddd��|j	|jtddd��|j	|jtdd��|jdj|�t�y)N��rr�rLir��,r�r�s   r<�test_decompressor_inputbuf_2z;CompressorDecompressorTestCase.test_decompressor_inputbuf_2�s���� ����	
������
�d�s�(;�34�(�6�7:�	<��
�
�3�>�>�#�&�'�	�
�
�3�>�>�-��C�"8�!�<�=�	�
�
�3�>�>�-��C�"8�!�<�=�	�
�
�3�>�>�-���"5�6�7�������#���.rLc�T�t�}g}|j|jtddd��|j|jtddd��|j|jtdd��|j	dj|�t�y)Nr��r�rL)rr{r6rIrUr|rVr�s   r<�test_decompressor_inputbuf_3z;CompressorDecompressorTestCase.test_decompressor_inputbuf_3�s���� ����	�
�
�3�>�>�-���"5�q�9�:�	�
�
�3�>�>�-��C�"8�!�<�=�	�
�
�3�>�>�-���"5�6�7�������#���.rLc�p�t�}d}|j|t|ztj|��y)Ns	fooblibar�rX)rr[rIr
r])r8r;�extras   r<�test_decompressor_unused_dataz<CompressorDecompressorTestCase.test_decompressor_unused_data�s6��� ��������]�U�%:�D�<L�<L�,1�	 �	3rLc���t�}|jt|jt�tt
j�}|jt|jt�tt
j�}|jt|jt�tt
jt��}|jt|jt�yre)rr+rr6rfr
r2rOr3rIr0r1rJs  r<�test_decompressor_bad_inputz:CompressorDecompressorTestCase.test_decompressor_bad_inputs���� �����)�S�^�^�5E�F��t�~�~�.�����)�S�^�^�5E�F��t�0�0�1�����)�S�^�^�]�C��t���
�F�����)�S�^�^�]�CrLc��t�}|jt|jt�|jt|jt�yrR)rr+rr6rfrJs  r<�test_decompressor_bug_28275z:CompressorDecompressorTestCase.test_decompressor_bug_28275
s8��� �����)�S�^�^�5E�F����)�S�^�^�5E�FrLc��t�}|jt�|j�z}t	�}|j||tj�yrR)rr4rVr5rr[r
r]�r8r9�cdatar;s    r<�test_roundtrip_xzz0CompressorDecompressorTestCase.test_roundtrip_xzsC��������U�#�c�i�i�k�1��� ������U�D�,<�,<�=rLc���ttj�}|jt�|j�z}t
�}|j||tj�yrR)	rr
r3r4rVr5rr[r^r�s    r<�test_roundtrip_alonez3CompressorDecompressorTestCase.test_roundtrip_alonesI���T�.�.�/�����U�#�c�i�i�k�1��� ������U�D�O�O�<rLc��ttjt��}|j	t
�|j
�z}ttjt��}|j||tj�yre�
rr
r0rrr4rVr5rr[r^r�s    r<�test_roundtrip_rawz1CompressorDecompressorTestCase.test_roundtrip_raw"sQ���T�_�_�m�D�����U�#�c�i�i�k�1���t���
�F������U�D�O�O�<rLc��ttjt��}|j	t
�}||j	d�z
}||j	d�z
}||j	d�z
}||j
�z
}ttjt��}|j||tj�y)NrrLr�r�s    r<�test_roundtrip_raw_emptyz7CompressorDecompressorTestCase.test_roundtrip_raw_empty(s����T�_�_�m�D�����U�#��
����c�"�"��
����c�"�"��
����c�"�"��
��������t���
�F������U�D�O�O�<rLc	�d�t�}g}tdtt�d�D],}|j	|jt||dz���.|j	|j
��dj|�}t�}|j||tj�yrv�rryrzrVr{r4r5r|rr[r
r]�r8r9r�r~r;s     r<�test_roundtrip_chunksz4CompressorDecompressorTestCase.test_roundtrip_chunks2s���������q�#�e�*�b�)�A��L�L����e�A�a��d�m�4�5�*�
���S�Y�Y�[�!�������� ������U�D�,<�,<�=rLc	�$�t�}g}tdtt�d�D]�}|j	|jt||dz��|j	|jd��|j	|jd��|j	|jd����|j	|j
��dj|�}t�}|j||tj�yrvr�r�s     r<�test_roundtrip_empty_chunksz:CompressorDecompressorTestCase.test_roundtrip_empty_chunks<s���������q�#�e�*�b�)�A��L�L����e�A�a��d�m�4�5��L�L����c�*�+��L�L����c�*�+��L�L����c�*�+�	*�
	���S�Y�Y�[�!�������� ������U�D�,<�,<�=rLc�|�t�}|j|ttztj
t��y)Nr�)rr[rIrOr
r]rJs  r<�test_decompressor_multistreamz<CompressorDecompressorTestCase.test_decompressor_multistreamKs4��� ������]�5E�%E� $� 0� 0�>N�	 �	PrLr�r�)�size�memusec�*�t�}|jd|z�|j�z}tj	|�}	|jt
|�|�|jt
|jd��d�d}y#d}wxYw)N�xr)rr4r5r
r6rUrz�strip)r8r�r9r��ddatas     r<�test_compressor_bigmemz5CompressorDecompressorTestCase.test_compressor_bigmemRsy��������T�D�[�)�C�I�I�K�7������&��	����S��Z��.����S����T�!2�3�Q�7��E��D�E�s
�AB�Brc�
�t�}td|�}tj|�}	||dz
|zdzz}tj|�}|j
|�}|j||�dx}x}}y#dx}x}}wxYw)Ni��)r�min�random�	randbytesr
r4r6rU)r8r�r;�	blocksize�block�inputr�r�s        r<�test_decompressor_bigmemz7CompressorDecompressorTestCase.test_decompressor_bigmem^s���� ���(�$�/�	�� � ��+��	)��d�1�f��2�Q�6�7�E��M�M�%�(�E��N�N�5�)�E����U�E�*�$(�(�E�(�E�E��D�(�E�(�E�E�s�AA:�:Bc�f�ttjdz�D]z}|jt�5tj
t
�|�ddd�|jt�5tj
t�|�ddd��|y#1swY�HxYw#1swY��xYw�Nr�)ry�pickle�HIGHEST_PROTOCOLr+r,�dumpsrr)r8�protos  r<�test_picklez*CompressorDecompressorTestCase.test_picklensv���6�2�2�Q�6�7�E��"�"�9�-����^�-�u�5�.��"�"�9�-����-�/��7�.�-�8�-�-��-�-�s�B�1B'�B$	�'B0	c���tjtd�}t�}|�}t	d�D]}|j��|j
|�|z
dd��y)N�gettotalrefcountr�rrw)�delta)r�
get_attribute�sysrry�__init__�assertAlmostEqual)r8r�r;�refs_beforer~s     r<�&test_refleaks_in_decompressor___init__zECompressorDecompressorTestCase.test_refleaks_in_decompressor___init__us[��"�0�0��6H�I��� ��&�(���s��A��L�L�N�����/�1�K�?��"��MrLc��|jtjt�jt	��d�y�NrL)rUr�__new__r6�bytesrFs r<�)test_uninitialized_LZMADecompressor_crashzHCompressorDecompressorTestCase.test_uninitialized_LZMADecompressor_crash~s-�����)�1�1�2B�C�#��E�G�,�c�	3rLN�rL))�__name__�
__module__�__qualname__r=rGrKrPr[r_rarcrgrlrprtrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�skip_if_pgo_taskrrr�r�r��
refcount_testr�r�r#rLr<rrs��&=�P	H�=�
G�7�H�F�H�H�H�H�H�
/�
/�/�@/�,/�*/� 3�D�G�>�=�=�=�>�>�P�
����S�3�Y�q�)��*���
����S�3�Y�q�)�
)�*��
)�8�
���N��N�3rLrc�B�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zy
)�"CompressDecompressFunctionTestCasec��|jttj�|jttjg�|jttjdd��|jttjdd��|jttjdd��|jttjdd�	�|jt�5tjdd
dtj
ig��ddd�|jttj�|jttjg�|jttjdd
��|jttjdd��|jt�5tj
dtji��ddd�|jt�5tj
dtjd��ddd�|jt�5tj
dt�	�ddd�|jt�5tj
dtjt��ddd�|jt�5tj
dtjt��ddd�y#1swY���xYw#1swY��%xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swYyxYw)NrL�xzr�noner�blahrrNrrr!r"r
g��1�Ar$r(r'�rr%)r+r,r
r4r-r/r6r0r1r2r3rFs r<�
test_bad_argsz0CompressDecompressFunctionTestCase.test_bad_args�s6�����)�T�]�]�3����)�T�]�]�B�7����)�T�]�]�C���E����)�T�]�]�C�v��F����)�T�]�]�C���G����)�T�]�]�C���F�
�
�
�z�
*��M�M�#�a�4��9J�9J�2K�1L�M�M�+�	
���)�T�_�_�5����)�T�_�_�b�9����)�T�_�_�c�&��I����)�T�_�_�c�E��J�
�
�
�y�
)��O�O�C�����O�D�*��
�
�z�
*��O�O�C����)�O�L�+��
�
�z�
*��O�O�C��O�7�+�
�
�
�z�
*��O�O�C����
�O�N�+�
�
�
�z�
*��O�O��� 1� 1�=�
�
J�+�
*�#+�
*��*�
)��+�
*��+�
*��
*�
*��
*�
*�sH�;*L�'L#�'L0�!L<�+M�"+M�L �#L-�0L9�<M�M�Mc���|jt�5tjtd��ddd�|jt�5tjttj
d��ddd�|jt�5tjttjd��ddd�y#1swY��xYw#1swY�^xYw#1swYyxYw)NrNr$r�)r+rr
r6rIr2rOr3rFs r<�test_decompress_memlimitz;CompressDecompressFunctionTestCase.test_decompress_memlimit�s���
�
�
�y�
)��O�O�M�D�O�9�*�
�
�
�y�
)��O�O�!�$�.�.�4�
�
I�*��
�
�y�
)��O�O�$�T�->�->��
�
O�*�
)�*�
)��
)�
)��*�
)�s#�C�+C�+C#�C�C �#C,c���tjt�}|j|t�tjt
�}|j|t�tjttj�}|j|t�tjt
tj�}|j|t�tjttjt��}|j|t�tjttjt��}|j|t�tjttjt��}|j|t�tjttjt ��}|j|t�yre)r
r6rIrUrVrOr2r3rfr0r1rkrjrornrsrr�r8r�s  r<�test_decompress_good_inputz=CompressDecompressFunctionTestCase.test_decompress_good_input�sF�����
�.�������&���� 0�1�������&����
�t�~�~�>�������&���� 0�$�2C�2C�D�������&���� �$�/�/�=� �J�������&���� �$�/�/�=� �J�������&���� �$�/�/�=� �J�������&���� �$�/�/�=� �J�������&rLc��|jttjtdd�|jttjt
dd�|jttjtddtjt��|jttjtddtjt��|jttjtddtjt��|jttjtddtjt��y)N�r()r+rr
r6rIrOrfr0r1rkrjrornrsrrrFs r<� test_decompress_incomplete_inputzCCompressDecompressFunctionTestCase.test_decompress_incomplete_input�s������)�T�_�_�m�D�S�6I�J����)�T�_�_�6F�t��6L�M����)�T�_�_�6F�t��6L�!%���-�	�	I����)�T�_�_�6F�t��6L�!%���-�	�	I����)�T�_�_�6F�t��6L�!%���-�	�	I����)�T�_�_�6F�t��6L�!%���-�	�	IrLc��|jt�5tjt�ddd�|jt�5tjt
�ddd�|jt�5tjttj��ddd�|jt�5tjttj��ddd�|jt�5tjttjt��ddd�y#1swY��xYw#1swY��xYw#1swY��xYw#1swY�{xYw#1swYyxYw�Nrr()r+rr
r6�COMPRESSED_BOGUSrfrOr2rIr3r0r1rFs r<�test_decompress_bad_inputz<CompressDecompressFunctionTestCase.test_decompress_bad_input�s���
�
�
�y�
)��O�O�,�-�*�
�
�
�y�
)��O�O�,�-�*�
�
�
�y�
)��O�O�,�T�^�^�O�D�*�
�
�
�y�
)��O�O�M�$�2C�2C�O�D�*�
�
�
�y�
)��O�O�M�$�/�/�$1�
�
3�*�
)�*�
)��
)�
)��
)�
)��
)�
)��
)�
)�s;�E
�
E�*E#�*E/�/E;�
E�E �#E,�/E8�;Fc��tjt�}tj|�}|j	|t�tjttj
�}tj|�}|j	|t�tjttj�}tj|�}|j	|t�tjttjt��}tj|tjt��}|j	|t�yre)	r
r4rVr6rUr2r3r0rr)r8r�r�s   r<�test_roundtripz1CompressDecompressFunctionTestCase.test_roundtrip�s����
�
�e�$������&�������&��
�
�e�T�^�^�4������&�������&��
�
�e�T�%6�%6�7������&�������&��
�
�e�T�_�_�m�
�L������t���
��N�������&rLc�v�tjttz�}|j	|t
dz�y)Nr�)r
r6rIrOrUrVr�s  r<�test_decompress_multistreamz>CompressDecompressFunctionTestCase.test_decompress_multistream�s*�����
�0@� @�A��������	�*rLc�p�tjttz�}|j	|t
�yrR�r
r6rIr�rUrVr�s  r<�test_decompress_trailing_junkz@CompressDecompressFunctionTestCase.test_decompress_trailing_junks&�����
�0@� @�A�������&rLc�|�tjtdztz�}|j	|t
dz�y)Nrr�r�s  r<�)test_decompress_multistream_trailing_junkzLCompressDecompressFunctionTestCase.test_decompress_multistream_trailing_junks/�����
�� 1�4D� D�E��������	�*rLN)r�r�r�r�r�r�r�r�r�r�r�r�r#rLr<r�r��s2��J�:O�'�:
I�3�'�&+�'�+rLr�c�$�eZdZdZdd�Zd�Zd�Zy)�TempFilez=Context manager - creates a file, and deletes it on __exit__.c� �||_||_yrR)�filenamerY)r8r�rYs   r<r�zTempFile.__init__
s�� ��
���	rLc��t|jd�5}|j|j�ddd�y#1swYyxYw)N�wb)�openr��writerY�r8�fs  r<�	__enter__zTempFile.__enter__s.��
�$�-�-��
&�!�
�G�G�D�I�I��'�
&�
&�s	�<�Ac�.�t|j�yrR)rr�)r8�argss  r<�__exit__zTempFile.__exit__s���t�}�}�rLNr�)r�r�r��__doc__r�rr	r#rLr<r�r�
s��G���rLr�c��eZdZd�Zd�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�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-d,�Z.d-�Z/d.�Z0d/�Z1d0�Z2d1�Z3d2�Z4d3�Z5d4�Z6d5�Z7d6�Z8d7�Z9d8�Z:d9�Z;d:�Z<d;�Z=d<�Z>d=�Z?d>�Z@d?�ZAd@�ZBdA�ZCdB�ZDyC)D�FileTestCasec�\�ttt��5}	ddd�tt�d�5}	ddd�tt�d�5}	ddd�tt�d�5}	ddd�y#1swY�dxYw#1swY�RxYw#1swY�@xYw#1swYyxYw)N�w�x�a)rrrIrs  r<�	test_initzFileTestCase.test_inits|��
�g�m�,�
-���.�
�g�i��
%���&�
�g�i��
%���&�
�g�i��
%���&�
%�
.�
-��
%�
%��
%�
%��
%�
%�s.�A>�B
�B�3B"�>B�
B�B�"B+c���tt�}t|t�5t	|�5}|j|j
�t�ddd�t	|d�5}|jt�ddd�t	|�5}|j|j
�tdz�ddd�ddd�y#1swY�wxYw#1swY�YxYw#1swY�*xYw#1swYyxYw)Nrr�)	rr
r�rIrrU�readrVr)r8r�rs   r<� test_init_with_PathLike_filenamez-FileTestCase.test_init_with_PathLike_filename%s����F�#��
�h�
�
.��(�#�q�� � �����5�1�$��(�C�(�A������)��(�#�q�� � �����5�1�9�5�$�/�
.�#�#��(�(��#�#��/�
.�sR�C+�%C�C+�%C�;C+�(C�6C+�C	�C+�C	�C+�C(	�$C+�+C4c�8�ttt�5tt�5}	ddd�ttd�5}	ddd�ttd�5}	ddd�ddd�y#1swY�FxYw#1swY�8xYw#1swY�*xYw#1swYyxYw)Nrr)r�r
rIrrs  r<�test_init_with_filenamez$FileTestCase.test_init_with_filename/sl��
�f�m�
,��&�!�Q��"��&�#�&�!��'��&�#�&�!��'�-�
,�!�!��&�&��&�&��-�
,�sP�B�A,�B�A8�B�B�B�,A5	�1B�8B	�=B�B
	�	B�Bc��tt�5ttd�5	ddd�ttd�5	ddd�ttd�5	ddd�ttd�5	ddd�ttd�5	ddd�ttd�5	ddd�ddd�y#1swY��xYw#1swY��xYw#1swY�xxYw#1swY�jxYw#1swY�\xYw#1swY�NxYw#1swYyxYw)N�r�rbrrr�ab)r�r
rrFs r<�test_init_modezFileTestCase.test_init_mode8s���
�f�
��&�#�&��'��&�$�'��(��&�#�&��'��&�$�'��(��&�#�&��'��&�$�'��(��
�&�&��'�'��&�&��'�'��&�&��'�'���
�s��C>�B6�C>�C�C>�C�C>�/C�1C>�	C&�C>�#C2�%C>�6B?	�;C>�C	�C>�C	�C>�C#	�C>�&C/	�+C>�2C;	�7C>�>Dc�$�|jtt�dD]Y}tt�tt|�5}	ddd�|j	t
�5tt|�ddd��[y#1swY�:xYw#1swY�rxYw)N)r�xb)�
addCleanuprr
rr+�FileExistsError)r8�moders   r<�test_init_with_x_modez"FileTestCase.test_init_with_x_modeGsc�������'��D��6�N��&�$�'�1��(��"�"�?�3����&�4�3�	 �'�'��3�3�s�A:�B�:B	�B	c���|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d�ddd�|jt�5ttt�d	�ddd�|jt�5ttt�d
�ddd�|jt�5ttt�d�ddd�y#1swY��1xYw#1swY��xYw#1swY���xYw#1swY���xYw#1swY���xYw#1swY��_xYw#1swY��5xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swYyxYw)N)rrr�xtzx+�rx�wx�rtzr+�wtzw+�rw)r+r-rrrIrFs r<�test_init_bad_modezFileTestCase.test_init_bad_modePs���
�
�
�z�
*��W�]�+�X�6�+�
�
�
�z�
*��W�]�+�R�0�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
�
�
�z�
*��W�]�+�T�2�+�
*�)+�
*��
*�
*��
*�
*��
*�
*��
*�
*��
*�
*��
*�
*��
*�
*��
*�
*��
*�
*��
*�
*�s��I�
I,�I9�;J�2J�)J � J-�J:�K�K�<K�I)�,I6�9J�J�J� J*�-J7�:K�K�K�K(c��|jt�5tt�dd��ddd�|jt�5tt�dt
j��ddd�|jt�5tt�dt
jdz��ddd�|jt�5ttt�t
j��ddd�|jt�5ttt�t
j��ddd�|jt�5ttt�t
j��ddd�|jt�5ttt�t
j��ddd�|jt�5ttt�t
j��ddd�y#1swY���xYw#1swY���xYw#1swY���xYw#1swY��JxYw#1swY��xYw#1swY��xYw#1swY��xYw#1swYyxYw)Nrsasdrr)r+r,rrrr
�
CHECK_UNKNOWN�CHECK_ID_MAXr-rIr^�CHECK_CRC32r]�CHECK_SHA256rFs r<�test_init_bad_checkz FileTestCase.test_init_bad_checkhs���
�
�
�y�
)��W�Y��6�2�*��
�
�y�
)��W�Y��4�+=�+=�>�*�
�
�
�y�
)��W�Y��4�+<�+<�q�+@�A�*��
�
�z�
*��W�]�+�4�?�?�C�+�
�
�
�z�
*��W�]�+�4�3C�3C�D�+�
�
�
�z�
*��W�]�+�4�3C�3C�D�+�
�
�
�z�
*��W�]�+�4�3D�3D�E�+�
�
�
�z�
*��W�]�+�4�3E�3E�F�+�
*�!*�
)��*�
)��
)�
)��+�
*��
*�
*��
*�
*��
*�
*��
*�
*�s_�H�
%H(�(H5�)I�)I�)I�#)I(�))I4�H%�(H2�5H?�I�I�I%�(I1�4I=c��|jt�5tt�dd��ddd�|jt�5tt�dd��ddd�|jt�5tt�dd��ddd�|jt
�5tt�dd��ddd�|jt
�5tt�dd��ddd�|jt�5tt�dd��ddd�|jt�5ttt�d	��ddd�y#1swY��GxYw#1swY�� xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swYyxYw)
Nrg��(\�@rrw�r�i����rCr)r+r,rrr�
OverflowErrorr-rIrFs r<�test_init_bad_presetz!FileTestCase.test_init_bad_preset|s$��
�
�
�y�
)��W�Y��D�1�*�
�
�
�y�
)��W�Y��B�/�*�
�
�
�y�
)��W�Y��B�/�*�
�
�
�}�
-��W�Y��B�/�.�
�
�
�}�
-��W�Y��B�/�.�
�
�
�y�
)��W�Y��E�2�*��
�
�z�
*��W�]�+�A�6�+�
*�*�
)��
)�
)��
)�
)��
-�
-��
-�
-��
)�
)��+�
*�sS�E2�
E?�>F�2F�&F$�F0�F<�2E<�?F	�F�F!�$F-�0F9�<Gc��|jt�5tt�ddg��ddd�|jt�5tt�dddig��ddd�|jt�5tt�dddig��ddd�|jt�5tt�dt
jdd	�g��ddd�|jt�5tt�dt
jdd	�g��ddd�|jt�5tt�dt
jdd	�g��ddd�y#1swY��KxYw#1swY��!xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swYyxYw)
Nrr?rr@rr!rArrB)	r+r,rrr-r
r/rDrErFs r<�test_init_bad_filter_specz&FileTestCase.test_init_bad_filter_spec�sA��
�
�
�y�
)��W�Y��j�\�:�*�
�
�
�z�
*��W�Y��w��l�^�<�+�
�
�
�z�
*��W�Y��t�U�m�_�=�+�
�
�
�z�
*��W�Y��%)�%6�%6�q�A�B�
D�+��
�
�z�
*��W�Y��%)�%6�%6�q�A�B�
D�+��
�
�z�
*��W�Y��%)�_�_�Q�?�@�
B�+�
*�*�
)��
*�
*��
*�
*��
*�
*��+�
*��+�
*�sG�E7�F�F�9)F�?)F)�)F5�7F�F�F�F&�)F2�5F>c��|jt�5tt�dtj
dt��ddd�y#1swYyxYw)Nr�)rrr)r+r-rrr
r0r1rFs r<�!test_init_with_preset_and_filtersz.FileTestCase.test_init_with_preset_and_filters�s5��
�
�
�z�
*��W�Y��D�O�O��}�
6�+�
*�
*�s�+A
�
Ac��tt�5}t|�}|j�|j	|j
�|j�|j	|j
�ddd�t
tt�5tt�}|j}|j�|j|j
�|j�ddd�y#1swY�}xYw#1swYyxYwrR)
rrIr�closerS�closedr�r
�_fprW)r8�srcr�fps    r<�
test_closezFileTestCase.test_close�s���
�]�
#�s���
�A�
�G�G�I����S�Z�Z�(�
�G�G�I����S�Z�Z�(�$��f�m�
,��� �A����B�
�G�G�I��O�O�B�I�I�&�
�G�G�I�-�
,�$�
#��-�
,�s�A"C.�AC:�.C7�:Dc�"�ttt��}	|j|j�|j�|j|j�|j
�|j|j�tt�d�}	|j|j�|j
�|j|j�y#|j
�wxYw#|j
�wxYw�Nr)rrrIrSr;rr:rWrs  r<�test_closedzFileTestCase.test_closed�s����W�]�+�,��	����Q�X�X�&�
�F�F�H����Q�X�X�&�
�G�G�I�������!��W�Y��$��	����Q�X�X�&�
�G�G�I�������!��
�G�G�I��
�G�G�I�s�AC'� C<�'C9�<Dc��ttt��}	|jt|j
�|j
�|jt|j
�ttt�5tt�}	|j|j�|jj��|j|j�t�|j
�	ddd�|jt|j
�y#|j
�wxYw#|j
�wxYw#1swY�TxYwrR)rrrIr+r�filenor:r-r�r
rUr<�assertIsInstance�intrs  r<�test_filenozFileTestCase.test_fileno�s����W�]�+�,��	����2�A�H�H�=�
�G�G�I����*�a�h�h�/�
�f�m�
,��� �A�
�� � �����Q�U�U�\�\�^�<��%�%�a�h�h�j�#�6����	�
-�	
���*�a�h�h�/��
�G�G�I�����	��
-�
,�s0� D%�>E�AD:�+E�%D7�:E�E�Ec�\�ttt��}	|j|j	��|j�|j|j	��|j
�|jt|j�tt�d�}	|j|j	��|j
�|jt|j�tt�}d�|_t|�}	|j|j	��|j
�|jt|j�y#|j
�wxYw#|j
�wxYw#|j
�wxYw)Nrc��y)NFr#r#rLr<�<lambda>z,FileTestCase.test_seekable.<locals>.<lambda>�s��urL)
rrrIrW�seekablerr:r+r-rS)r8rr=s   r<�
test_seekablezFileTestCase.test_seekable�s���W�]�+�,��	��O�O�A�J�J�L�)�
�F�F�H��O�O�A�J�J�L�)�
�G�G�I����*�a�j�j�1��W�Y��$��	����Q�Z�Z�\�*�
�G�G�I����*�a�j�j�1��m�$��$����S�M��	����Q�Z�Z�\�*�
�G�G�I����*�a�j�j�1��#
�G�G�I��
�G�G�I��
�G�G�I�s$�AE/�-F�F�/F�F�F+c�N�ttt��}	|j|j	��|j�|j|j	��|j
�|jt|j�tt�d�}	|j|j	��|j
�|jt|j�y#|j
�wxYw#|j
�wxYwrA)
rrrIrW�readablerr:r+r-rSrs  r<�
test_readablezFileTestCase.test_readable�s����W�]�+�,��	��O�O�A�J�J�L�)�
�F�F�H��O�O�A�J�J�L�)�
�G�G�I����*�a�j�j�1��W�Y��$��	����Q�Z�Z�\�*�
�G�G�I����*�a�j�j�1��
�G�G�I��
�G�G�I���AC=�-D�=D�D$c�N�ttt��}	|j|j	��|j�|j|j	��|j
�|jt|j�tt�d�}	|j|j	��|j
�|jt|j�y#|j
�wxYw#|j
�wxYwrA)
rrrIrS�writablerr:r+r-rWrs  r<�
test_writablezFileTestCase.test_writables����W�]�+�,��	����Q�Z�Z�\�*�
�F�F�H����Q�Z�Z�\�*�
�G�G�I����*�a�j�j�1��W�Y��$��	��O�O�A�J�J�L�)�
�G�G�I����*�a�j�j�1��
�G�G�I��
�G�G�I�rPc���ttt��5}|j|j	�t
�|j|j	�d�ddd�ttt��5}|j|j	�t
�ddd�ttt�tj��5}|j|j	�t
�|j|j	�d�ddd�ttt�tj��5}|j|j	�t
�|j|j	�d�ddd�ttt�tjt��5}|j|j	�t
�|j|j	�d�ddd�ttt�tjt��5}|j|j	�t
�|j|j	�d�ddd�ttt�tjt ��5}|j|j	�t
�|j|j	�d�ddd�ttt"�tjt$��5}|j|j	�t
�|j|j	�d�ddd�y#1swY��"xYw#1swY���xYw#1swY���xYw#1swY��xYw#1swY���xYw#1swY��@xYw#1swY��xYw#1swYyxYw)NrLrr()rrrIrUrrVrOr
r2r3rfr0r1rkrjrornrsrrrs  r<�	test_readzFileTestCase.test_reads���
�g�m�,�
-�����Q�V�V�X�u�-����Q�V�V�X�s�+�.��g�.�/�
0�A����Q�V�V�X�u�-�1�
�g�m�,�T�^�^�
D�����Q�V�V�X�u�-����Q�V�V�X�s�+�E��g�.�/��8I�8I�
J�a����Q�V�V�X�u�-����Q�V�V�X�s�+�K��g�.�/�!�_�_�m�E�HI����Q�V�V�X�u�-����Q�V�V�X�s�+�E��g�.�/�!�_�_�m�E�HI����Q�V�V�X�u�-����Q�V�V�X�s�+�E��g�.�/�!�_�_�m�E�HI����Q�V�V�X�u�-����Q�V�V�X�s�+�E��g�.�/�!�_�_�m�E�HI����Q�V�V�X�u�-����Q�V�V�X�s�+�E�E�/.�
-��1�
0��
D�
D��K�
J��E�E��E�E��E�E��E�E�sf�AM>�>%N�AN�AN%�AN2�<AN?�6AO�0AO�>N�N�N"�%N/�2N<�?O	�O�O!c��ttt��5}|j|j	d�d�ddd�ttt
��5}|j|j	d�d�ddd�ttt�tj��5}|j|j	d�d�ddd�ttt
�tj��5}|j|j	d�d�ddd�y#1swY��xYw#1swY��xYw#1swY�txYw#1swYyxYw)NrrLr)	rrrIrUrrOr
r2r3rs  r<�test_read_0zFileTestCase.test_read_01s���
�g�m�,�
-�����Q�V�V�A�Y��,�.�
�g�.�/�
0�A����Q�V�V�A�Y��,�1�
�g�m�,�T�^�^�
D�����Q�V�V�A�Y��,�E�
�g�.�/��8I�8I�
J�a����Q�V�V�A�Y��,�K�
J�
.�
-��
0�
0��
D�
D��
J�
J�s/�"D*�"D6�-"E�?"E�*D3�6D?�E�Ec�R�ttt��5}g}|jd�x}r@|j	t|�d�|j
|�|jd�x}r�@|jdj|�t�ddd�y#1swYyxYw�NrwrL)
rrrIrr�rzr{rUr|rV)r8r�chunks�results    r<�test_read_10zFileTestCase.test_read_10;s���
�g�m�,�
-���F��F�F�2�J�&�&�&��$�$�S��[�"�5��
�
�f�%��F�F�2�J�&�&�&�
���S�X�X�f�-�u�5�.�
-�
-�s�AB�/%B�B&c�@�tttdz��5}|j|j	�t
dz�ddd�ttttz��5}|j|j	�t
dz�ddd�tttdz�tjt��5}|j|j	�t
dz�ddd�y#1swY��xYw#1swY�vxYw#1swYyxYw)Nr�r��r()rrrIrUrrVrOror
r0rnrs  r<�test_read_multistreamz"FileTestCase.test_read_multistreamCs���
�g�m�a�/�0�
1�Q����Q�V�V�X�u�q�y�1�2�
�g�m�.>�>�?�
@�A����Q�V�V�X�u�q�y�1�A�
�g�.��2�3�!�_�_�m�E�HI����Q�V�V�X�u�q�y�1�E�E�	2�
1��
@�
@��E�E�s#�(C<�+(D�(D�<D�D�Dc�:�tj}tt�t_	t	ttdz��5}|j
|j�tdz�ddd�|t_y#1swY�xYw#|t_wxYw�Nr�)	�_compression�BUFFER_SIZErzrIrrrUrrV)r8�saved_buffer_sizers   r<�)test_read_multistream_buffer_size_alignedz6FileTestCase.test_read_multistream_buffer_size_alignedLss��)�4�4��#&�}�#5�� �	9��'�-�1�"4�5�6�!�� � �����5�1�9�5�7�(9�L�$�7�6��(9�L�$�s#�B
�(B�-B
�B
�B
�

Bc��ttttz��5}|j	|j�t�ddd�y#1swYyxYwrR�rrrIr�rUrrVrs  r<�test_read_trailing_junkz$FileTestCase.test_read_trailing_junkWs:��
�g�m�.>�>�?�
@�A����Q�V�V�X�u�-�A�
@�
@�s�%A�Ac��tttdztz��5}|j	|j�tdz�ddd�y#1swYyxYwrargrs  r<�#test_read_multistream_trailing_junkz0FileTestCase.test_read_multistream_trailing_junk[sC��
�g�m�a�/�2B�B�C�
D�����Q�V�V�X�u�q�y�1�E�
D�
D�s�(A�Ac��ttt�5tt�5}|j	|j�t�|j	|j�d�|j|j�t�|j|j�d�|j|j�d�|j|j�d�|j|jd�ddd�|jjd�|jt |j�|jt |j�|jt |j�|jt |j�ddd�y#1swY��xYw#1swYyxYw)NrLTF)r�r
rIrrUrrVrErDrF�assertIsrNrRrKr;r+r-rs  r<�test_read_from_filez FileTestCase.test_read_from_file_s'��
�f�m�
,��&�!�Q�� � �����5�1�� � �����3�/��%�%�a�h�h�j�#�6��
�
�a�j�j�l�D�1��
�
�a�j�j�l�E�2��
�
�a�j�j�l�D�1��
�
�a�h�h��.�"�
�M�M�!�(�(�D�)����j�!�(�(�3����j�!�*�*�5����j�!�*�*�5����j�!�*�*�5�-�
,�!�!��-�
,�s$�G�C%F7�
B$G�7G	�<G�Gc�P�tjt�}ttt�5t|�5}|j
|j�t�|j
|j�d�ddd�ddd�y#1swY�xYw#1swYyxYwr�)	�os�fsencoder
r�rIrrUrrV)r8�bytes_filenamers   r<�'test_read_from_file_with_bytes_filenamez4FileTestCase.test_read_from_file_with_bytes_filenameosm�����V�,��
�f�m�
,��.�)�Q�� � �����5�1�� � �����3�/�*�-�
,�)�)��-�
,�s#�B�AB�?B�B	�B�B%c���ttt�5ttd�5}t	|�5}|j|j
�t�|j|j
�d�|j|j�|j��|j|j�d�|j|j�d�|j|j�d�|j|jd�ddd�|jjd�|jt|j�|jt|j�|jt|j�|jt|j�ddd�ddd�y#1swY��xYw#1swY�xYw#1swYyxYw�NrrLTF)r�r
rIrrrUrrVrDrlrNrRrKr;r+r-)r8�rawrs   r<�test_read_from_fileobjz#FileTestCase.test_read_from_fileobjvsE��
�f�m�
,��f�d�#�s��c�]�a��$�$�Q�V�V�X�u�5��$�$�Q�V�V�X�s�3��$�$�Q�X�X�Z�����>��M�M�!�*�*�,��5��M�M�!�*�*�,��6��M�M�!�*�*�,��5��M�M�!�(�(�E�2�#��
�
�a�h�h��-��!�!�*�a�h�h�7��!�!�*�a�j�j�9��!�!�*�a�j�j�9��!�!�*�a�j�j�9�$�-�
,�"�]��$�#��-�
,�s;�G.�G"�C/G�!B$G"�G.�G�G"�"G+	�'G.�.G7c�<�ttt�5tjttj
�}t	|d�5}t
|�5}|j|j�t�|j|j�d�|j|j�|j��|j|j�d�|j|j�d�|j|j�d�|j|jd�ddd�|jjd�|j!t"|j�|j!t"|j�|j!t"|j�|j!t"|j�ddd�ddd�y#1swY��xYw#1swY�xYw#1swYyxYwrt)r�r
rIror�O_RDONLYrrUrrVrDrlrNrRrKr;r+r-)r8�fdrurs    r<�$test_read_from_fileobj_with_int_namez1FileTestCase.test_read_from_fileobj_with_int_name�sY��
�f�m�
,��������-�B��b�$��3��c�]�a��$�$�Q�V�V�X�u�5��$�$�Q�V�V�X�s�3��$�$�Q�X�X�Z�����>��M�M�!�*�*�,��5��M�M�!�*�*�,��6��M�M�!�*�*�,��5��M�M�!�(�(�E�2�#��
�
�a�h�h��-��!�!�*�a�h�h�7��!�!�*�a�j�j�9��!�!�*�a�j�j�9��!�!�*�a�j�j�9� �-�
,�#�]�� ���-�
,�s=�5H�
H�C/G:�B$H�)H�:H�?H�H	�H�Hc��tttdd��5}|jt|j
�ddd�y#1swYyxYw)Nr�)rrrIr+r7rrs  r<�test_read_incompletez!FileTestCase.test_read_incomplete�s8��
�g�m�D�S�1�2�
3�q����h����/�4�
3�
3�s�!A�Ac�Z�tdd}tt|��5}|jt|j
�ddd�tt|��5}|j
|jtt��t�|jt|j
d�ddd�td�D]C}tt|d|��5}|jt|j
d�ddd��Ey#1swY��xYw#1swY�gxYw#1swY�hxYw)Ni�r��)
rIrrr+r7rrUrzrVry)r8�	truncatedrr~s    r<�test_read_truncatedz FileTestCase.test_read_truncated�s���"�$�3�'�	�
�g�i�(�
)�Q����h����/�*�
�g�i�(�
)�Q����Q�V�V�C��J�/��7����h�����2�*��r��A��'�)�B�Q�-�0�1�Q��!�!�(�A�F�F�A�6�2�1��
*�
)��
)�
)��
2�1�s$�!D	�AD�"D!�	D�D�!D*	c���ttt��}|j�|j	t
|j�tt�d�5}|j	t
|j�ddd�ttt��5}|j	t|jt��ddd�y#1swY�TxYw#1swYyxYwrA)	rrrIr:r+r-rr,�floatrs  r<�test_read_bad_argszFileTestCase.test_read_bad_args�s����W�]�+�,��	���	����*�a�f�f�-�
�g�i��
%�����j�!�&�&�1�&�
�g�m�,�
-�����i������9�.�
-�&�
%��
-�
-�s�!C�*C�C�C&c��ttt��5}|jt|j
�ddd�y#1swYyxYwrR)rrr�r+rrrs  r<�test_read_bad_datazFileTestCase.test_read_bad_data�s2��
�g�.�/�
0�A����i����0�1�
0�
0�s�!A�Ac�X�ttt��5}g}|j�x}r$|j	|�|j�x}r�$|jdj
|�t�|j|j�d�ddd�y#1swYyxYwr��rrrI�read1r{rUr|rV�r8r�blocksr[s    r<�
test_read1zFileTestCase.test_read1�s���
�g�m�,�
-���F��G�G�I�%�&�%��
�
�f�%��G�G�I�%�&�%����S�X�X�f�-�u�5����Q�W�W�Y��,�.�
-�
-�s�8B �AB � B)c��ttt��5}|j|j	d�d�ddd�y#1swYyxYw)NrrL)rrrIrUr�rs  r<�test_read1_0zFileTestCase.test_read1_0�s5��
�g�m�,�
-�����Q�W�W�Q�Z��-�.�
-�
-�s�"A�A
c�\�ttt��5}g}|jd�x}r%|j	|�|jd�x}r�%|jdj
|�t�|j|j�d�ddd�y#1swYyxYwrYr�r�s    r<�
test_read1_10zFileTestCase.test_read1_10�s���
�g�m�,�
-���F��G�G�B�K�'�&�'��
�
�f�%��G�G�B�K�'�&�'����S�X�X�f�-�u�5����Q�W�W�Y��,�.�
-�
-�s�:B"�AB"�"B+c�d�tttdz��5}g}|j�x}r$|j	|�|j�x}r�$|jdj
|�tdz�|j|j�d�ddd�y#1swYyxYw)Nr�rLr�r�s    r<�test_read1_multistreamz#FileTestCase.test_read1_multistream�s���
�g�m�a�/�0�
1�Q��F��G�G�I�%�&�%��
�
�f�%��G�G�I�%�&�%����S�X�X�f�-�u�q�y�9����Q�W�W�Y��,�2�
1�
1�s�8B&�AB&�&B/c���ttt��}|j�|j	t
|j�tt�d�5}|j	t
|j�ddd�ttt��5}|j	t|jd�ddd�y#1swY�LxYw#1swYyxYwrA)rrrIr:r+r-r�r,rs  r<�test_read1_bad_argsz FileTestCase.test_read1_bad_args�s����W�]�+�,��	���	����*�a�g�g�.�
�g�i��
%�����j�!�'�'�2�&�
�g�m�,�
-�����i����$�7�.�
-�&�
%��
-�
-�s�!C	�"C�	C�Cc��ttt��5}|j�}|j	t|�d�|j
tj|��|j|j�t�ddd�ttt��5}|jd�}|j	t|�d�|j
tj|��|j|j�t�ddd�y#1swY��xYw#1swYyxYw)Nrrw)rrrI�peek�
assertGreaterrzrWrV�
startswithrUr)r8rr[s   r<�	test_peekzFileTestCase.test_peek�s���
�g�m�,�
-���V�V�X�F����s�6�{�A�.��O�O�E�,�,�V�4�5����Q�V�V�X�u�-�	.�
�g�m�,�
-���V�V�B�Z�F����s�6�{�A�.��O�O�E�,�,�V�4�5����Q�V�V�X�u�-�	.�
-�.�
-��
.�
-�s�A4D+�-A5D7�+D4�7Ec��tt�d�5}|jt|j�ddd�y#1swYyxYwrA)rrr+r-r�rs  r<�test_peek_bad_argszFileTestCase.test_peek_bad_args�s0��
�g�i��
%�����j�!�&�&�1�&�
%�
%�s	�!?�Ac��tt�5}|j�}ddd�ttt��5}|jt
t|���ddd�ttt��5}|jt
t|���ddd�ttt�tj��5}|jt
t|���ddd�ttt�tj��5}|jt
t|���ddd�ttt�tjt��5}|jt
t|���ddd�y#1swY���xYw#1swY��axYw#1swY��)xYw#1swY��xYw#1swY��xYw#1swYyxYwr�)rrV�	readlinesrrI�assertListEqual�list�iterrOr
r2r3rkr0rj�r8r�liness   r<�
test_iteratorzFileTestCase.test_iterator�sO��
�U�^�q��K�K�M�E��
�g�m�,�
-��� � ��d�1�g���6�.�
�g�.�/�
0�A�� � ��d�1�g���6�1�
�g�m�,�T�^�^�
D��� � ��d�1�g���6�E�
�g�.�/��8I�8I�
J�a�� � ��d�1�g���6�K�
�g�.�/�!�_�_�m�E�HI�� � ��d�1�g���6�E�E��^��
-�
-��
0�
0��
D�
D��
J�
J��E�E�sG�F8�%G�%G�%G�0%G+�
%G7�8G�G�G�G(�+G4�7Hc��tt�5}|j�}ddd�ttt��5}D]"}|j|j
�|��$	ddd�y#1swY�SxYw#1swYyxYwrR)rrVr�rrIrU�readline)r8rr��lines    r<�
test_readlinezFileTestCase.test_readline�sa��
�U�^�q��K�K�M�E��
�g�m�,�
-����� � �����t�4��.�
-��^��
-�
-�s�A3�(A?�3A<�?Bc��tt�5}|j�}ddd�ttt��5}|j|j��ddd�y#1swY�KxYw#1swYyxYwrR)rrVr�rrIr�r�s   r<�test_readlineszFileTestCase.test_readlinessW��
�U�^�q��K�K�M�E��
�g�m�,�
-��� � ������6�.�
-��^��
-�
-�s�A+�!A7�+A4�7Bc��tjdtd�zd��}|jt	|�t
j�tt|��}|j|jd�d�dtz}|j|jjj�|d�y)z-Decompressed data buffering should be limited�g��>Ar7rr�z)Excessive amount of data was decompressedN)r
r4rF�
assertLessrzrbrcrrrUrrr��_bufferru�tell)r8�bomb�decomp�
max_decomps    r<�test_decompress_limitedz$FileTestCase.test_decompress_limited	s����}�}�U�S��X�-�a�}�8������D�	�<�#;�#;�<��'�$�-�(��������Q���/��,�,�
����V�^�^�/�/�4�4�6�
�7�	9rLc�R�t�5}t|d�5}|jt�ddd�tjt�}|j
|j�|�ddd�t�5}t|dtj��5}|jt�ddd�tjttj��}|j
|j�|�ddd�t�5}t|dtj��5}|jt�ddd�tjttj��}|j
|j�|�ddd�t�5}t|dtjt��5}|jt�ddd�tjttjt��}|j
|j�|�ddd�y#1swY��xYw#1swY���xYw#1swY���xYw#1swY��hxYw#1swY��0xYw#1swY��xYw#1swY��xYw#1swYyxYw)Nrrr()rrrrVr
r4rU�getvaluer2r3r0rj)r8�dstr�expecteds    r<�
test_writezFileTestCase.test_writes���
�Y�#��#�s�#�q������$��}�}�U�+�H����S�\�\�^�X�6�	�
�Y�#��#�s�4�>�>�:�a������;��}�}�U�4�>�>�}�B�H����S�\�\�^�X�6�	�
�Y�#��#�s�4�+<�+<�=�������>��}�}�U�4�3D�3D�}�E�H����S�\�\�^�X�6�	�
�Y�#��#�s�4�?�?�"/�1�45������1��}�}�U�4�?�?�-:�%�<�H����S�\�\�^�X�6�
�Y�$�#���Y��;�:���Y��>�=���Y��1�1���Y�s��
I�I�AI�I+�I�4AI+�J�4I8�
AJ�-"J�J�%AJ�I	�	I�I�I(	�#I+�+I5�8J	�=J�J�J	�J�J&c	�l�t�5}t|d�5}tdtt�d�D]}|jt||dz��	ddd�tjt�}|j|j�|�ddd�y#1swY�KxYw#1swYyxYw)Nrrrw)
rrryrzrVrr
r4rUr�)r8r�r�startr�s     r<�
test_write_10zFileTestCase.test_write_10,s���
�Y�#��#�s�#�q�"�1�c�%�j�"�5�E��G�G�E�%��b��1�2�6�$��}�}�U�+�H����S�\�\�^�X�6��Y�#�#���Y�s#�
B*�;B�AB*�B'	�#B*�*B3c��tdd}tdd}tdd}djd�|||fD��}t�5}t|d�5}|j	|�ddd�t|d�5}|j	|�ddd�t|d�5}|j	|�ddd�|j|j
�|�ddd�y#1swY�~xYw#1swY�dxYw#1swY�JxYw#1swYyxYw)NrN�rLc3�FK�|]}tj|����y�wrR�r
r4��.0rs  r<�	<genexpr>z1FileTestCase.test_write_append.<locals>.<genexpr>8�����L�6K��D�M�M�!�,�6K���!rr)rVr|rrrrUr�)r8�part1�part2�part3r�r�rs       r<�test_write_appendzFileTestCase.test_write_append4s����e�t����d�4� ���d�e����8�8�L�u�e�U�6K�L�L��
�Y�#��#�s�#�q������$��#�s�#�q������$��#�s�#�q������$����S�\�\�^�X�6��Y�#�#��#�#��#�#���Y�sT�
D�C� D�4C)�D�C5�,(D�C&	�"D�)C2	�.D�5C>	�:D�D
c��	ttd�5}|jt�|j	|j�t�|j|j�d�|j|j�d�|j|j�d�|j|jd�ddd�|jjd�|jt|j
�|jt|j�|jt|j�|jt|j�tjt�}t!td�5}|j#|j%�|�ddd�t't�y#1swY��xYw#1swY�&xYw#t't�wxYw)NrFTr)rr
rrVrErDrFrlrNrRrKr;r+r-r
r4rrUrr)r8rr�s   r<�test_write_to_filezFileTestCase.test_write_to_fileBsE��	��&�#�&�!�������%�%�a�h�h�j�#�6��
�
�a�j�j�l�E�2��
�
�a�j�j�l�D�1��
�
�a�j�j�l�E�2��
�
�a�h�h��.�
'�
�M�M�!�(�(�D�)����j�!�(�(�3����j�!�*�*�5����j�!�*�*�5����j�!�*�*�5��}�}�U�+�H��f�d�#�q�� � �����8�4�$�
�6�N�#'�&��$�#��
�6�N�s<�G'�B6G�C
G'�!G�6G'�G�G'�G$� G'�'G8c��tjt�}	t|d�5}|j	t
�ddd�tjt
�}ttd�5}|j|j�|�ddd�tt�y#1swY�kxYw#1swY�%xYw#tt�wxYw)Nrr)rorpr
rrrVr
r4rrUrr)r8rqrr�s    r<�&test_write_to_file_with_bytes_filenamez3FileTestCase.test_write_to_file_with_bytes_filenameWs������V�,��	��.�#�.�!������/��}�}�U�+�H��f�d�#�q�� � �����8�4�$�
�6�N�
/�.��$�#��
�6�N�s9�B?�B'�1B?�.!B3�B?�'B0�,B?�3B<�8B?�?Cc�L�	ttd�5}t|d�5}|jt�|j|j
�|j
��|j|j�d�|j|j�d�|j|j�d�|j|jd�ddd�|jjd�|jt|j�|jt|j�|jt|j�|jt|j�ddd�tjt�}ttd�5}|j|j!�|�ddd�t#t�y#1swY��xYw#1swY�xxYw#1swY�2xYw#t#t�wxYw�NrrFTr)rr
rrrVrUrDrlrNrRrKr;r+r-r
r4rr)r8rurr�s    r<�test_write_to_fileobjz"FileTestCase.test_write_to_fileobjbsg��	��f�d�#�s��c�3�'�1��G�G�E�N��$�$�Q�X�X�Z�����>��M�M�!�*�*�,��6��M�M�!�*�*�,��5��M�M�!�*�*�,��6��M�M�!�(�(�E�2�
(��
�
�a�h�h��-��!�!�*�a�h�h�7��!�!�*�a�j�j�9��!�!�*�a�j�j�9��!�!�*�a�j�j�9�$��}�}�U�+�H��f�d�#�q�� � �����8�4�$�
�6�N�#(�'��$�#��$�#��
�6�N�sS�H�
G:�CG-�B$G:�1H�4!H�H�-G7	�2G:�:H�?H�H�H�H#c���	tjttjtjztj
z�}t|d�5}t
|d�5}|jt�|j|j�|j��|j|j�d�|j|j�d�|j|j�d�|j|jd�ddd�|jjd�|j!t"|j�|j!t"|j�|j!t"|j�|j!t"|j�ddd�t$j't�}ttd�5}|j|j)�|�ddd�t+t�y#1swY��xYw#1swY�xxYw#1swY�2xYw#t+t�wxYwr�)rorr
�O_WRONLY�O_CREAT�O_TRUNCrrrVrUrDrlrNrRrKr;r+r-r
r4rr)r8ryrurr�s     r<�#test_write_to_fileobj_with_int_namez0FileTestCase.test_write_to_fileobj_with_int_namexs���	��������r�z�z�!9�B�J�J�!F�G�B��b�$��3��c�3�'�1��G�G�E�N��$�$�Q�X�X�Z�����>��M�M�!�*�*�,��6��M�M�!�*�*�,��5��M�M�!�*�*�,��6��M�M�!�(�(�E�2�
(��
�
�a�h�h��-��!�!�*�a�h�h�7��!�!�*�a�j�j�9��!�!�*�a�j�j�9��!�!�*�a�j�j�9� ��}�}�U�+�H��f�d�#�q�� � �����8�4�$�
�6�N�#(�'�� ���$�#��
�6�N�sV�AI�
I�%CH3�%B$I�	1I�:!I�I�3H=	�8I�I	�I�I�I�I)c��tdd}tdd}tdd}djd�|||fD��}	ttd�5}|j	|�ddd�ttd�5}|j	|�ddd�ttd�5}|j	|�ddd�ttd�5}|j
|j�|�ddd�tt�y#1swY��xYw#1swY��xYw#1swY�jxYw#1swY�=xYw#tt�wxYw)NrNr�rLc3�FK�|]}tj|����y�wrRr�r�s  r<r�z9FileTestCase.test_write_append_to_file.<locals>.<genexpr>�r�r�rrr)	rVr|rr
rrrUrr)r8r�r�r�r�rs      r<�test_write_append_to_filez&FileTestCase.test_write_append_to_file�s����e�t����d�4� ���d�e����8�8�L�u�e�U�6K�L�L��
	��&�#�&�!������'��&�#�&�!������'��&�#�&�!������'��f�d�#�q�� � �����8�4�$�
�6�N�'�&��&�&��&�&��#�#��
�6�N�sk�D/�C?�D/�2D�D/�D�.D/�!D#�'D/�?D�D/�D�D/�D �D/�#D,�(D/�/Ec�D�tt�d�}|j�|jt|j
d�ttt�d�5}|jt|j
d�ddd�tt�d�5}|jt|j
d�|jt|j
d�|jt|j
d�ddd�y#1swY��xYw#1swYyxYw)Nrr)rr*�texti)rrr:r+r-rrIr,rs  r<�test_write_bad_argsz FileTestCase.test_write_bad_args�s����W�Y��$��	���	����*�a�g�g�v�6�
�g�m�,�c�
2�a����j�!�'�'�6�:�3�
�g�i��
%�����i����$�7����i����&�9����i����#�6�&�
%�3�
2��
%�
%�s�"D
�A$D�
D�Dc��tt�5}|j�}ddd�t�5}t|d�5}|j	�ddd�t
j
t�}|j|j�|�ddd�y#1swY�|xYw#1swY�WxYw#1swYyxYwrA)	rrVr�r�
writelinesr
r4rUr�)r8rr�r�r�s     r<�test_writelineszFileTestCase.test_writelines�s���
�U�^�q��K�K�M�E��
�Y�#��#�s�#�q����U�#�$��}�}�U�+�H����S�\�\�^�X�6�	�Y��^��$�#���Y�s/�B�
B4�B(�AB4�B%�(B1	�-B4�4B=c���ttt��5}|jd�|j	|j�tdd�ddd�y#1swYyxYw)Ni+�rrrI�seekrUrrVrs  r<�test_seek_forwardzFileTestCase.test_seek_forward�sD��
�g�m�,�
-��
�F�F�3�K����Q�V�V�X�u�S�T�{�3�.�
-�
-�s�9A�A$c���tttdz��5}|jt	t
�dz�|j
|j�t
dd�ddd�y#1swYyxYw)Nr��{)rrrIr�rzrVrUrrs  r<� test_seek_forward_across_streamsz-FileTestCase.test_seek_forward_across_streams�sS��
�g�m�a�/�0�
1�Q�
�F�F�3�u�:��#�$����Q�V�V�X�u�S�T�{�3�2�
1�
1�s�A	A.�.A7c���ttt��5}|jd�|j	dd�|j|j�tdd�ddd�y#1swYyxYw)Nr�i�r�i8�rrrIrr�rUrVrs  r<�%test_seek_forward_relative_to_currentz2FileTestCase.test_seek_forward_relative_to_current�sQ��
�g�m�,�
-��
�F�F�3�K�
�F�F�4��O����Q�V�V�X�u�T�U�|�4�.�
-�
-�s�AA-�-A6c���ttt��5}|jdd�|j	|j�tdd�ddd�y#1swYyxYw)Ni���r�r�rs  r<�!test_seek_forward_relative_to_endz.FileTestCase.test_seek_forward_relative_to_end��F��
�g�m�,�
-��
�F�F�4��O����Q�V�V�X�u�T�U�|�4�.�
-�
-���:A�A%c���ttt��5}|jd�|j	d�|j|j�tdd�ddd�y#1swYyxYw)Ni���r�rs  r<�test_seek_backwardzFileTestCase.test_seek_backward�sO��
�g�m�,�
-��
�F�F�4�L�
�F�F�3�K����Q�V�V�X�u�S�T�{�3�.�
-�
-�s�A
A,�,A5c�$�tttdz��5}|jt	t
�dz�|j
d�|j|j�t
ddt
z�ddd�y#1swYyxYw)Nr�iMi�)rrrIrrzrVr�rUrs  r<�!test_seek_backward_across_streamsz.FileTestCase.test_seek_backward_across_streams�sc��
�g�m�a�/�0�
1�Q�
�F�F�3�u�:��#�$�
�F�F�3�K����Q�V�V�X�u�S�T�{�U�':�;�2�
1�
1�s�A!B�Bc���ttt��5}|jdd�|j	|j�tdd�ddd�y#1swYyxYw)Nij���r�r�rs  r<�"test_seek_backward_relative_to_endz/FileTestCase.test_seek_backward_relative_to_end�r�r�c�:�ttt��5}|jt	t
�dz�|j
|j�t	t
��|j
|j�d�ddd�y#1swYyxYw)N�)#rL)	rrrIr�rzrVrUr�rrs  r<�test_seek_past_endzFileTestCase.test_seek_past_end�sb��
�g�m�,�
-��
�F�F�3�u�:��$�%����Q�V�V�X�s�5�z�2����Q�V�V�X�s�+�.�
-�
-�s�A/B�Bc��ttt��5}|jd�|j	|j�d�|j	|j
�t�ddd�y#1swYyxYw)Ni����r)rrrIr�rUr�rrVrs  r<�test_seek_past_startz!FileTestCase.test_seek_past_start�sT��
�g�m�,�
-��
�F�F�3�K����Q�V�V�X�q�)����Q�V�V�X�u�-�.�
-�
-�s�AA8�8Bc��ttt��}|j�|j	t
|jd�tt�d�5}|j	t
|jd�ddd�ttt��5}|j	t
|jdd�|j	tt
f|jdd�|j	t|jd�|j	t|jd�ddd�y#1swY��xYw#1swYyxYw)Nrrr�	r#sderp)rrrIr:r+r-r�r,rs  r<�test_seek_bad_argszFileTestCase.test_seek_bad_args�s����W�]�+�,��	���	����*�a�f�f�a�0�
�g�i��
%�����j�!�&�&�!�4�&�
�g�m�,�
-�����j�!�&�&�!�Q�7����y�*�5�q�v�v�q�"�E����i�����6����i�����9�.�
-�&�
%��
-�
-�s�"D6� B
E�6D?�Ec��ttt��5}d}	|j|j	�|�|jd�}|sn|t
|�z
}�C|j|j	�t
t��ddd�tt�d�5}tdt
t�d�D]=}|j|j	�|�|jt||dz��?|j|j	�t
t��ddd�y#1swY��xYw#1swYyxYw)Nr�r�)
rrrIrUr�rrzrVryr)r8r�posr[s    r<�	test_tellzFileTestCase.test_tell�s��
�g�m�,�
-���C��� � �����3�/����������s�6�{�"���
���Q�V�V�X�s�5�z�2�.��g�i��
%���Q��E�
�C�0��� � �����3�/�����c�#�c�'�*�+�1�
���Q�V�V�X�s�5�z�2�	&�
%�.�
-��&�
%�s�A4D:�)BE�:E�Ec��ttt��}|j�|j	t
|j�yrR)rrrIr:r+r-r�rs  r<�test_tell_bad_argszFileTestCase.test_tell_bad_argss.���W�]�+�,��	���	����*�a�f�f�-rLc��t�}|jtd��}|jt	|�d�|j|j�t�}|jtd��}|j|j�|j|j�|jd�}|jt	|�d�|j|j�|j||z|�y)Nr�r�ih3i]3rL�)	rr6�ISSUE_21872_DATrUrzrWrTrSr�)r8�d1�entire�d2�out1�out2s      r<�test_issue21872zFileTestCase.test_issue21872s����
������2��>������V��e�,��������
�
��
�}�}�_��}�?��������(������� ��}�}�S�!������T��B�'��������������f�-rLc�8�tjdgd��}t|�|jz}tt	�d�5}|j|j
|�|�|j|j�|�ddd�y#1swYyxYw)N�Q)r�r�rr^r�r)�arrayrz�itemsizerrrUrr�)r8�q�LENGTHrs    r<�test_issue44439zFileTestCase.test_issue44439&sl���K�K��_�-���Q��!�*�*�$��
�g�i��
%�����Q�W�W�Q�Z��0����Q�V�V�X�v�.�&�
%�
%�s
�AB�BN)Er�r�r�rrrrr!r)r/r3r5r8r?rBrGrLrOrSrUrWr\r_rerhrjrmrrrvrzr|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr#rLr<rrsN���6��
�'�3�0G�(7�"B�"6�
�("�"0� 2�42�"2�",�:-�6�2�	9�.�2�6� 0�:�":�$0�7�:�1�-�.�-�-�8�
.�2�
7�5�7�	9�7�07�7��*	��,�.�"	7�7�4�
4�
5�5�
4�<�5�
,�.�:�3� .�
.�</rLrc�H�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zy)�OpenTestCasec���tjtt�d�5}|j	|j�t�ddd�t�5}tj|d�5}|jt�ddd�tj|j��}|j	|t�tj|d�5}|jt�ddd�tj|j��}|j	|tdz�ddd�y#1swY��xYw#1swY��xYw#1swY�fxYw#1swYyxYw)Nrrrr�)
r
rrrIrUrrVrr6r�)r8r�bio�	file_datas    r<�test_binary_modeszOpenTestCase.test_binary_modes1s���
�Y�Y�w�}�-�t�
4�����Q�V�V�X�u�-�5�
�Y�#����3��%�������&��������7�I����Y��.����3��%�������&��������7�I����Y���	�2��Y�5�
4��&�%��&�%���Y�sI�%E�E&�2E�AE&�E�5AE&�E�E	�E&�E#	�E&�&E/c�p�tjd�}|jdtj�}t
j
tt�dd��5}|j|j�|�ddd�t�5}t
j
|dd��5}|j|�ddd�t
j|j��jd�}|j||�t
j
|dd��5}|j|�ddd�t
j|j��jd�}|j||dz�ddd�y#1swY��
xYw#1swY��xYw#1swY�rxYw#1swYyxYw)N�ascii�
r&��encodingr'�atr�)rV�decode�replacero�linesepr
rrrIrUrrr6r�)r8�uncompressed�uncompressed_rawrrrs      r<�test_text_modeszOpenTestCase.test_text_modes>s=���|�|�G�,��'�/�/��b�j�j�A��
�Y�Y�w�}�-�t�g�Y�
F�!����Q�V�V�X�|�4�G�
�Y�#����3��w��7�1�����%�8��������7�>�>�w�G�I����Y�(8�9����3��w��7�1�����%�8��������7�>�>�w�G�I����Y�(8�1�(<�=��Y�G�
F��8�7��8�7���Y�sJ�!F�F,�'F�9A$F,�F �/AF,�F�F	�F,� F)	�%F,�,F5c�l�tt�5tjtd�5}|j	t
�ddd�ttd�5}tj
|j��}|j|t
�ddd�tjtd�5}|j|j�t
�ddd�tjtd�5}|j	t
�ddd�tjtd�5}|j|j�t
dz�ddd�ddd�y#1swY��.xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swY�CxYw#1swYyxYw)Nrrrr�)	r�r
r
rrrVr6rrU)r8rrs   r<�
test_filenamezOpenTestCase.test_filenameMs��
�f�
����6�4�(�A������)��f�d�#�q� �O�O�A�F�F�H�5�	�� � ��E�2�$����6�4�(�A�� � �����5�1�)����6�4�(�A������)����6�4�(�A�� � �����5�1�9�5�)��
�(�(��#�#��)�(��(�(��(�(���
�s��F*�E-�F*�:E:�"F*�5%F�"F*�<F�"F*�4(F�F*�-E7	�2F*�:F	�?F*�F	�F*�F	�F*�F'	�#F*�*F3c�4�tt�}t|�5tj	|d�5}|jt�ddd�t	|d�5}tj|j��}|j|t�ddd�tj	|d�5}|j|j�t�ddd�ddd�y#1swY��xYw#1swY�axYw#1swY�*xYw#1swYyxYw)Nrr)
rr
r�r
rrrVr6rrU)r8r�rrs    r<�test_with_pathlike_filenamez(OpenTestCase.test_with_pathlike_filename[s����F�#��
�h�
����8�T�*�a������+��h��%�� �O�O�A�F�F�H�5�	�� � ��E�2�&����8�T�*�a�� � �����5�1�+�
 �
�*�*��%�%��+�*��
 �
�sR�D�C*�D�:C6�D�4%D�D�*C3	�/D�6C?	�;D�D	�D�Dc��|jt�5tjtd�ddd�|jt�5tjtd�ddd�|jt�5tjtdd��ddd�|jt�5tjtdd��ddd�|jt�5tjtdd�	�ddd�y#1swY��xYw#1swY��xYw#1swY��xYw#1swY�hxYw#1swYyxYw)
Nr�rbtrzutf-8r�ignore)�errorsr)�newline)r+r-r
rr
rFs r<�test_bad_paramszOpenTestCase.test_bad_paramsfs���
�
�
�z�
*��I�I�f�b�!�+�
�
�
�z�
*��I�I�f�e�$�+�
�
�
�z�
*��I�I�f�d�W�I�5�+�
�
�
�z�
*��I�I�f�d�8�I�4�+�
�
�
�z�
*��I�I�f�d�D�I�1�+�
*�+�
*��
*�
*��
*�
*��
*�
*��
*�
*�s;�D �D,�D8�E�:E� D)�,D5�8E�E
�Ec� �tjtd�}tjt	t
�dfi|��5}|j
|j�t�ddd�t	�5}tj|dfi|��5}|jt�ddd�tj|j�fi|��}|j
|t�ddd�y#1swY��xYw#1swY�XxYw#1swYyxYw)Nr(rr)r
r0r1rrrfrUrrVrr6r�)r8�optionsrrrs     r<�test_format_and_filtersz$OpenTestCase.test_format_and_filtersss���!�_�_��G��
�Y�Y�w�/�0�$�
B�'�
B�a����Q�V�V�X�u�-�C�
�Y�#����3��0��0�A������1��������B�'�B�I����Y��.�	�Y�C�
B��1�0���Y�s0�%C,�3D�C8�!AD�,C5�8D	�=D�D
c�l�tjd�}|jdtj�}t�5}tj|dd��5}|j|�ddd�tj|j��jd�}|j||�|jd�tj|dd��5}|j|j�|�ddd�ddd�y#1swY��xYw#1swY�xYw#1swYyxYw)Nrrr'z	utf-16-lerrr&)rVrrrorrr
rrr6r�rUr�r)r8rr rrrs      r<�
test_encodingzOpenTestCase.test_encoding~s����|�|�G�,��'�/�/��b�j�j�A��
�Y�#����3��{��;�q�����%�<��������7�>�>�{�K�I����Y�(8�9��H�H�Q�K����3��{��;�q�� � �����<�8�<�
�Y�;�;��
<�;��
�Y�s=�D*�D�+A5D*� !D�D*�D	�D*�D'	�#D*�*D3c��ttjd��5}tj|ddd��5}|j	|j�d�ddd�ddd�y#1swY�xYw#1swYyxYw)Nsfoo�barr&rr()rr)�foobar)rr
r4rrUr)r8rrs   r<�test_encoding_error_handlerz(OpenTestCase.test_encoding_error_handler�s_��
�T�]�]�=�1�
2�c����3��w�x��H�A�� � �����8�4�I�3�
2�H�H��3�
2�s"�A7�!A+�A7�+A4	�0A7�7Bc��tjd�}t�5}tj	|ddd��5}|j|�ddd�|j
d�tj	|ddd��5}|j|j�|g�ddd�ddd�y#1swY�fxYw#1swY�xYw#1swYyxYw)Nrr'r)rr*rr&�
)	rVrrr
rrr�rUr�)r8r�rrs    r<�test_newlinezOpenTestCase.test_newline�s����|�|�G�$��
�Y�#����3��w���E������
�F��H�H�Q�K����3��w���E��� � �������7�F�	�Y�E�E��F�E��	�Y�s:�C	�B1�2C	�>"B=� C	�1B:	�6C	�=C	�C	�	Cc��|jtt�dD]�}tt�d|vrdnd}tj	t||��5	ddd�|jt�5tj	t|�5	ddd�ddd���y#1swY�NxYw#1swY� xYw#1swY��xYw)N)rrr#�trr)rrr
r
rr+r)r8r rs   r<�test_x_modezOpenTestCase.test_x_mode�s��������'�%�D��6�N�"%��+�w�4�H����6�4�(��;��<��"�"�?�3��Y�Y�v�t�,��-�4�3�&�<�;��-�,��4�3�s0�B"�2B:�
B.�B:�"B+	�.B7�3B:�:C	N)
r�r�r�rr!r#r%r+r.r0r3r6r9r#rLr<rr/s4��3�
>�6�	2�2�	/�9�5�8�	rLrc�$�eZdZd�Zd�Zd�Zd�Zy)�MiscellaneousTestCasec��|jtjtj��|jtjtj��|jtjtjdz��|jtjtj��yr�)rWr
�is_check_supportedr^r-rSr,r+rFs r<�test_is_check_supportedz-MiscellaneousTestCase.test_is_check_supported�s���	
����/�/����@�A�����/�/��0@�0@�A�B�	
����0�0��1B�1B�Q�1F�G�H�	
����0�0��1C�1C�D�ErLc���|jt�5tjd�ddd�|jt�5tjddi�ddd�|jt�5tjtj
dd��ddd�|jtj�5tjtjdd��ddd�tjtjdd	d
dd��}|j|d
�y#1swY��
xYw#1swY��xYw#1swY��xYw#1swY�jxYw)Ns
not a dictr!�r~)r!�junkr��r!�distr�rr��)r!�pb�lp�lc�	dict_size�]�)
r+r,r
�_encode_filter_propertiesr-r/rrD�FILTER_LZMA1rU)r8�propss  r<�test__encode_filter_propertiesz4MiscellaneousTestCase.test__encode_filter_properties�s��
�
�
�y�
)��*�*�=�9�*�
�
�
�z�
*��*�*�D�%�=�9�+�
�
�
�z�
*��*�*�$�2C�2C�R�+P�Q�+�
�
�
�t�~�~�
.��*�*�$�2C�2C�37�,9�
:�/�
�.�.��'�'����$�0���	
���� 4�5�%*�
)��
*�
*��
*�
*��
.�
.�s/�D7�	E�>'E�'E�7E�E
�E�E%c��|jt�5tjtjdt
i�ddd�|jtj�5tjtjd�ddd�tjtjd�}|j|dtj�|j|dd�|j|dd�|j|d	d
�|j|dd�tjtjtjtjtjtjg}|D],}tj|d
�}|j|d|i��.y#1swY��xYw#1swY��@xYw)Nz	should bestoo longrIr!rEr�rFrrGrrHrDrL)r+r,r
�_decode_filter_propertiesrEr�rrDrKrU�FILTER_POWERPC�FILTER_IA64�
FILTER_ARM�FILTER_ARMTHUMB�FILTER_SPARC)r8�
filterspecrrs    r<�test__decode_filter_propertiesz4MiscellaneousTestCase.test__decode_filter_properties�sb��
�
�
�y�
)��*�*�4�?�?�[�%�<P�Q�*�
�
�
�t�~�~�
.��*�*�4�+<�+<�k�J�/��3�3��!�!�#7�9�
�����D�)�4�+<�+<�=�����D�)�1�-�����D�)�1�-�����D�)�1�-�����K�0�'�:��?�?�D�$7�$7��#�#�T�_�_��'�'��):�):�<���A��7�7��3�?�J����Z�$���3��%*�
)��
.�
.�s�+F>�(%G�>G�Gc���tjtjd�}tj|�}tjtj|�}|j	||�y)NrI)r
rOrKrJrU)r8�spec1�	reencoded�spec2s    r<� test_filter_properties_roundtripz6MiscellaneousTestCase.test_filter_properties_roundtrip�sV���.�.��!�!�#7�9���2�2�5�9�	��.�.�t�/@�/@�)�L�������&rLN)r�r�r�r>rMrVr[r#rLr<r;r;�s��
F�6�*4�.'rLr;s�
LAERTES

       O, fear me not.
       I stay too long: but here my father comes.

       Enter POLONIUS

       A double blessing is a double grace,
       Occasion smiles upon a second leave.

LORD POLONIUS

       Yet here, Laertes! aboard, aboard, for shame!
       The wind sits in the shoulder of your sail,
       And you are stay'd for. There; my blessing with thee!
       And these few precepts in thy memory
       See thou character. Give thy thoughts no tongue,
       Nor any unproportioned thought his act.
       Be thou familiar, but by no means vulgar.
       Those friends thou hast, and their adoption tried,
       Grapple them to thy soul with hoops of steel;
       But do not dull thy palm with entertainment
       Of each new-hatch'd, unfledged comrade. Beware
       Of entrance to a quarrel, but being in,
       Bear't that the opposed may beware of thee.
       Give every man thy ear, but few thy voice;
       Take each man's censure, but reserve thy judgment.
       Costly thy habit as thy purse can buy,
       But not express'd in fancy; rich, not gaudy;
       For the apparel oft proclaims the man,
       And they in France of the best rank and station
       Are of a most select and generous chief in that.
       Neither a borrower nor a lender be;
       For loan oft loses both itself and friend,
       And borrowing dulls the edge of husbandry.
       This above all: to thine ownself be true,
       And it must follow, as the night the day,
       Thou canst not then be false to any man.
       Farewell: my blessing season this in thee!

LAERTES

       Most humbly do I take my leave, my lord.

LORD POLONIUS

       The time invites you; go; your servants tend.

LAERTES

       Farewell, Ophelia; and remember well
       What I have said to you.

OPHELIA

       'Tis in my memory lock'd,
       And you yourself shall keep the key of it.

LAERTES

       Farewell.
sthis is not a valid lzma streams �7zXZ�ִF!t/����]bX��n�䴝o��
�2h�\������6�(�wd�"u.n�򎍏/�=��/M��ާz-]���rZ����o��#z/��F��M��t�6 BF$�Q����l��,bnԨ��NȆ3�x2�O@Q�/��O��o��z��S�t<�I#�ud�6Y����]��-Pe�e:	��7
�p�J���V���%G��=?�(΂=�I�3R��
�i����sP��X�2j�L��b���c-H�oJl�iQ�k��������?@���x�H12P���uw㾪i�WЀ�#cb5��]�d���Wl�UG��yF�7�v�5��h8W��5:?rD������5@���7��cԗi�tS�k�Kvy���6T�e
�]:k�l��a�4�r�}r���*�z�8h��Ӽl�-��K����Z��L�3Ϝ������!��^�9w �P�PKd��Z}����%$��/��&,�qh{Q�)�q�À����o�!�[Ԋw�t����`^�??\���RԎ��X�a����Ы������S�>ɕH��	
%��$.o��Rb��U�^�S��/���v�r�̢Gkzʀ�Ћ��Ix�y�-0�z^�֏_�P�i��萄ܿ�ky�܁��+���\�����Y�Y�h���w̴� �|�ej��z�`��A叩	�=��_�%voZO��	�M-�<"CM�g~b����|�'��x�!J�F�u8�7y��u�_���@��qc�#��5�)_
�3]o]5�my��K+��b� ��t����0���ȏ׮�+iܹk�>f�
��$�{pƈ0����_���h6�Z%'�
��"�冟7X=mNX[�FUɆ0��a+* �_$��_��ޯ46q�ɒ���`��}������ʮ`w�جVe�Z���#��d{w
����B:�^V�aH��
\X���u#%�*�v��!	4Vj?uLU���tw�P��g�YZs�]���������bX��n�䴝o��
�2h�\������6�(�wd�"u.n�򎍏/�=��/M��ާz-]���rZ����o��#z/��F��M��t�6 BF$�Q����l��,bnԨ��NȆ3�x2�O@Q�/��O��o��z��S�t<�I#�ud�6Y����]��-Pe�e:	��7
�p�J���V���%G��=?�(΂=�I�3R��
�i����sP��X�2j�L��b�pl�jr�=	�3!E�vV�F�״�P~��E�7�ƻ�c%�I�;�砋�Z�(���o>`᪨١�}獃4T���㘼DMA@���ȓ��Sa�śTJE}��g#ZVɝc�>0�S�/y_�(�r���?��@��:�z����BeyX�� :	��xD\&G�Y�J�v{���)A�o5����F?v��VtTf�����'k���\Y��|w��d�d������ �� ,�X��s��v�}���%
ߢ.�6
��h
� �Bl�U}�s�H�pB�8���Z��A��;z��{5!���A���$�qg��/|�r�^����=�n�6{>8
�:�'�.�
���:݂'[�"wD$�w�q�,1��,�2w�$Jdmg��A��&�8i��;�NQrh�eL;�m�Q�����N����[���j�EOli�B^���R]����.��-�e����iN�wbQ�~餈4�kM�)T�3�)��B���^��..��	�H�5�#�NV��$Kk�
�t�'�R��2�-LH��0~?SO�E]��<Z0a*?�r����nG�d^��8�uEI�
Vⳕ���i!�&1F�DP� SO3D!w�_G+�.��]�>�#h;5J�K�^-[��\�ʯ�ԡ�ĸp���r���r.l []��+0�gaKY�I�,
���V�_#���>w�W,�
�63�J�2=kT�Uti�_���lh�f���xr)r!rs���]bX��n�cyq���m�'��� �Q��I���VL8_�뼥�
W$=R;�k8	�{��+��c��S3����m����b�4*���+�.�9�b�ZrA�0s"r�G�ސcu�۩.Al�<��Oi�Ŵ��g4t6"��o�?^}�}[:��
[�lg�2���n��7@��6T�u�	��8�[4�PCV�"��x~�N�K���%�k:{6�����è\�@�F_Ȑ�sU��8�7J�Mг;X�﮳eO,�z,dy�jlB�8#�6��PK�P؈ҡC?۔_�"��eޛ��>H�;�#��4�ź%v�9�A�"��2�i���3߾�Dm7���o:J�ہ6�O���	Q펕S/M�S�J�������d�=^B��E�͑��G�.��b&ٟ�j���\Cv�Ҋ?^H��>����IqY��K7�D�W���O���l�5�U�{��ϣk{�����O*��B-�(R�@E��:�V�Y��]�ĥ�gX���3]n콣Y���u�*�T�A$A�A����iw젇�%��=����D���ѻq����Cqp�L��� �"�t����~���c�ix���)l)�@l��ynD�:Җ��?������%_����
h�#�7QD�hnѣ_?q���17��_�|�ʷ�S�W��t�9L�|�W��s�L�_�$����F��kvf�hî�1�Q��G���5��yI�cw�rIp:p_�v�a"�ّ�e����ëH*m}��}>l%΄��d�ӂ��5fOg���^&	@ΟJ����{�����r�z�M�ho�^��������U7�\!��k�Ud~�熊z;��PG��w�^ı����3Sf ��@�売����s�xRD�`W���ϑ
TZ-X�����|�������^��[��7֢		Q5/@S�5�VhAKVC
���M�xO�O�<�e*�Hk6�G+�)͜l�����K}�5��u�*F�2r�rBs����]-Ԩd?ᆵH�2�.�g�����5z���	[}W�mH��g��Q�R�A�5���
v~�:o:J�Cc��*o��\l�E
��2aU{׸wܾ�8���8\����[_9�%�����fs#=�<�\t���=�7ft\��Q��8�Ԫ�آ>-ӎ�#��ArAm�J~��B����(`WK��kaj �����S�%��i�X�B�;E�e����T�bg�
�jу�]"M�r�\�j~PGH�N*Z.�	pE��1�ͩ��H�������P�~��0����JK�]�9���F���_�[�ԋ�6뿻�$kS{��,f:Sjz��殘�Q~r�?��&ˀ	��|x���|�dhh+'Ł�3�q���`Z#܊����I�l{�6���ճx�hz%��ݘ!��RUa���X�1�=R��0㤚�bd�$]B��h2c�L`4�x�Z�
]T^؉�
;�Y�9z�o�)f�]$n
p����������;�Q����K� @�:UcX
!��"=.6�g=�Wn����O���T���D��W3pnt�VOj�M�i��$3�܊f��Y
���K��hwO��2^&�V�
�i=yZ�o�ƶ���
��w�%�c�`]���8�m�Q���h`[q���0g�"N��R�)(�0\��G!���x��z������H�y�M
\A	ar�M��ꄛ!��~
�H��oڇh颾�qN��!WGڡ�A��`j���?5B�~E�!^�ݨy}�)�)����D��2f�uɗ��x4_6�$t�9�=˿v\���8jk�)ff�nĩ�����M����I�E���5��T�p��Ӊ3�/�֏ou;��PR����Fj�$�h��K(�c�7��)ݲ,���.yQi��`h-���	��^��[!�M��.���-S+�8,� �ë~�$e���P]i�o�g^
E�����k`�~�y�+�^D��"!�ҧ�T��5Y�4Z�H���f]όx����3��TUH���y�7��X�� �( /��\����J�vP8��~�4kA�y��P��J�N���aO�����:���e�q�ACmw�	�u���CwUP��8L4w!�L2 ����j�;V��ːlv@E�����Z[��E`>�ޡbZ�Щ`{�;�f��k1.��N��(���u���!L����Г����Bjc_�}d�àY��/��,�bl@�p��8�q�uH�X���}OX�ݾ����e�O`CF=K�$I_�X�J'v�+�.v�Tv�5ṑ�S��"(�x�CX����pS��'J�!��G	��2oS���d��y���,�f�
ߞE��\L��h��}���W#\�o�z�r@)r!�start_offsetr!s����]bX��n�䴝o��
�2h�\������6�(�wd�"u.n�򎍏/�=��/M��ާz-]���rZ����o��#z/��F��M��t�6 BF$�Q����l��,bnԨ��NȆ3�x2�O@Q�/��O��o��z��S�t<�I#�ud�6Y����]��-Pe�e:	��7
�p�J���V���%G��=?�(΂=�I�3R��
�i����sP��X�2j�L��b���c-H�oJl�iQ�k��������?@���x�H12P���uw㾪i�WЀ�#cb5��]�d���Wl�UG��yF�7�v�5��h8W��5:?rD������5@���7��cԗi�tS�k�Kvy���6T�e
�]:k�l��a�4�r�}r���*�z�8h��Ӽl�-��K����Z��L�3Ϝ������!��^�9w �P�PKd��Z}����%$��/��&,�qh{Q�)�q�À����o�!�[Ԋw�t����`^�??\���RԎ��X�a����Ы������S�>ɕH��	
%��$.o��Rb��U�^�S��/���v�r�̢Gkzʀ�Ћ��Ix�y�-0�z^�֏_�P�i��萄ܿ�ky�܁��+���\�����Y�Y�h���w̴� �|�ej��z�`��A叩	�=��_�%voZO��	�M-�<"CM�g~b����|�'��x�!J�F�u8�7y��u�_���@��qc�#��5�)_
�3]o]5�my��K+��b� ��t����0���ȏ׮�+iܹk�>f�
��$�{pƈ0����_���h6�Z%'�
��"�冟7X=mNX[�FUɆ0��a+* �_$��_��ޯ46q�ɒ���`��}������ʮ`w�جVe�Z���#��d{w
����B:�^V�aH��
\X���u#%�*�v��!	4r^�@)r!rrGs��\bW�h��'֐,�vJq l��xB�f=&fx�
>Tn���F��v_�?�V<�#�w�����؞��*�]c�~��]Eg��"8��=~�W��D��Ǚ��1�u�9���hw|��l�k�6o7��{Y_b��$�=��w�Z@�kmE���*ح���{�j,)mB<�ca�(� ���-���c��'B�`װ����]�Bܖ��6D�Ճ1��&5� PZ&j��ŏ�Sӥ�u�$̗o�V~�����xW�p4��HDY�)�t�"��F���ߥ�"�x���Ȓ
�[l*Yر@�o�7r�u�5�$U{	}Q�xN��XX�`���v-f�/\��)B�g�#2B2444q	�93?mPX��a�)d����j���w��2�A\�C3��!��o[�:0�.��@\4��Jv��4�k�kf�ss�^�e�a�=&�r�p�EՀy���k�T�H�oŌ�0��-e\����������>���k���	��!��^�qA�<EG��񶹂��s�a��̒ҶU�نa��TG@	7*�޼]6N�񄞟���'�<ߙsqН���%p4�{����=M�H:��֤�0�D�Ө�S� `���W� 7�N#
�	��1������a���l�	jA�:��\=D�3]����eZ�A��dgFQ����qB�r�����o仴��@����d�Q
�/ظS5�:�g��D��zڐ�5H!	�u�R�l�Q���O����b�	R���A� �-IGE��$���j��Ѫ��I2s�5���3��D0�%�P}JO^h��lV.�o��wඤ�*�r�G+��i[w�@_�y��W.��-��mU6g�SA(��=ޒ�,D�������nE�\��Y��ˌ�����~�
E�uV�ƙ�m<[u�1
�w�%!�[·�B�,%d�f�"�g.�3�XY+4�qA
=9�*�/�s�1b@���FQ\�������,E�7[����!mA}��3R5�F�H�)cc�n{IJB���`w&`�}@Oxe	�����|�e���g@�Y�8����8��N�J�!�q��q��W��k*7��J��m�q��
:�`.�+�)ހX��Qm�cPA�'ɬ��)�t��ZR�������`]�gR�FT��HS��<���P���e�J^��[�����c~']��A���,�K{���Mx�Q�3���=��a��9a�2����s���b�E"��dD�IJ!�d�G��m�_r��NBq�PΧ���eP!|�6ͿIir�e�jP�q�wS7hM�ʆ?�P}y~�I��<Q�8ߔ�>r�k���v⹊�q�I���s���"㩥>D��;��33��'e�.�;�Hq�W�~����2�x
6�	�����;�j[��������-%@������2\ǯ¡Oth�������_��A_
��W&�D�����܅;X�,�>-7S��)p�QBL��d��su�ȕ��*)�v�{FW�l��js]@h3`D��ѻZ^�3+����g�-1F���%-�p��s8�,��|*xТ�b!c�هU�n �VJ�"�8�%_`?@*‚�^�&��g���ɯ'�}F��N�\�Mz-˚�O@�gƥw
nG'���GI������rυy[���/������_�MQ+x�F�]��&,�f���Hgr�v��qxY��F�9��'���F���d<�\�����ka�i� C�"4)֧`�����y�|j�X�!��NDžj�v���]c�5�ՙ�i^�G��l�:�,�'4���$���Y���w���k�kņ>�~����G5��]�0d��w#(3ʡ�bX����������r+m�3qŞ��*����6�s�-�r?��CgJN'M�
Q
�`m�N�q�l�:qG�T�!0�~�4�J8�2���7A���t]��5M�K����,j7��(���l2�ڕ(�0B���hp��J�	�g�o?�?�}���όV:�вk�k��=Ǎ/���`.�X*~�j�"��;V`���t0��d��)�}�\bJ��
+V!�ޘ��K�7����`�
�ā~؍��m�Y�)/����P�m[�z�Z���Ӌ���Pf�0�ЕJ{��W�op��e�]��ڷ5<�g!̱�\72Mc���35
0�L-�˖�U�ʰ̉*��P��.~9o?�
��}��P��
;m���|��#0�3<���^�HiֳTF��q}�&ĮΜU�̶drw�N��z�s�R���l�5^e��VYٟ�*Ĩ6+ֈ[�_rc�f���x|����~L/���ۘ��C��i��O��t����<Q`%5k
7�I�<#)&��C�`!˩��F���M�u�ʕe��b�Xa�Of;�C�r�bٜ�i]<z�T�9pF����Pw堔��a���q�&Wo5q8�t����4-H	�d��Q��J��s.�"�pN����g}�|���d3X[�E�����+W�v�G/I<L\1�O��{�mW�~�^�@
�D@�A��9;�BO���u��tN��J5����Z�O�6[7�o*[�ɷa�'��u��q�+y��a��Mļ�0'pQ�H����K����=n�������F��OY���0	�|�������P�y~�h0��d[_v�c�I3�`W�yrkB���iŊ^�ԁ���>"�v`��$��^�2.�d�d@��Y|��j�}�riV��X4rB�NPS[���I����(�;9�|�^0;.*[�l�_X�f!�������4��3D{����t]�5�Uf��b
�,Q��	�@��<,-�3�7	K�7�*X��~��O�kz"��3sL�;�^��⽪Z�fڦ�:]}�a?���5M�
}M��
2��������Yo�ī�T��U���"���u�n�A̐�i���~4��*J�t��uוZ��G�~ST,�
C���`2�>Q��ś�������hu ��b��VKc�� ޅ-:���*��;`�ݗ�g��S}�5e7�/�!�Y��'��
��C��(��bTD_���E�֘{�\fz��9�˥��bqW!;z~��i�����s+5k�h��t�Uޣ�ˆ��j
���C�?0�Jj;���0d#�;���c�&8?�J��n��cb4����l��h�n�Z����e��,B-�c��|&�LL��8��6�bVi����F�̎4�/^W�?܄(dO�D64�,S�J�c^�0	�D[�憰��n�^븸�)������a ��@�+
/���h�3���`��+���P��-�B���n^�/��w�<M�!��E���Y�<�٦Bǃ�"�D|&��d��œ`�7��0�o��喤��v;]���'hA�&�9�~@��t�<�4���)�=:&�6�A+�������<�k\d�v��^l5C?ԠMCȀ
�3����BPjy���zE�[�oT
'�*H�
�M��7f;����'wM ��帷 D+P�gn��kc�ƐV�UovfZ��3^�翬v��x�J����j�n*o>��_+D{�s��HAG��ݭ�7q+�W�g"X��~��4�`��q)�K�sV��5�s*�;�{�<@�Gj�L�ؒ&�	u5]���\�A|I���C�e�Q�*�~�u�XyP�
��fZEu>��'`����cZ��8j��U��o���e>�R�b#�H-�!ޝ�k�w�{��/K)A���:�UM̻����{9� �((6i��u؞��q��7-�B�Q8�v�A�Cd��!�'�ͮ�ؓ�ިb��2K�l�	�|DU��>�w�7�}W�|g|1�� �m@�6+�	�D� Mҵ'��~Co���	�f��I�1���φ��`������͂�wc�d���C�UE�MJH�=�*I�"
^�S6=�@�,�Gr�[��>n��<�(���}���~4����s�tf�f��	�/)��
ײw����Q�n��s��Ʒ��(G<6�[~H ������~����
:���e����(��_(�c̟gv��S=S�>���
YR�G�A�������O��d�c�P������ܟ�"[Q~䈡#�CϾ�H��ؾm�WFQ(XDK�B�.-՞|��N]�Z�=�)M��LTi���N�?���4�O��&����u7�0�ؓ�BNE����yϘDʚ��L��_�]ܩ1 �cؿ��p�-����N(��#2�I�l�r�__main__)7rbr�iorrrror�r�r��testr�unittest�test.supportrr�test.support.import_helperr	�test.support.os_helperr
rrr
rrrr�TestCaserr�r�rrr;rVr�rIrOr/r1rfrD�PRESET_DEFAULT�PRESET_EXTREMErjrkrQrnrorErrrsrr��mainr#rLr<�<module>ris�����A�A�	�
�
�
���(�4����V���F�F�k3�X�%6�%6�k3�\D+��):�):�D+�N��S/�8�$�$�S/�lu�8�$�$�u�p?'�H�-�-�?'�H>	��@6��+4��`("��X�)�)�Q�7�8�
�*��\�)�)�1�5��)�)� �/�/�$�2E�2E�E�G�H�
�:&��|�(�(�%�@���)�)�*�,�
�)��Z�)�)�1�5�����>��)�)�Q�a�@�B�
�?��HA%��L�z���H�M�M�O�rL

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists