HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/__pycache__/test_binhex.cpython-310.opt-2.pyc
o

�ig�@s�	ddlZddlmZddlmZddlmZddlmZe�def��
e�	d�Z
Wd�n1s4wYGdd	�d	ej�Zd
d�Z
edkrOe
�dSdS)
�N)�support)�
import_helper)�	os_helper)�warnings_helper��binhexc@s8eZdZdd�Zdd�ZdZdd�Zdd	�Zd
d�ZdS)
�BinHexTestCasecCs(tjd|_tjd|_tjd|_dS)N�1�2ZPvery_long_filename__very_long_filename__very_long_filename__very_long_filename__)rZTESTFN_ASCII�fname1�fname2�fname3��self�r�-/usr/local/lib/python3.10/test/test_binhex.py�setUpszBinHexTestCase.setUpcCs(t�|j�t�|j�t�|j�dS�N)r�unlinkrrr
rrrr�tearDownszBinHexTestCase.tearDownsJack is my herocCs�t|jd��}|�|j�Wd�n1swYt�|j|j�t�|j|j�t|jd��}|��}Wd�n1sAwY|�|j|�dS)N�wb�rb)	�openr�write�DATArrZhexbin�readlineZassertEqual)r�fZfinishrrr�test_binhex s�
�zBinHexTestCase.test_binhexcCs2	t|jd�}|��|�tjtj|j|j�dS)Nr)rr
�closeZassertRaisesr�Errorr)rZf3rrr�"test_binhex_error_on_long_filename-sz1BinHexTestCase.test_binhex_error_on_long_filenamecCs�t|jd��}|�|j�Wd�n1swYt�|j|j�t|jd��}|��}Wd�n1s9wY|�d|�dS)Nrr�
)rrrrrr�readZassertNotIn)rr�fp�contentsrrr�test_binhex_line_endings7s�
�z'BinHexTestCase.test_binhex_line_endingsN)	�__name__�
__module__�__qualname__rrrrr r%rrrrrs

rcCst�t�dSr)rZrun_unittestrrrrr�	test_mainCsr)�__main__)Zunittest�testrZtest.supportrrrZcheck_warnings�DeprecationWarningZimport_fresh_modulerZTestCaserr)r&rrrr�<module>s�2
�