
    <>i                        S SK r S SKrS SKrS SKrS SKrS SKrS SKrS SKrS SKJ	r	J
r
Jr  S SKJr  \	" SSS9S 5       r\	" \\R                  " S5      S	S
S9S 5       r\	" \SSS9S 5       r\	" \SSS9S 5       r\	" \SSS9S 5       r\	" SS9S 5       rS rS rS rS rS rS rS rS r\R:                  R=                  \R>                  S :g  S!S"9S# 5       r g)$    N)doc!_break_traceback_cycle_from_framedownload_tzdata_on_windows)disabled_gcfunc_aA)method	operationc                     g)z8
This is the {method} method.

It computes {operation}.
N whatevers    V/var/www/html/land-tabula/venv/lib/python3.13/site-packages/pyarrow/tests/test_util.pyr   r   !   s     	    zK
        Examples
        --------

        >>> func_b()
        B
        func_bBc                     g Nr   r   s    r   r   r   +   s     	r   func_cCc                     g)z#
Examples
--------

>>> func_c()
C
Nr   r   s    r   r   r   =   s     	r   func_dDc                     g r   r   r   s    r   r   r   M       r   func_eEc                     g r   r   r   s    r   r   r   R   r   r   func_f)r	   c                     g)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     	r   c                  \    [         R                  " S5      n [        R                  U :X  d   eg )NzD
        This is the func_a method.

        It computes A.
        )textwrapdedentr   __doc__docstrs    r   test_docstring_formattingr'   h   )    __	F >>V###r   c                  \    [         R                  " S5      n [        R                  U :X  d   eg )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   )    __
	F >>V###r   c                  \    [         R                  " S5      n [        R                  U :X  d   eg )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                  " S5      n [        R                  U :X  d   eg )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                  " S5      n [        R                  U :X  d   eg )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                  " S5      n [        R                  U :X  d   eg )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      s)    __	F >>V###r   c                      [        5       n [        R                  " [        R                  5        [        R
                  " U 5      $ r   )setsignal	getsignalSIGINTweakrefref)objs    r   exhibit_signal_refcycler<      s,    
 %C
V]]#;;sr   c                     [        5          [        5       n U " 5       c  [        R                  " S5        S S S 5        [        R
                  " 5         [        5          [        5       n U " 5       c   e[        [        R                  " S5      5        U " 5       b   e S S S 5        g ! , (       d  f       Nu= f! , (       d  f       g = f)Nz6Python version does not have the bug we're testing forr   )	r   r<   pytestskipgccollectr   sys	_getframe)wrs    r   test_signal_refcyclerE      s    	$&4<KKHJ 
 JJL	$&t)#--*:;t||	 
 
 
s   )B#>B4#
B14
Cwin32z&Timezone database is already provided.)reasonc                  ^   [         R                  R                  S5      n [         R                  R                  U 5      (       a  [        R
                  " U 5        [        5         [         R                  R                  U 5      (       d   e[         R                  R                  [         R                  R                  U S5      5      (       d   e[         R                  R                  [         R                  R                  U S5      5      (       d   eS[         R                  " U 5      ;   d   eg )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GK 	{##k"  77>>+&&&&77>>"'',,{4FGHHHH77>>"'',,{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      sQ  $ 
 	   
   6 6 * H$	 %	 
OO	 		 

	
	 VH,	 -	 VH,	 -	 H	 	 $$"$"$$$$  CLLG+C  E0E0r   