Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/numpy/f2py/tests/__pycache__/test_compile_function.cpython-39.pyc
Ðазад
a e�hZ � @ s� d Z ddlZddlZddlZddlmZ ddlZddlZddl m Z dd� Zej� dd d gddg�ejjd d�dd� ��Zdd� Zdd� Zej� dddg�dd� �ZdS )z0See https://github.com/numpy/numpy/pull/11937. � N)� import_module� )�utilc C s( t �� st�d� t �� s$t�d� d S )NzNeeds C compilerzNeeds FORTRAN 77 compiler)r Zhas_c_compiler�pytest�skipZhas_f77_compiler� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/numpy/f2py/tests/test_compile_function.py�setup_module s r � extra_argsz--nooptz--debugz--noopt --debug� z$Imported module seems never deleted.)�reasonc C s� d}t �� }t �� }t�� }tj�|tt� � �d �}|d fD ]N}t � |��0 tjj ||| |d�}|dksnJ �W d � q>1 s�0 Y q>tjdkr�t|�}|�� } | dks�J �tj|= d S )NzT integer function foo() foo = 10 + 5 return end z.f)� modulenamer � source_fnr �win32� )r Zget_module_dirZget_temp_module_name�os�getcwd�path�join�str�uuid�uuid4� switchdir�numpy�f2py�compile�sys�platformr Zfoo�modules) r �fsourceZmoddir�modname�cwd�targetr �ret_valZreturn_checkZcalc_resultr r r �test_f2py_init_compile s$ �, r$ c C s t j�d�} | dksJ �d S )N� invalidr )r r r )r# r r r �test_f2py_init_compile_failureO s r&