python (3.11.7)
    eh                     N   d Z dZdZddlZddlZddlmZ ddlmZm	Z	m
Z
  G d de          Zd	 Z G d
 de
          Zed             Z G d
 de
          Z G d de          Z G d dej                  Z G d de
          Z G d dej        e          Z G d dej        e          Z G d deej                  Z G d dej                  Z G d dej                  Z G d d ej                  Z G d! d"ej                  Zed#k    r ej                     dS dS )$z7Unit tests for the with statement specified in PEP 343.z
Mike Blandzmbland at acm dot org    N)deque)_GeneratorContextManagercontextmanagernullcontextc                   *     e Zd Z fdZd Zd Z xZS )MockContextManagerc                 ^     t                      j        |  d| _        d| _        d | _        d S NF)super__init__enter_calledexit_called	exit_args)selfargs	__class__s     B/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_with.pyr   zMockContextManager.__init__   s2    $!     c                 8    d| _         t          j        |           S NT)r
   r   	__enter__r   s    r   r   zMockContextManager.__enter__   s     '1$777r   c                 R    d| _         |||f| _        t          j        | |||          S r   )r   r   r   __exit__r   typevalue	tracebacks       r   r   zMockContextManager.__exit__   s9    y1'0t16	C C 	Cr   )__name__
__module____qualname__r   r   r   
__classcell__)r   s   @r   r   r   
   s]            8 8 8C C C C C C Cr   r   c                       fd}|S )Nc                  &