
    =h                     
   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   S SK	r	\	R                  " S5        Sr\ R                  " \5      rSr \" \R$                  R'                  SS5      5      r\\R(                  R*                  l        \(       a  \R1                  S5        O\R1                  S5        S	 rS
 rS r\R8                  " 5       S 5       r\R8                  " 5       S 5       rS rg! \ a    Sr Nf = f! \ a     N{f = f)    N)PYTHON_IMPL_WASMaggTFSM_TEST_COPY_ON_WRITEzCopy on Write Enabled!zCopy on Write disabledc                     U R                  SSSS9  U R                  SSSS9  U R                  SSSS9  U R                  S	SS
S9  U R                  SSSS9  U R                  SSSS9  g )N--skip-slow
store_truezskip slow tests)actionhelp--only-slowzrun only slow tests--skip-exampleszskip tests of examples--skip-matplotlibz$skip tests that depend on matplotlib--skip-smokezskip smoke tests--only-smokezrun only smoke tests)	addoption)parsers    gC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\statsmodels/conftest.pypytest_addoptionr   !   s    
]<+  -
]</  1
&|2  4
(@  B
^L,  .
^L0  2    c                    SU R                   ;   a6  U R                  R                  S5      (       a  [        R                  " S5        SU R                   ;  a6  U R                  R                  S5      (       a  [        R                  " S5        SU R                   ;   a6  U R                  R                  S5      (       a  [        R                  " S5        S	U R                   ;   a6  U R                  R                  S
5      (       a  [        R                  " S5        S	U R                   ;   a!  [
        (       d  [        R                  " S5        SU R                   ;   a6  U R                  R                  S5      (       a  [        R                  " S5        SU R                   ;  a8  U R                  R                  S5      (       a  [        R                  " S5        g g g )Nslowr   zskipping due to --skip-slowr   zskipping due to --only-slowexampler   zskipping due to --skip-examples
matplotlibr   z!skipping due to --skip-matplotlibz)skipping since matplotlib is not intalledsmoker   zskipping due to --skip-smoker   zskipping due to --only-smoke)keywordsconfig	getoptionpytestskipHAVE_MATPLOTLIB)items    r   pytest_runtest_setupr!   0   s9   4;;#8#8#G#G12T]]"t{{'<'<]'K'K12DMM!dkk&;&;<M&N&N56t}}$KK!!"56678t}}$__?@$--DKK$9$9.$I$I23dmm#(=(=n(M(M23 )N#r   c                      SS K nUR                  " S5         SSKJn  U" 5         g ! [         a     g f = f! [         a     g f = f)Nr   r   )register_matplotlib_converters)r   usepandas.plottingr#   ImportError)r   r   r#   s      r   pytest_configurer'   H   sG    	u	F*, 		 s#   7 ' 
47 47 
AAc               #   `   ^#     SSK mU4S jn U v   U " 5         g! [         a    S n  Nf = f7f)aP  
Fixture that closes all figures after a test function has completed

Returns
-------
closer : callable
    Function that will close all figures when called.

Notes
-----
Used by passing as an argument to the function that produces a plot,
for example

def test_some_plot(close_figures):
    <test code>

If a function creates many figures, then these can be destroyed within a
test function by calling close_figures to ensure that the number of
figures does not become too large.

def test_many_plots(close_figures):
    for i in range(100000):
        plt.plot(x,y)
        close_figures()
r   Nc                  <   > T R                   R                  S5        g )Nall)pyplotclose)r   s   r   r,   close_figures.<locals>.closes   s    ##E*r   c                      g )N r/   r   r   r,   r-   w   s    r   )matplotlib.pyplotr&   )r,   r   s    @r   close_figuresr1   U   s4     6 	+ K	G  	s   .
 .+.+.c               #      #    [         R                  R                  5       n [         R                  R                  S5        Sv   [         R                  R	                  U 5        g7f)a  
Fixture that set the global RandomState to the fixed seed 1

Notes
-----
Used by passing as an argument to the function that uses the global
RandomState

def test_some_plot(reset_randomstate):
    <test code>

Returns the state after the test function exits
   N)nprandom	get_stateseed	set_state)states    r   reset_randomstater:   ~   s>      II!EIINN1	IIs   A"A$c                 8   [         (       a  U H  nSUR                  ;   d  M  UR                  S5      nU(       d  M/  [        UR                  5      nSUS'   [
        R                  R                  " S0 UD6nUR                  U5        XRR                  S'   M     g g )NxfailFstrictr/   )	r   r   get_closest_markerdictkwargsr   markr<   
add_marker)r   itemsr    rA   
new_kwargsnew_marks         r   pytest_collection_modifyitemsrF      s    D$--'..w74 "&dkk!2J+0Jx(%{{00>:>HOOH--5MM'*  	r   ) loggingosnumpyr4   pandaspdr   statsmodels.compat.pythonr   r   r$   r   r&   	getLogger__name__loggercowboolenvirongetoptionsmodecopy_on_writeAttributeErrorcriticalr   r!   r'   fixturer1   r:   rF   r/   r   r   <module>rZ      s
    	    6NN5O
 
		8	$	
rzz~~5u=
>C$'BJJOO! 
OO,-
OO,-240
 % %P  4W  O  		s#   C+ 	=C9 +C65C69DD