python (3.11.7)
    e                         d Z ddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
d Zd Zd Z
d Zd ZddZd	 Zd
 Zedk    r e             dS dS )
a  
Command line tool to bisect failing CPython tests.
Find the test_os test method which alters the environment:
    ./python -m test.bisect_cmd --fail-env-changed test_os
Find a reference leak in "test_os", write the list of failing tests into the
"bisect" file:
    ./python -m test.bisect_cmd -o bisect -R 3:3 test_os
Load an existing list of tests from a file using -i option:
    ./python -m test --list-cases -m FileTests test_os > tests
    ./python -m test.bisect_cmd -i tests test_os
    Nc                     t          | d          5 }|D ]}t          ||           |                                 d d d            d S # 1 swxY w Y   d S )Nw)file)openprintflush)filenametestsfpnames       C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/bisect_cmd.pywrite_testsr      s    	
h		  	! 	!D$R     
                 s   +A		A
A
c                 r    | sd S t          dt          |          d|            t          | |           | S )NzWriting z tests into )r   lenr   )r	   r
   s     r
   write_outputr   &