관리-도구
편집 파일: test_contextvars.cpython-38.pyc
U �gl( � @ s$ d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z d dl m Z dd lmZ zDd d l mZ d dl mZ d dl mZ ed dd�Zeddd�ZdZW n ek r� d Z ZZY nX eedk d�G dd� de��Zeedk d�G dd� de��Zedk�r e�� dS )� )�print_functionN)�partial)� skipUnless)�skipIf)�greenlet)� getcurrent� )�TestCase)�Context)� ContextVar)�copy_context�id)�default�varzContextVar not supportedc @ sl e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� ZdS )�ContextVarsTestsc O s t � j||�S �N)r �run)�self�args�kwargs� r �O/opt/hc_python/lib64/python3.8/site-packages/greenlet/tests/test_contextvars.py�_new_ctx_run# s zContextVarsTests._new_ctx_runc C sb t }|d kr| �|�� � n| �|�� |� |�|� td�D ]}||�� d7 <