U
    -e                     @   s  d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl	m
Z
 eddddd Zeeedd	d
ddd	 Zeeddddd Zeeddddd Zeeddddd Zedddd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' ZdS )(    N)doc!_break_traceback_cycle_from_frame)disabled_gcfunc_aA)methodZ	operationc                 C   s   dS )zD
    This is the {method} method.

    It computes {operation}.
    N Zwhateverr   r   X/var/www/html/Darija-Ai-Train/env/lib/python3.8/site-packages/pyarrow/tests/test_util.pyr      s    zK
        Examples
        --------

        >>> func_b()
        B
        func_bBc                 C   s   d S Nr   r	   r   r   r
   r   (   s    func_cCc                 C   s   dS )z7
    Examples
    --------

    >>> func_c()
    C
    Nr   r	   r   r   r
   r   :   s    func_dDc                 C   s   d S r   r   r	   r   r   r
   r   J   s    func_eEc                 C   s   d S r   r   r	   r   r   r
   r   O   s    func_f)r   c                 C   s   dS )z
    This is the {method} method.

    {{ We can escape curly braces like this. }}

    Examples
    --------
    We should replace curly brace usage in doctests.

    >>> dict(x = "x", y = "y")
    >>> set((1, 2, 3))
    Nr   r	   r   r   r
   r   T   s    c                  C   s   t d} tj| kstd S )NzD
        This is the func_a method.

        It computes A.
        )textwrapdedentr   __doc__AssertionErrorZdocstrr   r   r
   test_docstring_formattinge   s    r   c                  C   s   t d} tj| kstd S )Nz
        This is the func_b method.

        It computes B.

        Examples
        --------

        >>> func_b()
        B
        )r   r   r   r   r   r   r   r   r
   test_docstring_concatenationp   s    r   c                  C   s   t d} tj| kstd S )Nz
        This is the func_c method.

        It computes C.

        Examples
        --------

        >>> func_c()
        C
        )r   r   r   r   r   r   r   r   r
   test_docstring_append   s    r   c                  C   s   t d} tj| kstd S )NzD
        This is the func_d method.

        It computes D.
        )r   r   r   r   r   r   r   r   r
   %test_docstring_template_from_callable   s    r   c                  C   s   t d} tj| kstd S )NzD
        This is the func_e method.

        It computes E.
        )r   r   r   r   r   r   r   r   r
   -test_inherit_docstring_template_from_callable   s    r   c                  C   s   t d} tj| kstd S )Nz
        This is the func_f method.

        { We can escape curly braces like this. }

        Examples
        --------
        We should replace curly brace usage in doctests.

        >>> dict(x = "x", y = "y")
        >>> set((1, 2, 3))
        )r   r   r   r   r   r   r   r   r
   test_escaping_in_docstring   s    r   c                  C   s   t  } ttj t| S r   )setsignal	getsignalSIGINTweakrefref)objr   r   r
   exhibit_signal_refcycle   s    r'   c               	   C   sz   t    t } |  d kr"td W 5 Q R X t  t  6 t } |  d k	sPttt	d |  d ksltW 5 Q R X d S )Nz6Python version does not have the bug we're testing forr   )
r   r'   pytestskipgcZcollectr   r   sys	_getframe)wrr   r   r
   test_signal_refcycle   s    
r.   )r*   r!   r+   r   r$   r(   Zpyarrow.utilr   r   Zpyarrow.tests.utilr   r   r   r   r   r   r   r   r   r   r   r   r   r   r'   r.   r   r   r   r
   <module>   sL   

		





