관리-도구
편집 파일: test_assumed_shape.cpython-311.pyc
� �܋f� � �l � d dl Z d dlZd dlZddlmZ G d� dej � � Z G d� de� � ZdS )� N� )�utilc �� � e Zd Z ej dddd� � ej dddd� � ej dddd� � ej dddd� � ej dddd� � gZej j d � � � Z d S )�TestAssumedShapeSumExample�tests�src� assumed_shapezfoo_free.f90zfoo_use.f90z precision.f90zfoo_mod.f90z.f2py_f2cmapc � � | j � ddg� � }|dk sJ �| j � ddg� � }|dk sJ �| j � ddg� � }|dk sJ �| j j � ddg� � }|dk sJ �| j j � ddg� � }|dk sJ �d S )Nr � � )�module�fsum�sum�sum_with_use�mod)�self�rs �v/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/f2py/tests/test_assumed_shape.py�test_allz#TestAssumedShapeSumExample.test_all s� � ��K���a��V�$�$���A�v�v�v�v��K�O�O�Q��F�#�#���A�v�v�v�v��K�$�$�a��V�,�,���A�v�v�v�v��K�O����A��'�'���A�v�v�v�v��K�O� � �!�Q��(�(���A�v�v�v�v�v�v� N) �__name__� __module__�__qualname__r �getpath�sources�pytest�mark�slowr � r r r r s� � � � � � ����W�e�_�n�E�E����W�e�_�m�D�D����W�e�_�o�F�F����W�e�_�m�D�D����W�e�_�n�E�E��G� �[��� � ��� � r r c �$ � � e Zd Z� fd�Zd� Z� xZS )�TestF2cmapOptionc �* �� t | j � � | _ | j � d� � }t j d�� � | _ t |d� � 5 }| j � |� � � � � d d d � � n# 1 swxY w Y | j � � � | j � | j j � � d| j j g| _ t � � � � � d S )N���F)�delete�rbz--f2cmap)�listr �pop�tempfile�NamedTemporaryFile�f2cmap_file�open�write�read�close�append�name�options�super�setup_method)r � f2cmap_src�f� __class__s �r r3 zTestF2cmapOption.setup_method! s �� ��D�L�)�)����\�%�%�b�)�)� �#�6�e�D�D�D��� �*�d� #� #� -�q���"�"�1�6�6�8�8�,�,�,� -� -� -� -� -� -� -� -� -� -� -���� -� -� -� -����� � � �����D�,�1�2�2�2�"�D�$4�$9�:��� ���������s �-B�B�Bc �B � t j | j j � � d S )N)�os�unlinkr* r0 )r s r �teardown_methodz TestF2cmapOption.teardown_method0 s � � � �$�"�'�(�(�(�(�(r )r r r r3 r: � __classcell__)r6 s @r r! r! sG �� � � � � � � � � � �)� )� )� )� )� )� )r r! )r8 r r( � r �F2PyTestr r! r r r �<module>r>