python (3.11.7)
    e                        	 d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ  eed          r eed          s ej	        d           ej
        d          Z G d	 d
ej                  Z
edk    r ej                     dS dS )    N)support)
import_helper)	os_helperaddaudithookauditz.test only relevant when sys.audit is availablezaudit-tests.pyc                       e Zd ZdZ ej                    d             Z ej                    d             Zd Zd Z	d Z
d Zd Zd	 Z
d
 Zd Zd Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd ZdS )	AuditTestNc                    t          j        t          j        dt          g|dt           j        t           j                  5 }|                                 t          j                            |j                   t          j	                            |j	                   |j
        r-|                     d                    |j	                             d d d            d S # 1 swxY w Y   d S )N-X utf8utf-8encodingstdoutstderr )
subprocessPopensys
executableAUDIT_TESTS_PYPIPEwaitr   
writelinesr   
returncodefailjoin)selfargsps      C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_audit.pydo_testzAuditTest.do_test   s   
^Y>>??	
 
 
 
	-
 
FFHHHJ!!!(+++J!!!(+++| 
-		"''!(++,,,
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	- 
	-s   BCC#&C#c                    g }t          j        t          j        dt          g|dt           j        t           j                  5 }|                                 t          j                            |j                   |j	        d |j
        D             d                    |j                  fcd d d            S # 1 swxY w Y   d S )Nr   r   r
   c                 \    g | ])}|                                                     d           *S ) )strip	partition).0lines     r    
<listcomp>z(AuditTest.run_python.<locals>.<listcomp>0   s.    BBB'',,BBB    r   )r   r   r   r   r   r   r   r   r   r   r   r   )r   r   eventsr   s       r    
run_pythonzAuditTest.run_python#   s    
^Y>>??	
 
 
 	
 
FFHHHJ!!!(+++BBBBB!!	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   A)B99B= B=c                 0    |                      d           d S )N
test_basicr!   r   s    r    r.   zAuditTest.test_basic4   s    \"""""r*   c                 0    |                      d           d S )Ntest_block_add_hookr/   r0   s    r    r2   zAuditTest.test_block_add_hook7   s    *+++++r*   c                 0    |                      d           d S )N!test_block_add_hook_baseexceptionr/   r0   s    r    r4   z+AuditTest.test_block_add_hook_baseexception:   s    899999r*   c                 X    t          j        d           |                     d           d S )Nmarshaltest_marshalr   
import_moduler!   r0   s    r    r7   zAuditTest.test_marshal=   s+    #I...^$$$$$r*   c                 X    t          j        d           |                     d           d S )Npickletest_pickler8   r0   s    r    r<