
    HR-eF                     x   d 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 n# e	$ r i Zi ZY nw xY wddl
Z
ddlmZ ddlmZ esddlZ ej        d            eedd	          r eed
          r ej        dde           ddlmZ erddlZi Ze
j        d             Ze
j        d             Zd Zd Zd ZdS )z
This file contains pytest configuration settings that are astropy-specific
(i.e.  those that would not necessarily be shared by affiliated packages
making use of astropy's test runner).
    N)PYTEST_HEADER_MODULESTESTED_VERSIONS)__version__)NUMPY_LT_2_0z1.25)legacyfrozenF_MEIPASSignorez(?s).*MATPLOTLIBDATA.*)category)HAS_MATPLOTLIBc               #      K   ddl m}  | j                            i d          5  d V  d d d            d S # 1 swxY w Y   d S )Nr   )pyplotT)after_reset)
matplotlibr   stylecontext)plts    0lib/python3.11/site-packages/astropy/conftest.pyignore_matplotlibrcr   0   s       )(((((			24		0	0                   s   7;;c               #      K   t          j                    } t          j        d           dV  t          j        |            dS )zjFixture that reduces thread switching interval.

    This makes it easier to provoke race conditions.
    gư>N)sysgetswitchintervalsetswitchinterval)olds    r   fast_thread_switchingr   :   sG       

!
!C$	EEE#    c                    ddl m} d|_        dt          _        t
          rt          j                    5  t          j        d           t          
                    t          j                   t          j                     t          j        d           d d d            n# 1 swxY w Y   t          j                            d          t          _        t          j                            d          t          _        t)          j        d	          t          j        d<   t)          j        d
          t          j        d<   t          j        t          j                            t          j        d         d                     t          j        t          j                            t          j        d         d                     d| j        _        dt6          d<   dt6          d<   dt6          d<   dt6          d<   t8          t:          d<   d S )Nr   confFTr
   AggXDG_CONFIG_HOMEXDG_CACHE_HOMEastropy_configastropy_cacheastropyerfaPyERFAcythonCythonskimagezScikit-imageasdfAstropy)astropy.utils.iersr   auto_downloadbuiltins_pytest_runningr   warningscatch_warningssimplefiltermatplotlibrc_cacheupdater   rcParams
rcdefaultsuseosenvironget_xdg_config_home_orig_xdg_cache_home_origtempfilemkdtempmkdirpathjoinoptionastropy_headerr   r   r   config	iers_confs     r   pytest_configurerH   F   s   444444 $I#H "$&& 	" 	"!(+++%%j&9:::!###N5!!!		" 	" 	" 	" 	" 	" 	" 	" 	" 	" 	" 	" 	" 	" 	" &(Z^^4E%F%FH"$&JNN3C$D$DH!$,$45E$F$FBJ !#+#3O#D#DBJ HRW\\"*%67CCDDDHRW\\"*%56	BBCCC#'FM &,(#&.(#,5.)$*&!!,OIs   A B  B$'B$c                 p   ddl m} |                    d           dt          _        t
          r|t          j                    5  t          j        d           t          j
                            t                     t                                           d d d            n# 1 swxY w Y   t          j         t          j                            d           nt          j        t          j        d<   t          j        !t          j                            d           d S t          j        t          j        d<   d S )Nr   r   r.   Fr
   r!   r"   )r-   r   resetr/   r0   r   r1   r2   r3   r   r6   r5   r4   clearr<   r9   r:   popr=   rE   s     r   pytest_unconfigurerM   k   sD   444444 OOO$$$$H '$&& 	' 	'!(+++&&'9:::$$&&&	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	'
 %-

())))(0(F
$%$,

'((((('/'D
#$$$s   AB  B$'B$c                     	 t                       n# t          $ r Y dS w xY w| j                            d          sdS |                                  |                     ddd           dS )z;Output a warning to IPython users in case any tests failed.Nfaileda  Some tests may fail when run from the IPython prompt; especially, but not limited to tests involving logging and warning handling.  Unless you are certain as to the cause of the failure, please check that the failure occurs outside IPython as well.  See https://docs.astropy.org/en/stable/known_issues.html#failing-logging-tests-when-running-the-tests-in-ipython for more information.T)yellowbold)get_ipython	NameErrorstatsr;   ensure_newline
write_line)terminalreporters    r   pytest_terminal_summaryrX      s        !%%h// ##%%%	H    	 	 	 	 	s    
) __doc__r/   r9   r   r>   r1   pytest_astropy_header.displayr   r   ImportErrorpytestr%   r    astropy.utils.compat.numpycompatr   numpynpset_printoptionsgetattrhasattrfilterwarningsUserWarning"astropy.utils.compat.optional_depsr   r   r4   fixturer   r   rH   rM   rX    r   r   <module>rh      s   
  				 



  TTTTTTTTT   OOO        9 9 9 9 9 9 'Bv&&&& 73%   VWWS*%=%= VHH&>UUUU > = = = = =        "- "- "-JE E E2    s   ! 	--