
    z-Ph                        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Zd dlZd dlm	Z	m
Z
mZ d dlmZ  e	dd          d             Z e	e ej        d          d	d
          d             Z e	edd          d             Z e	edd          d             Z e	edd          d             Z e	d          d             Zd Zd Zd Zd Zd Zd Zd Zd Zej                            ej        d k    d!"          d#             Z dS )$    N)doc!_break_traceback_cycle_from_framedownload_tzdata_on_windows)disabled_gcfunc_aA)method	operationc                     dS )zD
    This is the {method} method.

    It computes {operation}.
    N whatevers    W/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pyarrow/tests/test_util.pyr   r   !   s	     	D    zK
        Examples
        --------

        >>> func_b()
        B
        func_bBc                     d S Nr   r   s    r   r   r   +   s	     	Dr   func_cCc                     dS )z7
    Examples
    --------

    >>> func_c()
    C
    Nr   r   s    r   r   r   =   s	     	Dr   func_dDc                     d S r   r   r   s    r   r   r   M       Dr   func_eEc                     d S r   r   r   s    r   r   r   R   r   r   func_f)r	   c                     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   s    r   r   r   W   s	     	Dr   c                  R    t          j        d          } t          j        | k    sJ d S )NzD
        This is the func_a method.

        It computes A.
        )textwrapdedentr   __doc__docstrs    r   test_docstring_formattingr'   h   3    _	 F >V######r   c                  R    t          j        d          } t          j        | k    sJ d S )Nz
        This is the func_b method.

        It computes B.

        Examples
        --------

        >>> func_b()
        B
        )r"   r#   r   r$   r%   s    r   test_docstring_concatenationr*   s   3    _
	 F >V######r   c                  R    t          j        d          } t          j        | k    sJ d S )Nz
        This is the func_c method.

        It computes C.

        Examples
        --------

        >>> func_c()
        C
        )r"   r#   r   r$   r%   s    r   test_docstring_appendr-      r+   r   c                  R    t          j        d          } t          j        | k    sJ d S )NzD
        This is the func_d method.

        It computes D.
        )r"   r#   r   r$   r%   s    r   %test_docstring_template_from_callabler/      r(   r   c                  R    t          j        d          } t          j        | k    sJ d S )NzD
        This is the func_e method.

        It computes E.
        )r"   r#   r   r$   r%   s    r   -test_inherit_docstring_template_from_callabler1      r(   r   c                  R    t          j        d          } t          j        | k    sJ 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%   s    r   test_escaping_in_docstringr3      s3    _	 F >V######r   c                      t                      } t          j        t          j                   t	          j        |           S r   )setsignal	getsignalSIGINTweakrefref)objs    r   exhibit_signal_refcycler<      s0    
 %%C
V]###;sr   c                     t                      5  t                      }  |             t          j        d           d d d            n# 1 swxY w Y   t	          j                     t                      5  t                      }  |             J t          t          j        d                      |             J 	 d d d            d S # 1 swxY w Y   d S )Nz6Python version does not have the bug we're testing forr   )	r   r<   pytestskipgccollectr   sys	_getframe)wrs    r   test_signal_refcyclerE      sc   	 J J$&&244<KHJ J JJ J J J J J J J J J J J J J J JLLL	  $&&rtt)#-*:*:;;;rtt||||	                 s$   -AAA4AC

CCwin32z&Timezone database is already provided.)reasonc                  4   t           j                            d          } t           j                            |           rt	          j        |            t                       t           j                            |           sJ t           j                            t           j                            | d                    sJ t           j                            t           j                            | d                    sJ dt          j        |           v sJ d S )Nz%USERPROFILE%\Downloads\tzdatazwindowsZones.xmleuropeversion)	ospath
expandvarsexistsshutilrmtreer   joinlistdir)tzdata_paths    r   test_download_tzdata_on_windowsrT      s     '$$%FGGK 	{## #k"""    7>>+&&&&&7>>"',,{4FGGHHHHH7>>"',,{H==>>>>>
;////////r   )!r@   rK   r6   rO   rB   r"   r9   r>   pyarrow.utilr   r   r   pyarrow.tests.utilr   r   r#   r   r   r   r   r   r'   r*   r-   r/   r1   r3   r<   rE   markskipifplatformrT   r   r   r   <module>rZ      s  $ 
			 				   



   6 6 6 6 6 6 6 6 6 6 * * * * * * H$$$	 	 %$	 
HO	    	 	 	 
  
	 	 
	 VH,,,	 	 -,	 VH,,,	 	 -,	 H	 	 	 $ $ $$ $ $"$ $ $"$ $ $$ $ $$ $ $$      CLG+C  E E0 0E E0 0 0r   