File: //lib/python3.12/unittest/__pycache__/suite.cpython-312.pyc
�
    )!�h�4  �                   �   � d Z ddlZddlmZ ddlmZ dZd� Z G d� d	e�      Z G d
� d e�      Z	 G d� de�      Z
d
� Z G d� de�      Zy)�	TestSuite�    N�   )�case)�utilTc                 �.   � t        | |d� �      } |�        y )Nc                   �   � y �N� r
   �    �%/usr/lib/python3.12/unittest/suite.py�<lambda>z!_call_if_exists.<locals>.<lambda>   s   � r   )�getattr)�parent�attr�funcs      r   �_call_if_existsr      s   � ��6�4��.�D��Fr   c                   �X   � e Zd ZdZdZdd�Zd� Zd� Zd� Zd� Z	d� Z
d	� Zd
� Zd� Z
d� Zd
� Zy)�
BaseTestSuitezNA simple test suite that doesn't provide class or module shared fixtures.
    Tc                 �B   � g | _         d| _        | j                  |�       y �Nr   )�_tests�_removed_tests�addTests)�self�testss     r   �__init__zBaseTestSuite.__init__   s   � ��������
�
�e�r   c                 �`   � dt        j                  | j                  �      �dt        | �      �d�S )N�<z tests=�>)r   �strclass�	__class__�list�r   s    r   �__repr__zBaseTestSuite.__repr__   s   � �"&�-�-����"?��d��L�Lr   c                 �h   � t        || j                  �      st        S t        | �      t        |�      k(  S r	   )�
isinstancer!   �NotImplementedr"