관리-도구
편집 파일: test_callback.cpython-311.pyc
� �܋f � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z ddlmZ G d� dej � � Z G d� de� � Z G d � d ej � � Z G d� dej � � ZdS ) � N)�IS_PYPY� )�utilc � � e Zd Z ej dddd� � gZej � dd� d� � � � d� � � Z ej � ed � � � d� � � Z d� Zej � ej d k d� � � d� � � Zej � ej d k d� � � d� � � Zd� Zd� ZdS )�TestF77Callback�tests�src�callbackzfoo.f�namezt,t2�,c �0 � | � |� � d S �N)�check_function)�selfr s �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/f2py/tests/test_callback.py�test_allzTestF77Callback.test_all s � ����D�!�!�!�!�!� z,PyPy cannot modify tp_doc after PyType_Ready)�reasonc �\ � t j d� � }| j j j |k sJ �d S )Na� a = t(fun,[fun_extra_args]) Wrapper for ``t``. Parameters ---------- fun : call-back function Other Parameters ---------------- fun_extra_args : input tuple, optional Default: () Returns ------- a : int Notes ----- Call-back functions:: def fun(): return a Return objects: a : int )�textwrap�dedent�module�t�__doc__)r �expecteds r �test_docstringzTestF77Callback.test_docstring s: � � �?� $� � ��4 �{�}�$��0�0�0�0�0�0r c � � t | j |� � } |d� � � }|dk sJ � |d� d�� � }|dk sJ � |d� d�� � }|dk sJ � |d � d �� � }|dk sJ � |d� t j f�� � }|d k sJ � |t j t j f�� � }|d k sJ � || j j d�� � }|dk sJ � || j j � � }|dk sJ � || j j j � � }|dk sJ � G d� d� � } |� � } ||� � }|dk sJ � ||j � � }|dk sJ �d S )Nc � � dS )N� � r r r �<lambda>z0TestF77Callback.check_function.<locals>.<lambda>6 s � �a� r r c � � dS �N� r ��as r r! z0TestF77Callback.check_function.<locals>.<lambda>8 � � �� r )� )�fun_extra_argsr$ c � � | S r r r% s r r! z0TestF77Callback.check_function.<locals>.<lambda>: r'