Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
tests
/
__pycache__
/
File Content:
test_logging.cpython-311.opt-1.pyc
� � h3 � � � d dl Z d dlZd dlZd dlZd dlZdej v ZdZej � dddg� � d� � � Z d� Zed � � � ZdS ) � N�__pypy__zRfrom setuptools import setup setup( name="test_logging", version="0.0" ) )�flag�expected_level)z --dry-run�INFO)z --verbose�DEBUGc � � ddl }ddl}t j t � � }|� t d|� � |� � � }| dz }|� t d�� � |j � |d�� � } |d g| _ | � � � |� � � } t j | � � }dS ) z:Make sure the correct verbosity level is set (issue #3038)r N�rootzsetup.pyzutf-8)�encoding�init)� stop_after�sdist)� setuptools� distutils�logging�Logger�__name__�setattr�getEffectiveLevel� write_text�setup_py�core� run_setup�script_args�parse_command_line�getLevelName)�tmp_path�monkeypatchr r r r �logger�unset_log_level�setup_script�dist� log_level�log_level_names �R/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/tests/test_logging.py�test_verbosity_levelr% s� � � �������� �^�H� %� %�F�������0�0�0��.�.�0�0�O� �j�(�L����H�w��7�7�7��>�#�#�L�V�#�D�D�D��g��D���������(�(�*�*�I��)�)�4�4�N�N�N� c �F � � t j � � � � fd�� � }|S )Nc �| �� �� � d S # t $ r" t rd} t j | � d�� � � w xY w)Nz!Flaky monkeypatch on PyPy (#4124)z&. Original discussion in #3707, #3709.)�AssertionError�IS_PYPY�pytest�xfail)�msg�funcs �r$ �_funczflaky_on_pypy.<locals>._func. s\ �� � ��D�F�F�F�F�F��� � � �� M�9�����K�K�K�L�L�L�� ���s � �,;)� functools�wraps)r. r/ s ` r$ � flaky_on_pypyr2 - s8 �� ��_�T���� � � � ��� �Lr&