File: D:/Python311/Lib/distutils/tests/__pycache__/test_cygwinccompiler.cpython-311.pyc
�
��Vc� � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZmZm
Z
mZmZmZ ddlmZ G d� d e� � Z G d
� dej ej � � Zd� Zed
k r e e� � � � dS dS )z$Tests for distutils.cygwinccompiler.� N)�BytesIO)�run_unittest)�cygwinccompiler)�check_config_h�CONFIG_H_OK�CONFIG_H_NOTOK�CONFIG_H_UNCERTAIN�get_versions� get_msvcr)�supportc � � e Zd ZdZd� ZdS )� FakePopenNc �� � |� � � d | _ | j j }| j |v r!t || j � � | _ d S t
j |d� � | _ d S )Nr �r)�split�cmd�
test_class�_exesr �stdout�os�popen)�selfr �shellr �exess �8D:\Python311\Lib\distutils\tests\test_cygwinccompiler.py�__init__zFakePopen.__init__ s^ � ��9�9�;�;�q�>�����$���8�t�� -�!�$�t�x�.�1�1�D�K�K�K��(�3��,�,�D�K�K�K� )�__name__�
__module__�__qualname__r r � r r r r s( � � � � � ��J�-� -� -� -� -r r c �F � � e Zd Z� fd�Z� fd�Zd� Zd� Zd� Zd� Zd� Z � xZ
S )�CygwinCCompilerTestCasec �� �� t t | � � � � � t j | _ t
j � | � � � d� � | _ ddl
m} |j | _
| j |_ t j | _ | j t _ i | _ t j | _ | t, _ t, t _ d S )Nzpython.hr �� sysconfig)�superr# �setUp�sys�versionr �path�join�mkdtemp�python_h� distutilsr&