shell bypass 403
�
v��g�W � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZmZm
Z
ddlZej dk( r:ej dd d k rddlZ ej$ d
� ddlmZ n G d� d
e� Z ej, e� Z e� Zd� Z G d� de� Z G d� dej: � Z G d� de� Z G d� de� Z G d� de� Z! G d� dej: � Z" G d� d� Z# G d� d� Z$y)z�
Test Suites
-----------
Provides a LazySuite, which is a suite whose test list is a generator
function, and ContextSuite,which can run fixtures (setup/teardown
functions or methods) for the context that contains its tests.
� N)�Test)�Config)�ResultProxyFactory)�isclass�resolve_name�try_run�cli� )r
� �
IronPython)�StringExceptionc � � e Zd Zy)r
N)�__name__�
__module__�__qualname__� � �9/opt/hc_python/lib/python3.12/site-packages/nose/suite.pyr
r
s � �r r
c �8 � | j �d| j ��S )N�.)r r )�clss r � _strclassr % s � ��n�n�c�l�l�3�3r c � � e Zd ZdZy)�MixedContextErrorzQError raised when a context suite sees tests from more than
one context.
N)r r r �__doc__r r r r r ( s � �� r r c �n � � e Zd ZdZd
� fd� Zd� Zd� Zd� ZeZd� Z d� Z
d� Zd � Zd
� Z
eee
dd� Z� xZS )� LazySuitez:A suite that may use a generator as its list of tests
c �L �� t t | � � | j |� y)zFInitialize the suite. tests may be an iterable or a generator
N)�superr �__init__�
_set_tests)�self�tests� __class__s �r r zLazySuite.__init__2 s �� � �i��'�)�����r c �, � t | j � S �N)�iter�_tests�r"