Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_capi/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_capi/__pycache__/test_run.cpython-312.opt-1.pyc

�

(Μg����ddlZddlZddlmZddlmZddlmZmZm	Z	m
Z
dZejd�Z
e
jZe
jZe
j ZGd�dej"�Zedk(rej(�yy)	�N)�UserDict)�
import_helper)�unlink�TESTFN�TESTFN_ASCII�TESTFN_UNDECODABLE�	_testcapic��eZdZd�Zd�Zejed�eje	jdk(d�d���Zy)�CAPITestc	�v�d�}d}|j|dtd����|j|dtd��i��|j|ditd����|j|ditd����|jt|di�|jt|dii�|jt
|dtd��g�|jt
|dtd��d�|j|dddi��|jt|di�y)Nc�8�tj|tg|���S�N)r	�run_stringflags�
Py_file_input)�s�argss  �4/usr/local/lib/python3.12/test/test_capi/test_run.py�runz*CAPITest.test_run_stringflags.<locals>.run&s���,�,�Q�
�E��E�E��a
���asä
�äs�
)�assertIsNone�dictr�assertRaises�	NameError�	TypeError�SyntaxError)�selfr�sources   r�test_run_stringflagszCAPITest.test_run_stringflags$s��	F������#�f�d�Q�i�0�1����#�f�d�Q�i��4�5����#�f�b�$��)�4�5����#�f�b�(�Q�-�8�9����)�S�&�"�5����)�S�&�"�b�9����)�S�&�$��)�R�@����)�S�&�$��)�Q�?����#�m�f�a�[�9�:����+�s�I�r�:rc�@��tjtjdk7rtnt��t�d�5}|j
d�ddd�|jt���fd�}|j|td����|j|td��i��|j|itd����|j|itd����|j|td��id��|jt|i�|jt|ii�|jt|td��g�|jt|td��d�y#1swY��CxYw)N�nt�wbrc�:��tj�tg|���Sr)r	�run_fileexflagsr)r�filenames �rrz*CAPITest.test_run_fileexflags.<locals>.runGs����,�,�X�}�L�t�L�Lrrr)�os�fsencode�namerr�open�write�
addCleanuprrrrrrr)r!�fprr)s   @r�test_run_fileexflagszCAPITest.test_run_fileexflags@s-����;�;����D��v�l�K��
�(�D�
!�R��H�H�V��"������)�	M�	
���#�d�Q�i�.�)����#�d�Q�i��,�-����#�b�$��)�,�-����#�b�(�Q�-�0�1����#�d�Q�i��Q�/�0����)�S�"�-����)�S�"�b�1����)�S�$��)�R�8����)�S�$��)�Q�7�"�
!�s�F�Fz)only works if there are undecodable pathsr%zdoes not work on Windowsc	�\�tj}	ttd�5}|j	d�ddd�|jtt�|j|tttd����y#1swY�OxYw#t$r|jd�Y�TwxYw)Nr&rz#undecodable paths are not supportedrr)r	r(r-rr.r/r�OSError�skipTestrrr)r!rr0s   r�.test_run_fileexflags_with_undecodable_filenamez7CAPITest.test_run_fileexflags_with_undecodable_filename\s����'�'��	A��(�$�/�2����� �0��O�O�F�$6�7�	
���#�0�-����K�L�0�/���	A��M�M�?�@�	A�s'�B�B�"B�B�B�B+�*B+N)�__name__�
__module__�__qualname__r#r1�unittest�
skipUnlessr�skipIfr*r,r5�rrrrsS��,;�88�8�X���+�-X�Y��X�_�_�R�W�W��_�&@�A�M�B�Z�Mrr�__main__)r*r9�collectionsr�test.supportr�test.support.os_helperrrrr�NULL�
import_moduler	�Py_single_inputr�
Py_eval_input�TestCaserr6�mainr<rr�<module>rGs���	�� �&�S�S���'�M�'�'��4�	��+�+���'�'�
��'�'�
�XM�x� � �XM�v�z���H�M�M�O�r

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