+
    Bi                     d   ^ RI HtHt ]P                  ! R4      t^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIHt ^ RIt ! R R]P                  4      t ! R R]4      t]P                   ! ]]R	7      w  tt ! R
 R]4      t]P                   ! ]]R	7      w  tt]R8X  d   ]P.                  ! 4        R# R# )    )abcutilzimportlib.machineryN)make_legacy_pycc                      a  ] tR t^t o R tR tRRRRR/R lltR tR tR	 t	R
 t
R tR tR tR tR t]P"                  ! ]P&                  R8g  R4      R 4       tR tRtV tR# )FinderTestsc                    V P                   P                  V P                   P                  3V P                   P                  V P                   P                  3.pV P                   P
                  ! V.VO5!  # N)	machinerySourceFileLoaderSOURCE_SUFFIXESSourcelessFileLoaderBYTECODE_SUFFIXES
FileFinder)selfrootloader_detailss   && =/usr/lib/python3.14/test/test_importlib/source/test_finder.py
get_finderFinderTests.get_finder'   sc    >>:: NN::<>>>> NN<<>? ~~((???    c                J    V P                  V4      pV P                  W2R R7      # )Tloader_only)r   _find)r   r   modulefinders   &&& r   import_FinderTests.import_.   s#    &zz&dz;;r   Ncompile_unlinkc               *   Vf   V0p\         P                  ! V!  ;_uu_ 4       pV'       d&   V F  p\        P                  ! WV,          4       K!  	  V'       d8   V F1  p\        P
                  ! WV,          4        \        WV,          4       K3  	  V P                  VR,          V4      pV P                  VR4       VuuR R R 4       #   \         d,   pTP                  \        P                  8w  d   h  R p?K  R p?ii ; i  + '       g   i     R # ; i)N.rootload_module)r   create_modules
py_compilecompileosr    r   OSErrorerrnoENOENTr   assertHasAttr)	r   testcreater   r    mappingnameerrorloaders	   &&&$$    r   run_testFinderTests.run_test2   s     >VF  &))W$D&&w}5 %"DIIgm,"'6 # \\''"2D9Fv}5# *) # " !;;%,,6! 7	" *))s;   5D!D<C0DC>	 C9	3D9C>	>DD	c                |    V P                  R 4       V P                  R R 0R 0R7       V P                  R R 0R7       R# )	top_levelr   r    r   Nr2   r   s   &r   test_moduleFinderTests.test_moduleO   s>    k"k[M)] 	 	, 	k[M:r   c                    V P                  R R04       V P                  R R0R0R0R7       V P                  R R0R0R7       R# )pkgpkg.__init__r6   r7   Nr8   r9   s   &r   test_packageFinderTests.test_packageY   sP    en-.en-8H&' 	 	) 	en-8HIr   c                   \         P                  ! R R4      ;_uu_ 4       p\        P                  P	                  VR ,          4      pV P                  VR4      pV P                  VR4       RRR4       R#   + '       g   i     R# ; i)r>   pkg.subr#   Nr   r$   r'   pathdirnamer   r+   )r   r.   pkg_dirr1   s   &   r   test_module_in_package"FinderTests.test_module_in_packagec   s]      ;;wggoogn&=>G\\'95Fv}5 <;;;s   AA55B	c                   \         P                  ! R R4      pV;_uu_ 4       p\        P                  P	                  VR ,          4      pV P                  VR4      pV P                  VR4       RRR4       R#   + '       g   i     R# ; i)r>   zpkg.sub.__init__rB   r#   NrC   )r   contextr.   rF   r1   s   &    r   test_package_in_package#FinderTests.test_package_in_packagej   s_    %%n6HIWggoogn&=>G\\'95Fv}5 WWWs   AA77B	c                    R pV P                  VRP                  V4      V04      pV P                  RVP                  V4      4       R# )_tempz{0}.__init____init__N)r2   formatassertInget_filename)r   r/   r1   s   &  r   test_package_over_module$FinderTests.test_package_over_moduler   s@    tn&;&;D&A4%HIj&"5"5d";<r   c                    \         P                  ! R 4      ;_uu_ 4       pV P                  VR,          R4      pV P                  W P                  4       RRR4       R#   + '       g   i     R# ; i)blahr"   
sdfsadsadfN)r   r$   r   assertEqual	NOT_FOUND)r   r.   nothings   &  r   test_failureFinderTests.test_failurew   sK      ((Gll77#3\BGWnn5 )(((s   5AA/	c                   V P                   P                  R V P                   P                  V P                   P                  34      p\	        RRRR7      ;_uu_ 4       pVP                  R4       RRR4        V P                  VRRR	7      pV P                  VR
4       \        P                  ! R4       R#   + '       g   i     LO; i  \        P                  ! R4       i ; i) zmod.pywzutf-8)encodingz# test file for importlibNmodTr   r#   )
r
   r   r   r   openwriter   r+   r'   r    )r   r   filer1   s   &   r   test_empty_string_for_dir%FinderTests.test_empty_string_for_dir|   s    **20O0ONN**0, -(C'22dJJ23 3	 ZZ4Z@Fv}5IIh 32 IIhs   B68&C	 6C		C!c                    V P                   P                  R V P                   P                  V P                   P                  34      p^*Vn        VP                  4        V P                  VP                  R4       R# )r^   N)r
   r   r   r   _path_mtimeinvalidate_cachesrX   )r   r   s   & r   test_invalidate_caches"FinderTests.test_invalidate_caches   s`    **20O0ONN**0, -  "++R0r   c                V   R p\         P                  ! V4      ;_uu_ 4       pV P                  VR,          4      pV P                  VR RR7      pV P	                  V4       RRR4       V P                  XR RR7      pV P                  W@P                  4       R#   + '       g   i     LA; i)ra   r"   Tr   N)r   r$   r   r   assertIsNotNonerX   rY   )r   ra   r.   r   founds   &    r   test_dir_removal_handling%FinderTests.test_dir_removal_handling   s      %%__WW%56FJJvu$J?E  ' & 

65d
;/ &%s   >BB(	win32z>os.chmod() does not support the needed arguments under Windowsc                   \         P                  ! 4       pV P                  V4       \        P                  ! VP
                  4      P                  pV P                  \        P                  VP
                  V4       \        P                  ! VP
                  \        P                  \        P                  ,          4       V P                  VP
                  4      pV P                  VR 4      pV P                  W@P                  4       R# doesnotexistN)tempfileTemporaryDirectoryenterContextr'   statr/   st_mode
addCleanupchmodS_IWUSRS_IXUSRr   r   rX   rY   )r   tempdiroriginal_moder   ro   s   &    r   test_no_read_directory"FinderTests.test_no_read_directory   s     --/'" -55',,>
t||dll:;.

6>2/r   c                
   \         P                  ! 4       ;_uu_ 4       pV P                  VP                  4      pV P	                  VR 4      pV P                  W0P                  4       RRR4       R#   + '       g   i     R# ; irt   )rv   NamedTemporaryFiler   r/   r   rX   rY   )r   file_objr   ro   s   &   r   test_ignore_fileFinderTests.test_ignore_file   sX     ((**h__X]]3FJJv~6EUNN3 +***s   A	A11B	 r	   )__name__
__module____qualname____firstlineno__r   r   r2   r:   r?   rG   rK   rS   r[   re   rk   rp   unittest
skipUnlesssysplatformr   r   __static_attributes____classdictcell____classdict__s   @r   r   r      s     0@<d 4 :;J66=
6

 10 0LN0N04 4r   r   c                   .   a  ] tR t^t o RtRR ltRtV tR# )FinderTestsPEP451Nc                H    VP                  V4      pVe   VP                  # T# r	   )	find_specr1   r   r   r/   r   specs   &&&& r   r   FinderTestsPEP451._find   s&    %".t{{8D8r   r   Fr   r   r   r   rY   r   r   r   r   s   @r   r   r      s     I9 9r   r   )r
   c                   2   a  ] tR t^t o R. 3tRR ltRtV tR# )FinderTestsPEP420Nc                    VP                  V4      pVf   V P                  # V'       d   VP                  # VP                  VP                  3# r	   )r   rY   r1   submodule_search_locationsr   s   &&&& r   r   FinderTestsPEP420._find   sC    %<>>!;;{{D;;;;r   r   r   r   r   s   @r   r   r      s     r
I< <r   r   __main__)test.test_importlibr   r   import_importlibr
   r)   r'   r%   ry   r   rv   test.support.import_helperr   r   r   r   	test_bothFrozen_FinderTestsPEP451Source_FinderTestsPEP451r   Frozen_FinderTestsPEP420Source_FinderTestsPEP420r   mainr   r   r   <module>r      s    )!!"78	  	   
  6 a4#// a4H9 9 
^^%;
< 
< 
^^%; zMMO r   