|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��gg � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
dd� Zdd� Zdd� Z
d d
� Zddd�Zd
d� Zdd� Zedkr�e� 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 C s8 t | d��$}|D ]}t||d� q|�� W 5 Q R X d S )N�w)�file)�open�print�flush)�filename�tests�fp�name� r �./opt/cppython/lib/python3.8/test/bisect_cmd.py�write_tests s r
c C s* | sd S t dt|�| f � t| |� | S )NzWriting %s tests into %s)r �lenr
)r r r r r �write_output&