o
    Zh                     @   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      dS )zD
    This is the {method} method.

    It computes {operation}.
    N Zwhateverr	   r	   N/var/www/html/lang_env/lib/python3.10/site-packages/pyarrow/tests/test_util.pyr      s   zK
        Examples
        --------

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

    >>> func_c()
    C
    Nr	   r
   r	   r	   r   r   :   s   func_dDc                 C   r   r   r	   r
   r	   r	   r   r   J      func_eEc                 C   r   r   r	   r
   r	   r	   r   r   O   r   func_f)r   c                 C   r   )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      t d} tj| ksJ d S )NzD
        This is the func_a method.

        It computes A.
        )textwrapdedentr   __doc__Zdocstrr	   r	   r   test_docstring_formattinge      r   c                  C   r   )Nz
        This is the func_b method.

        It computes B.

        Examples
        --------

        >>> func_b()
        B
        )r   r   r   r   r   r	   r	   r   test_docstring_concatenationp      r   c                  C   r   )Nz
        This is the func_c method.

        It computes C.

        Examples
        --------

        >>> func_c()
        C
        )r   r   r   r   r   r	   r	   r   test_docstring_append   r    r!   c                  C   r   )NzD
        This is the func_d method.

        It computes D.
        )r   r   r   r   r   r	   r	   r   %test_docstring_template_from_callable   r   r"   c                  C   r   )NzD
        This is the func_e method.

        It computes E.
        )r   r   r   r   r   r	   r	   r   -test_inherit_docstring_template_from_callable   r   r#   c                  C   r   )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   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   s   t   t } |  d u rtd W d    n1 sw   Y  t  t  ! t } |  d us2J ttd |  d u s@J W d    d S 1 sKw   Y  d S )Nz6Python version does not have the bug we're testing forr   )	r   r,   pytestskipgcZcollectr   sys	_getframe)wrr	   r	   r   test_signal_refcycle   s   
"r3   )r/   r&   r0   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,   r3   r	   r	   r	   r   <module>   sN   

		





