관리-도구
편집 파일: test_detect.cpython-311.pyc
� �܋f� � �z � d dl mZmZmZmZmZmZmZ d dlm Z d dl mZ d dlm Z d dlZd dlZd dlZd� Zd� Zd\ ZZZd � Zd � Z G d� d� � Zd � Zd gZ G d� de� � Z e� � Zd� Zd� Zd� Z e!dk r> e� � e� � e� � e� � e� � e � � dS dS )� )�baditems� badobjects�badtypes�errors�parent�at� globalvars)�settings)�IS_PYPY)� PicklingErrorNc �8 � t j � � } t | � � | gk sJ �t | � � | u sJ �t | � � t | � � k sJ �t t | � � � � t u sJ �t | d� � }t |t � � sJ �t t | d� � � � � � � t |� � � � � k sJ �t t | d� � � � � � � t |� � � � � k sJ �t d� t t | d� � � � � � � D � � � � }t |� � }t j � d� � s t# |� � t# |� � u sJ �d}d|� � � v rt# |� � |u s n|dz sJ �d S d S )N� c �@ � g | ]}|j j |j d f��S )r )� __class__�__name__�args)�.0�errs �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/dill/tests/test_detect.py� <listcomp>z#test_bad_things.<locals>.<listcomp> s( � �Y�Y�Y�c�c�m�$�S�X�a�[� 1�Y�Y�Y� �COVERAGE� r )�inspect�currentframer r r �typer � TypeError� isinstance�dict�list�keys�set�values�os�environ�get�len)�f�d�s�a�ns r �test_bad_thingsr- s� � �����A��A�;�;�1�#������a�=�=�A������A�;�;�$�q�'�'�!�!�!�!���q� � �?�?�i�'�'�'�'���A���A��a�������� �1�a� � �%�%�'�'�(�(�D������N�N�:�:�:�:���q�!���!�!�#�#�$�$��Q�V�V�X�X���6�6�6�6��Y�Y�T�&��A�,�,�BU�BU�BW�BW�=X�=X�Y�Y�Y�Z�Z�A��Q���A� �:�>�>�*�%�%� ��1�v�v��Q������� �A�)�Q�V�V�X�X�5�5�3�q�6�6�Q�;�;�;�1�Q�3�;�;�>�;�;�;�;r c �2 � g d�} t | � � }t |t � � }|| u sJ �t rt |t � � �J �nt |t � � | d u sJ �t t t � � � � t u sJ �d S )N)� � � � ���)�iterr r r �intr �id)�x�listiter�objs r �test_parentr: $ s� � �� � �A��A�w�w�H� ��4� � �C��!�8�8�8�8�� +�v�c�3�'�'�/�/�/�/���S�!�!�Q�r�U�*�*�*�*� �b��f�f�:�:�������r )r r � c � � t | dz z S )Nr �r+ �r7 s r �squaredr? 0 s � � �1�a�4��-r c � � � � fd�}|S )Nc �( �� t �� � | z S �N)r? )�yr7 s �r �barzfoo.<locals>.bar4 s �� ��1�:�:�a�<�r � )r7 rD s ` r �foorF 3 s! �� �� � � � � �*r c � � e Zd Zd� Zd� ZdS )�_classc � � d S rB rE ��selfs r �_methodz_class._method9 � � ��r c � � dS )NTrE rJ s r �okz _class.ok; s � ��tr N)r � __module__�__qualname__rL rO rE r r rH rH 8 s2 � � � � � � � � �� � � � r rH c �f � d� } t | � � t ddd�� � k sJ �t t d�� � }t |� � t dd g� � k sJ �t t d �� � }|i k sJ �t d� � }t |d�� � }t |� � t dd g� � k sJ �t |d �� � }t |� � t dg� � k sJ �~t t � � }t |� � t d g� � k sJ �d S )Nc � � t d� } d S )Nc � � t d� } d S )Nc � � t d S rB )�crE r r �hz-test_globals.<locals>.f.<locals>.g.<locals>.hC s � ����r )�b)rW s r �gz"test_globals.<locals>.f.<locals>.gA s � � �A� � � � � r r= )rY s r r( ztest_globals.<locals>.f? s � � �� � � � � r r r r; )r+ rX rV T��recurser? r+ F)r r rF r"