Ë
    ¨ehã  ã                   ó®   — d dl Z d dlZd dlZd dlmZ d„ Zd„ Z e j                  d¬«      d„ «       Ze j                  d„ «       Ze j                  d	„ «       Z	y)
é    N)Ú_apic                 ó¨   — dD ]  \  }}| j                  ||«       Œ t        j                  dd¬«       dt        _        t        j                  «        y )N))Úmarkersz*flaky: (Provided by pytest-rerunfailures.))r   z&timeout: (Provided by pytest-timeout.))r   z6backend: Set alternate Matplotlib backend temporarily.)r   z3baseline_images: Compare output against references.)r   z.pytz: Tests that require pytz to be installed.)ÚfilterwarningsÚerror)r   z?ignore:.*The py23 module has been deprecated:DeprecationWarning)r   z]ignore:DynamicImporter.find_spec\(\) not found; falling back to find_module\(\):ImportWarningÚaggT)Úforce)Úaddinivalue_lineÚ
matplotlibÚuseÚ_called_from_pytestÚ_init_tests)ÚconfigÚkeyÚvalues      úY/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/matplotlib/testing/conftest.pyÚpytest_configurer      sM   € ð
ò ,‰
ˆˆUð 	×Ñ  UÕ+ð,ô ‡N�N�5 Õ%Ø%)„JÔ"Ü×ÑÕó    c                 ó   — dt         _        y )NF)r   r   )r   s    r   Úpytest_unconfigurer       s
   € Ø%*„JÕ"r   T)Úautousec           
   #   ó   K  — ddl m}  |«       5  d }| j                  j                  d«      }t	        j
                  «       }|��t        |j                  «      dk(  sJ d«       ‚|j                  \  }|j                  j                  dd«      }|j                  «       j                  d«      r't        d	„ d
D «       «      rt        j                  d«       t        j                  j!                  «        t#        j$                  «       5  |�dd lm} 	 |j+                  |«       t        j.                  j1                  ddg«       d d d «       	 d –— |�'j3                  d«       t	        j0                  |«       	 d d d «       y # t,        $ r<}d|j                  «       v srt        j                  d|› d|› d�«       n‚ Y d }~Œ d }~ww xY w# 1 sw Y   ŒˆxY w# |�'j3                  d«       t	        j0                  |«       w w xY w# 1 sw Y   y xY w­w)Nr   )Ú_cleanup_cmÚbackendé   z(Marker 'backend' must specify 1 backend.Úskip_on_importerrorFÚqt5c              3   óZ   K  — | ]#  }t         j                  j                  |«      –— Œ% y ­w)N)ÚsysÚmodulesÚget)Ú.0Úks     r   ú	<genexpr>z$mpl_test_settings.<locals>.<genexpr>6   s   è ø€ ÒG¨a”s—{‘{—‘ q×)ÑGùs   ‚)+)ÚPyQt4ÚPySidezQt4 binding already importedÚcairozFailed to switch to backend z (z).ÚclassicÚ_classic_test_patchÚall)Úmatplotlib.testing.decoratorsr   ÚnodeÚget_closest_markerr   Úget_backendÚlenÚargsÚkwargsr!   ÚlowerÚ
startswithÚanyÚpytestÚskipÚtestingÚsetupr   Ú'suppress_matplotlib_deprecation_warningÚmatplotlib.pyplotÚpyplotÚswitch_backendÚImportErrorÚstyler   Úclose)Úrequestr   r   Úbackend_markerÚprev_backendr   ÚpltÚexcs           r   Úmpl_test_settingsrE   $   sá  è ø€ å9á	‹ñ (-àˆØ Ÿ™×8Ñ8¸ÓCˆÜ!×-Ñ-Ó/ˆØÐ%Ü�~×*Ñ*Ó+¨qÒ0ð ;Ø:ó;Ð0à%×*Ñ*‰HˆGØ"0×"7Ñ"7×";Ñ";Ø% uó#.Ðð �}‰}‹×)Ñ)¨%Ô0ÜÑGÐ3FÔGÔGÜ—K‘KÐ >Ô?ä×Ñ× Ñ Ô"Ü×9Ñ9Ó;ñ 	EØÐ"õ 0ð	Ø×&Ñ& wÔ/ô ×Ñ× Ñ  )Ð-BÐ!CÔD÷!	Eð"	-ÛàÐ"Ø—	‘	˜%Ô Ü—‘˜|Õ,÷Q(-ð (-øô2 #ò ð  '§-¡-£/Ñ1Ñ5HÜŸ™Ð$BØ'. i¨r°#°°bð%:õ ;ð ô;ûð	ú÷	Eð 	Eûð( Ð"Ø—	‘	˜%Ô Ü—‘˜|Õ,ð #ú÷M(-ð (-üsw   ‚H�C5HÄ	GÄF Ä !GÅHÅ
GÅ)HÅ7	HÆ 	GÆ	2G Æ;GÇ GÇGÇG	ÇHÇ+G?Ç?HÈHÈHc                  ól   — t        j                  d«      } 	 ddlm}  |«        | S # t        $ r Y | S w xY w)aø  
    Fixture to import and configure pandas. Using this fixture, the test is skipped when
    pandas is not installed. Use this fixture instead of importing pandas in test files.

    Examples
    --------
    Request the pandas fixture by passing in ``pd`` as an argument to the test ::

        def test_matshow_pandas(pd):

            df = pd.DataFrame({'x':[1,2,3], 'y':[4,5,6]})
            im = plt.figure().subplots().matshow(df)
            np.testing.assert_array_equal(im.get_array(), df)
    Úpandasr   )Ú deregister_matplotlib_converters)r5   ÚimportorskipÚpandas.plottingrH   r=   )ÚpdÚ
deregisters     r   rK   rK   S   sC   € ô  
×	Ñ	˜XÓ	&€Bðõ	<áŒð €Iøô ò ØØ€Iðús   —& ¦	3²3c                  ó0   — t        j                  d«      } | S )aÕ  
    Fixture to import xarray so that the test is skipped when xarray is not installed.
    Use this fixture instead of importing xrray in test files.

    Examples
    --------
    Request the xarray fixture by passing in ``xr`` as an argument to the test ::

        def test_imshow_xarray(xr):

            ds = xr.DataArray(np.random.randn(2, 3))
            im = plt.figure().subplots().imshow(ds)
            np.testing.assert_array_equal(im.get_array(), ds)
    Úxarray)r5   rI   )Úxrs    r   rO   rO   m   s   € ô" 
×	Ñ	˜XÓ	&€BØ€Ir   )
r5   r   r   r   r   r   ÚfixturerE   rK   rO   © r   r   ú<module>rR      sk   ðÛ Û 
Û Ý òò2+ð €‡�˜Ôñ+-ó ð+-ð\ ‡�ñó ðð2 ‡�ñó ñr   