Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_binhex.cpython-310.pyc
o

�9jg�@s�dZddlZddlmZddlmZddlmZddlmZe�de	f��
e�
d�ZWd�n1s5wYGd	d
�d
ej�Z
dd�Zed
krPe�dSdS)z�Test script for the binhex C module

   Uses the mechanism of the python binhex module
   Based on an original test by Roger E. Masse.
�N)�support)�
import_helper)�	os_helper)�warnings_helper��binhexc@s8eZdZdd�Zdd�ZdZdd�Zdd	�Zd
d�ZdS)
�BinHexTestCasecCs(tjd|_tjd|_tjd|_dS)N�1�2�Pvery_long_filename__very_long_filename__very_long_filename__very_long_filename__)r�TESTFN_ASCII�fname1�fname2�fname3��self�r�'/usr/lib/python3.10/test/test_binhex.py�setUpszBinHexTestCase.setUpcCs(t�|j�t�|j�t�|j�dS�N)r�unlinkr
rrrrrr�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�hexbin�readline�assertEqual)r�f�finishrrr�test_binhex s�
�zBinHexTestCase.test_binhexcCs0t|jd�}|��|�tjtj|j|j�dS)z�
        The testcase fails if no exception is raised when a filename parameter provided to binhex.binhex()
        is too long, or if the exception raised in binhex.binhex() is not an instance of binhex.Error.
        rN)rr�close�assertRaisesr�Errorr)r�f3rrr�"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�
)rr
rrrr�read�assertNotIn)rr �fp�contentsrrr�test_binhex_line_endings7s�
�z'BinHexTestCase.test_binhex_line_endingsN)	�__name__�
__module__�__qualname__rrrr"r'r-rrrrrs

rcCst�t�dSr)r�run_unittestrrrrr�	test_mainCsr2�__main__)�__doc__�unittest�testr�test.supportrrr�check_warnings�DeprecationWarning�import_fresh_moduler�TestCaserr2r.rrrr�<module>s�2
�

Youez - 2016 - github.com/yon3zu
LinuXploit