HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/tests/__pycache__/test_extension.cpython-310.opt-1.pyc
o

�i�
�@sxdZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
Gdd�dej�Zdd	�Z
ed
kr:ee
��dSdS)zTests for distutils.extension.�N)�run_unittest)�check_warnings)�read_setup_file�	Extensionc@seZdZdd�Zdd�ZdS)�ExtensionTestCasecCsLtj�tj�t�d�}t|�}dd�|D�}|��gd�}|�||�dS)NzSetup.samplecSsg|]}|j�qS�)�name)�.0�extrr�;/usr/local/lib/python3.10/distutils/tests/test_extension.py�
<listcomp>sz:ExtensionTestCase.test_read_setup_file.<locals>.<listcomp>)"Z_arraysurfarrayZ_cameraZ_numericsndarrayZ_numericsurfarray�baseZbufferproxyZcdromZcolorZ	constantsZdisplayZdraw�eventZ	fasteventZfontZgfxdrawZimageZimageextZjoystick�key�maskZmixerZmixer_musicZmouseZmovieZoverlayZ
pixelarrayZpypmZrectZrwobjectZscrapZsurfaceZsurflock�timeZ	transform)�os�path�join�dirname�__file__r�sort�assertEqual)�selfZsetupZexts�namesZwantedrrr�test_read_setup_files	z&ExtensionTestCase.test_read_setup_filecCs|�ttdg�tdg�}|�|jd�|�ttdd�|�ttdddg�tdddg�}|�|jddg�dD]}|�t||�g�q8|�|jd�|�|jd�t	��}t
�d�tdddgdd	�}Wd�n1snwY|�t|j
�d�|�t
|j
d
j�d�dS)N�r�fileZfile1Zfile2)Zinclude_dirsZ
define_macrosZundef_macrosZlibrary_dirsZ	librariesZruntime_library_dirsZ
extra_objectsZextra_compile_argsZextra_link_argsZexport_symbolsZ	swig_optsZdepends�alwaysT)Zchicrz!Unknown Extension options: 'chic')ZassertRaises�AssertionErrorrrrZsources�getattr�languageZoptionalr�warnings�simplefilter�len�str�message)rr
�attr�wrrr�test_extension_init"s&

��z%ExtensionTestCase.test_extension_initN)�__name__�
__module__�__qualname__rr)rrrrr
srcCs
t�t�S)N)�unittestZ	makeSuiterrrrr�
test_suiteBs
r.�__main__)�__doc__r-rr"Ztest.supportrZtest.support.warnings_helperrZdistutils.extensionrrZTestCaserr.r*rrrr�<module>s8�