python (3.11.7)
    e{                        d dl Zd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl	m
Z
 d dlmZ 	 d dl
mZ n
# e$ r dZY nw xY wd Z G d dej                  Z G d d	          Z G d
 de          Z G d d
          Z G d de          Z G d de          Z ej        edu d           G d dej                              Zedk    r ej                     dS dS )    N)support)threading_helperhamtc                 F     t          j                    fd            }|S )z*Needed to make reftracking test mode work.c                  L    t          j                    } |j        g| R i |S NcontextvarsContextrun)argskwargsctxfuncs      E/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_context.pywrapperz!isolated_context.<locals>.wrapper   s3    !##swt-d---f---    )	functoolswraps)r   r   s   ` r   isolated_contextr      s8    _T. . . . . Nr   c                   0   e Zd Zd Zed             Zd Zd Zd Zd Z	d Z
d Zd	 Zed
             Z
d Zd Zd
 Zed             Zed             Zed             Zed             Zed             Zd Ze ej                    d                         ZdS )ContextTestc                 P   |                      t          d          5  t          j                     d d d            n# 1 swxY w Y   |                      t          d          5  t          j        d           d d d            n# 1 swxY w Y   t          j        d          }|                     |j        d           |                     t                    5  d|_        d d d            n# 1 swxY w Y   |                     t          |          t          d                     d S )Nztakes exactly 1z
must be a str   aaabbb)
assertRaisesRegex	TypeErrorr   
ContextVarassertEqualnameassertRaisesAttributeErrorassertNotEqualhash)selfcs     r   test_context_var_new_1z"ContextTest.test_context_var_new_1   s   
#
#I/@
A
A 	% 	%"$$$	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 
#
#I
?
? 	&