K iddlZddlZddlZddlZddlZddlZddlZddlZddlm Z m Z m Z ddl m Z e dddZe eejdd d d Ze ed d dZe edddZe edddZe ddZdZdZdZdZdZdZdZdZej:j=ej>d k7d!"d#Z y)$N)doc!_break_traceback_cycle_from_framedownload_tzdata_on_windows) disabled_gcfunc_aA)method operationcy)zD This is the {method} method. It computes {operation}. Nwhatevers ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pyarrow/tests/test_util.pyrr!s zK Examples -------- >>> func_b() B func_bBcyNr r s rrr+s rfunc_cCcy)z7 Examples -------- >>> func_c() C Nr r s rrr=s rfunc_dDcyrr r s rrrMrfunc_eEcyrr r s rrrRrrfunc_f)r cy)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 rrrWs rcXtjd}tj|k(sJy)NzD This is the func_a method. It computes A. )textwrapdedentr__doc__docstrs rtest_docstring_formattingr'h) __ F >>V ## #rcXtjd}tj|k(sJy)Nz This is the func_b method. It computes B. Examples -------- >>> func_b() B )r"r#rr$r%s rtest_docstring_concatenationr*s) __  F >>V ## #rcXtjd}tj|k(sJy)Nz This is the func_c method. It computes C. Examples -------- >>> func_c() C )r"r#rr$r%s rtest_docstring_appendr-r+rcXtjd}tj|k(sJy)NzD This is the func_d method. It computes D. )r"r#rr$r%s r%test_docstring_template_from_callabler/r(rcXtjd}tj|k(sJy)NzD This is the func_e method. It computes E. )r"r#rr$r%s r-test_inherit_docstring_template_from_callabler1r(rcXtjd}tj|k(sJy)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#rr$r%s rtest_escaping_in_docstringr3s) __  F >>V ## #rct}tjtjt j |Sr)setsignal getsignalSIGINTweakrefref)objs rexhibit_signal_refcycler<s, %C V]]# ;;s rcjt5t}|tjddddt j t5t}|Jt tjd|J dddy#1swYlxYw#1swYyxYw)Nz6Python version does not have the bug we're testing forr) rr<pytestskipgccollectrsys _getframe)wrs rtest_signal_refcyclerEs J $ & 4< KKH JJ JJL  $ &t)#--*:;t|| JJs'B;B)B&)B2win32z&Timezone database is already provided.)reasonc.tjjd}tjj|rt j |t tjj|sJtjjtjj|dsJtjjtjj|dsJdtj|vsJy)Nz%USERPROFILE%\Downloads\tzdatazwindowsZones.xmleuropeversion) ospath expandvarsexistsshutilrmtreerjoinlistdir) tzdata_paths rtest_download_tzdata_on_windowsrTs''$$%FGK {# k"  77>>+ && & 77>>"'',,{4FG HH H 77>>"'',,{H= >> >  ;/ // /r)!r@rKr6rOrBr"r9r> pyarrow.utilrrrpyarrow.tests.utilrrr#rrrrrr'r*r-r/r1r3r<rEmarkskipifplatformrTr rrrZsS$  66*H$ %  HOO           VH, - VH, - H    $$"$"$$$$  CLLG+CE 0E 0r