+
    Bi(+                        ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^RIHt ^ RIH	t	H
t
HtHtHtHtHtHt ]P"                  R 4       t ! R R]P&                  ]P(                  ]P*                  ]P,                  ]P.                  ]P0                  ]P2                  ]P4                  ]P6                  4      t ! R R]P:                  ]P6                  4      t ! R	 R
]P>                  ]P6                  4      t  ! R R]P6                  4      t!R# )    N)fixtures)DistributionPackageNotFoundErrordistributionentry_pointsfilesmetadatarequiresversionc               #      "   \         P                  ! R R7      ;_uu_ 4       p \         P                  ! R\        R7       V x  RRR4       R#   + '       g   i     R# ; i5i)T)recorddefault)categoryN)warningscatch_warningssimplefilterDeprecationWarning)ctxs    </usr/lib/python3.14/test/test_importlib/metadata/test_api.pysuppress_known_deprecationr      s<     		 	 	-	-i2DE	 
.	-	-	-s    A!!A
A!A		A!c                      a  ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR t]R 4       tR tR tR tR tR tR tR tR tR t R t!R t"R t#R t$V t%R!# )"APITestsz\d+\.\d+(\.\d)?c                    \        R 4      pR# egginfo-pkgNr   selfpkg_versions   & r   test_retrieves_version_of_self'APITests.test_retrieves_version_of_self)   s    m,    c                    \        R 4      pR# distinfo-pkgNr   r   s   & r   &test_retrieves_version_of_distinfo_pkg/APITests.test_retrieves_version_of_distinfo_pkg.   s    n-r"   c                    V P                  \        4      ;_uu_ 4        \        R 4       RRR4       R#   + '       g   i     R# ; i)zdoes-not-existN)assertRaisesr   r   r   s   &r   test_for_name_does_not_exist%APITests.test_for_name_does_not_exist3   s,    344)* 5444s	   4A	c                    RpV F%  pV P                  V4      ;_uu_ 4        RRR4       K'  	  R#   + '       g   i     K<  ; ipkg.dotN)r/   pkg_dotzpkg-dotzpkg..dotzPkg.DotsubTestr   namesnames   &  r   test_name_normalization APITests.test_name_normalization7   -    FDd### ###	   0Ac           
        RpV FV  pV P                  V4      ;_uu_ 4        V P                  \        4      ;_uu_ 4        \        V4       RRR4       RRR4       KX  	  R#   + '       g   i     L; i  + '       g   i     K  ; i)pN)r;   pkgzpkg.)r2   r)   r   r   )r   prefixesprefixs   &  r   test_prefix_not_matched APITests.test_prefix_not_matched=   sZ    %Ff%%&&';<< ( = &% << &%%s"   A4A!A4!A1,A44Bc                    RR.pV F_  w  r#V P                  V4      ;_uu_ 4        V P                  \        V4      P                  R4      P	                  4       V4       RRR4       Ka  	  R#   + '       g   i     Kv  ; i)r   top_level.txtN)r   mod)egg_with_no_modules-pkg )r2   assertEqualr   	read_textstrip)r   testspkg_nameexpect_contents   &   r   test_for_top_levelAPITests.test_for_top_levelD   sl    "+
 ).$Hh''   *44_EKKM" (' ).'''s   9A,,A=c                B   RR.pV F{  w  r#V P                  V4      ;_uu_ 4        \        V4       Uu. uF  qDP                  R8X  g   K  VNK  	  up^ ,          pV P                  VP	                  4       V4       RRR4       K}  	  R# u upi   + '       g   i     K  ; i)r   rB   N)r   zmod
)rD   
)r2   r   r5   rF   rG   )r   rI   rJ   rK   path	top_levels   &     r   test_read_textAPITests.test_read_textP   s    $-
 ).$Hh''%*8_%4T		_8TDD_	   !4!4!6G	 (' ). (''s"   BB

B
*BBBc                    \        4       pVP                  R R7      pVR,          pV P                  VP                  R4       V P                  VP                  . 4       R# )entriesgroupmainzmod:mainN)r   selectrF   valueextras)r   epsrU   eps   &   r   test_entry_pointsAPITests.test_entry_points\   sJ    n**9*-V_:.B'r"   c                    \        R R7      pR FW  pW,          pV P                  VP                  P                  R4       V P	                  VP                  P
                  R4       KY  	  R# )rU   rV   z1.0.0N)rX   zns:sub)r%   r   )r   assertIndistr5   rF   r   )r   rU   entryr]   s   &   r   test_entry_points_distribution'APITests.test_entry_points_distributione   sL    Y/'EBMM"'',,(GHRWW__g6 (r"   c                
   V P                   P                  \         P                  ! 4       4      pV P                   P                  V P                  V4      4       R RRRR//p\         P                  ! W!4       \        RR7      pR# )zDistInfo_pkg-1.1.0.dist-infoMETADATAzS
                Name: distinfo-pkg
                Version: 1.1.0
                zentry_points.txtzJ
                [entries]
                main = mod:altmain
            rU   rV   N)r   enter_contexttmp_pathadd_sys_pathbuild_filesr   )r   alt_site_diralt_pkgrU   s   &   r   ,test_entry_points_unique_packages_normalized5APITests.test_entry_points_unique_packages_normalizedl   sy    
 }}2283D3D3FG##D$5$5l$CD*  # %	-
 	W3Y/r"   c                    V P                  \        4      ;_uu_ 4        \        R R7      R,           RRR4       R#   + '       g   i     R# ; i)rU   rV   missingN)r)   KeyErrorr   r*   s   &r   test_entry_points_missing_name'APITests.test_entry_points_missing_name   s/    x((y))4 )(((s	   <A	c                    R # N r*   s   &r   test_entry_points_missing_group(APITests.test_entry_points_missing_group   s    r"   c                    \        4       P                  R RR7      pV P                  \        4      ;_uu_ 4        ^Vn        RRR4       R#   + '       g   i     R# ; i)rU   rX   )rW   r5   N)r   rY   r)   AttributeErrorfoo)r   r]   s   & r   &test_entry_points_allows_no_attributes/APITests.test_entry_points_allows_no_attributes   s@    ^"""@~..BF /...s   AA	c                >    \        R 4      pVP                  R4      pR# )r   
ClassifierN)r	   get_all)r   mdclassifierss   &  r   test_metadata_for_this_package'APITests.test_metadata_for_this_package   s    m$ jj.r"   c                z    \        R 4      p\        4       ;_uu_ 4        RRR4       R#   + '       g   i     R# ; ir$   )r	   r   r   r   s   & r   test_missing_key_legacy APITests.test_missing_key_legacy   s$     n%'))))))s   ):	c                    \        R 4      pR# r   r	   r   s   & r   test_get_keyAPITests.test_get_key   s     m$r"   c                    \        R 4      pR# r$   r   r   s   & r   test_get_missing_keyAPITests.test_get_missing_key   s     n%r"   c                    V ^ ,          P                   pV  F6  pVP                  P                  R4      '       g   K&  VP                  4        K8  	  R# )r   z.pyN)rootr5   endswithrG   )r   r   files   &  r   _test_filesAPITests._test_files   s:    Qx}}D yy!!%((  r"   c                    \        R 4       Uu. uF  qP                  R8X  g   K  VNK  	  up^ ,          pV P                  \        VP                  4      R4       R# u upi )r%   zmod.pyz!<FileHash mode: sha256 value: .*>N)r   r5   assertRegexreprhash)r   r;   utils   &  r   test_file_hash_reprAPITests.test_file_hash_repr   sL     0G0aFFh4F0GJdii*MN Hs
   AAc                :    V P                  \        R 4      4       R# r$   r   r   r*   s   &r   test_files_dist_infoAPITests.test_files_dist_info   s    ~./r"   c                    V P                  \        R 4      4       V P                  \        R4      4       V P                  \        R4      4       V P                  \        R4      4       R# )r   zegg_with_module-pkgrD   zsources_fallback-pkgNr   r*   s   &r   test_files_egg_infoAPITests.test_files_egg_info   sQ    }-.45689:567r"   c                <    V P                  \        R 4      R4       R# )egginfo-filez0.1N)rF   r   r*   s   &r   test_version_egg_info_file#APITests.test_version_egg_info_file   s    0%8r"   c                >    \        R 4      pV P                  V4       R# )r   N)r
   assertIsNone)r   requirementss   & r   test_requires_egg_info_file$APITests.test_requires_egg_info_file   s    /,'r"   c                    \        R 4      pR# r   r
   r   depss   & r   test_requires_egg_infoAPITests.test_requires_egg_info   s    &r"   c                    \         P                  ! R R/V P                  P                  R4      4       \	        R4      pR# )zrequires.txtrE   zegginfo_pkg.egg-infor   N)r   rk   site_dirjoinpathr
   r   s   & r   test_requires_egg_info_empty%APITests.test_requires_egg_info_empty   s;     MM""#9:		
 &r"   c                    \        R 4      pR# r$   r   r   s   & r   test_requires_dist_info APITests.test_requires_dist_info   s    'r"   c                x    \         P                  ! R 4      p\        \        P                  ! V4      4      p. ROpR# )a  
            dep1
            dep2

            [:python_version < "3"]
            dep3

            [extra1]
            dep4
            dep6@ git+https://example.com/python/dep.git@v1.0.0

            [extra2:python_version < "3"]
            dep5
            N)dep1dep2zdep3; python_version < "3"zdep4; extra == "extra1"z2dep5; (python_version < "3") and extra == "extra2"zGdep6@ git+https://example.com/python/dep.git@v1.0.0 ; extra == "extra1")textwrapdedentsortedr   _deps_from_requires_text)r   r
   r   expecteds   &   r   $test_more_complex_deps_requires_text-APITests.test_more_complex_deps_requires_text   s3    ??
  l;;HEF
r"   c                B    \        R 4      P                  pVR,          pR# )r%   descriptionNr	   jsonr   r   descs   &  r   test_as_jsonAPITests.test_as_json	  s    n%** - r"   c                B    \        R 4      P                  pVR,          pR# )r   r   Nr   r   s   &  r   test_as_json_egg_infoAPITests.test_as_json_egg_info  s    m$)) - r"   c                P    V P                  4        \        R 4      P                  pR# r$   )make_uppercaser	   r   r   s   & r   test_as_json_odd_caseAPITests.test_as_json_odd_case  s    n%**r"   rw   N)&__name__
__module____qualname____firstlineno__version_patternr    r&   r+   r6   r?   rL   rR   r^   rd   rn   rs   rx   r}   r   r   r   r   staticmethodr   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes____classdictcell____classdict__s   @r   r   r      s      )O;
;
+H)

H(7-853
K0/0 
! 
!O089(S
1 @-*7 7r"   r   c                   ,   a  ] tR tRt o R tR tRtV tR# )
LegacyDotsi!  c                    RpV F%  pV P                  V4      ;_uu_ 4        RRR4       K'  	  R#   + '       g   i     K<  ; ir.   r1   r3   s   &  r   r6   "LegacyDots.test_name_normalization"  r8   r9   c                    RpV F%  pV P                  V4      ;_uu_ 4        RRR4       K'  	  R#   + '       g   i     K<  ; i)pkg.lotN)r   pkg_lotzpkg-lotzpkg..lotzPkg.Lotr1   r3   s   &  r   ,test_name_normalization_versionless_egg_info7LegacyDots.test_name_normalization_versionless_egg_info(  r8   r9   rw   N)r   r   r   r   r6   r   r   r   r   s   @r   r   r   !  s     HH Hr"   r   c                   2   a  ] tR tRt o R tR tR tRtV tR# )OffSysPathTestsi/  c                \    \         P                  ! \        V P                  4      .R 7      pR# ))rP   N)r   discoverstrr   )r   distss   & r   &test_find_distributions_specified_path6OffSysPathTests.test_find_distributions_specified_path0  s    %%C,>+?@r"   c                X    V P                   R ,          p\        P                  ! V4      pR# zdistinfo_pkg-1.0.0.dist-infoN)r   r   atr   dist_info_pathrb   s   &  r   test_distribution_at_pathlib,OffSysPathTests.test_distribution_at_pathlib4  s    )GG~.r"   c                j    V P                   R ,          p\        P                  ! \        V4      4      pR# r   )r   r   r   r   r   s   &  r   test_distribution_at_str(OffSysPathTests.test_distribution_at_str:  s$    )GGs>23r"   rw   N)	r   r   r   r   r   r   r   r   r   r   s   @r   r   r   /  s     N'' 'r"   r   c                   &   a  ] tR tRt o R tRtV tR# )InvalidateCachei@  c                0    \         P                  ! 4        R # rv   )	importlibinvalidate_cachesr*   s   &r   test_invalidate_cache%InvalidateCache.test_invalidate_cacheA  s    ##%r"   rw   N)r   r   r   r   r   r   r   r   s   @r   r   r   @  s     & &r"   r   )"rer   unittestr   r   
contextlibrE   r   importlib.metadatar   r   r   r   r   r	   r
   r   contextmanagerr   
EggInfoPkg EggInfoPkgPipInstalledNoToplevelEggInfoPkgPipInstalledNoModules'EggInfoPkgPipInstalledExternalDataFilesEggInfoPkgSourcesFallbackDistInfoPkgDistInfoPkgWithDotEggInfoFileTestCaser   DistInfoPkgWithDotLegacyr   DistInfoPkgOffPathr   r   rw   r"   r   <module>r     s    	      	 	 	  B7--,,44&&B7JH22H4E4E H'h1183D3D '"&h'' &r"   