+
    xȇi                     X    ^ RI t ^ RIt^ RIt^ RIHtHt ^ RIHt R t	R t
R tR tR tR# )    N)VERSIONSimport_optional_dependencyc                     R p \         P                  ! \        V R7      ;_uu_ 4       p\        R4       RRR4       \	        XP
                  P                  \        4      '       g   Q h\        RRR7      pVe   Q hR#   + '       g   i     LQ; i)z2Import .*notapackage.* pip .* conda .* notapackagematchnotapackageNignoreerrors)pytestraisesImportErrorr   
isinstancevalue__context__)r   exc_inforesults      u/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/test_optional_dependency.pytest_import_optionalr      se    @E	{%	0	0H"=1 
1 hnn00+>>>>'hGF>> 
1	0s   A<<B	c                  H    \         P                  ! R 4       \        R 4       R# )xlrdN)r   importorskipr        r   test_xlrd_version_fallbackr      s    
v&r   c                    R p\         P                  ! V4      pRVn        V\        P                  V&   V P                  \        VR4       Rp\        P                  ! \        VR7      ;_uu_ 4        \        R 4       RRR4       \        R RR7      pWBJ g   Q h\        P                  ! \        VR7      ;_uu_ 4        \        R RR	7      pRRR4       Ve   Q hRVn        \        R 4      pWBJ g   Q h\        P                  ! \        R
R7      ;_uu_ 4        \        R RR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \        R RRR7      pRRR4       Ve   Q h\        R RRR7      pVe   Q hR#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lf; i)
fakemodule0.9.01.0.01Pandas requires .*1.0.0.* of .fakemodule.*'0.9.0'r   Nz0.8)min_versionwarnr
   zPandas requires version '1.1.0'z1.1.0zPandas requires version)r   r!   r	   )types
ModuleType__version__sysmodulessetitemr   r   r   r   r   tmassert_produces_warningUserWarning)monkeypatchnamemoduler   r   s   &    r   test_bad_versionr/      si   Dd#F FCKK$0?E	{%	0	0"<0 
1 (%HF		#	#Ku	=	=+LH 
>>> F'5F	{*K	L	L"<WE 
M 
	#	#K7P	Q	Q+W
 
R >>'X7F >>7 
1	0	0 
>	= 
M	L 
R	Qs0   0F<FF)F<F	F&	)F9	<G	c                    R p\         P                  ! V4      pRVn        V\        P                  V&   Rp\         P                  ! V4      p\        W#V4       V\        P                  V RV 2&   V P                  \        VR4       Rp\        P                  ! \        VR7      ;_uu_ 4        \        R4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        RR	R
7      pRRR4       Xe   Q hRVn        \        R4      pWdJ g   Q hR#   + '       g   i     Lk; i  + '       g   i     LD; i)r   r   	submodule.r   r    r   zfakemodule.submoduleNr"   r
   )r#   r$   r%   r&   r'   setattrr(   r   r   r   r   r   r)   r*   r+   )r,   r-   r.   sub_namer1   r   r   s   &      r   test_submoduler5   D   s    Dd#F FCKKH  *IFi((1CKK4&($%$0?E	{%	0	0"#9: 
1 
	#	#Ku	=	=+,B6R 
>>> F'(>?F 
1	0 
>	=s   ,D$D.D+	.D>	c                 "   R p\         P                  ! V4      pV\        P                  V&   V P	                  \
        VR4       \        P                  ! \        RR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)r   r   zCan't determine .* fakemoduler   N)
r#   r$   r&   r'   r(   r   r   r   r   r   )r,   r-   r.   s   &  r   test_no_version_raisesr7   ]   sa    Dd#FCKK$0	{*I	J	J"4( 
K	J	J	Js   'A==B	)r&   r#   r   pandas.compat._optionalr   r   pandas._testing_testingr)   r   r   r/   r5   r7   r   r   r   <module>r;      s2    
  
 '
#L2)r   