HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/tests/__pycache__/test_logging.cpython-310.pyc
o

��h3�@shddlZddlZddlZddlZddlZdejvZdZej�	dddg�dd��Z
d	d
�Zedd��ZdS)
�N�__pypy__zRfrom setuptools import setup

setup(
    name="test_logging",
    version="0.0"
)
)�flag�expected_level)z	--dry-run�INFO)z	--verbose�DEBUGcCs�ddl}ddl}t�t�}|�td|�|��}t�|�dks!J�|d}|jt	dd�|j
j|dd	�}	|d
g|	_|	�
�|��}
t�|
�}||ksLJ�dS)z:Make sure the correct verbosity level is set (issue #3038)rN�root�NOTSETzsetup.pyzutf-8)�encoding�init)�
stop_after�sdist)�
setuptools�	distutils�logging�Logger�__name__�setattr�getEffectiveLevel�getLevelName�
write_text�setup_py�core�	run_setup�script_args�parse_command_line)�tmp_path�monkeypatchrrr
r�logger�unset_log_level�setup_script�dist�	log_level�log_level_name�r#�H/usr/local/lib/python3.10/dist-packages/setuptools/tests/test_logging.py�test_verbosity_levels


r%cst����fdd��}|S)Ncs6z��WdStytrd}t�|�d���w)Nz!Flaky monkeypatch on PyPy (#4124)z&. Original discussion in #3707, #3709.)�AssertionError�IS_PYPY�pytest�xfail)�msg��funcr#r$�_func.s�zflaky_on_pypy.<locals>._func)�	functools�wraps)r,r-r#r+r$�
flaky_on_pypy-s	r0cCspddl}ddl}ddlm}|j��|��r.|jdus#d|jvs#J�t|j	tj
�s,J�dSt�|j	�s6J�dS)Nr)r r
)
�_distutils_hack�setuptools.loggingrr r�	configure�enabled�__file__�
isinstance�logr�inspect�ismodule)r1r
r r#r#r$�%test_patching_does_not_cause_problems;s
r:)
r.r8r�sysr(�builtin_module_namesr'r�mark�parametrizer%r0r:r#r#r#r$�<module>s

�