o
    h                     @   sH  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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ejjejd(kd)d*d+d, Z dS )-    N)doc!_break_traceback_cycle_from_framedownload_tzdata_on_windows)disabled_gcfunc_aA)method	operationc                 C      dS )zD
    This is the {method} method.

    It computes {operation}.
    N whateverr   r   K/var/www/vscode/kcb/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   M      func_eEc                 C   r   r   r   r   r   r   r   r   R   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   W   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__docstrr   r   r   test_docstring_formattingh      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_concatenations      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   
r0   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   r0   pytestskipgccollectr   sys	_getframe)wrr   r   r   test_signal_refcycle   s   
"r8   win32z&Timezone database is already provided.)reasonc                  C   s   t jd} t j| rt|  t  t j| sJ t jt j| ds)J t jt j| ds6J dt | v s?J d S )Nz%USERPROFILE%\Downloads\tzdatazwindowsZones.xmleuropeversion)	ospath
expandvarsexistsshutilrmtreer   joinlistdir)tzdata_pathr   r   r   test_download_tzdata_on_windows   s   
rF   )!r3   r=   r*   rA   r5   r   r-   r1   pyarrow.utilr   r   r   pyarrow.tests.utilr   r   r   r   r   r   r   r   r!   r#   r%   r&   r'   r(   r0   r8   markskipifplatformrF   r   r   r   r   <module>   sZ   

		





