+
    Bi                        ^ RI HtHt ]P                  ! R4      t^ RIt^ RIt^ RIt^ RIt]P                  ! ]P                  P                  RJ R4       ! R R]P                  4      4       t]P                  ! ]]R7      w  tt]P                  ! ]P                  P                  RJ R4       ! R R	4      4       t]P                  ! ]]R7      w  tt]R
8X  d   ]P(                  ! 4        R# R# )    )abcutilzimportlib.machineryNzno reasonable builtin modulec                   Z   a  ] tR t^
t o RtR tR tR tR tR;t	t
RtR tR tR	 tR
tV tR# )LoaderTestsz(Test load_module() for built-in modules.c                H    R RRRRV P                   P                  /V n        R# )__name__errno__package__ 
__loader__N)	machineryBuiltinImporterverification)selfs   &>/usr/lib/python3.14/test/test_importlib/builtin/test_loader.pysetUpLoaderTests.setUp   s%    '-)4>>+I+IK    c                   V P                  V\        P                  4       V P                  P	                  4        F   w  r#V P                  \        W4      V4       K"  	  V P                  VP                  \        P                  4       R# )z;Verify that the module matches against what it should have.N)assertIsInstancetypes
ModuleTyper   itemsassertEqualgetattrassertInr   sysmodules)r   moduleattrvalues   &&  r   verifyLoaderTests.verify   s^    fe&6&67,,224KDWV2E: 5foos{{3r   c                    \         P                  ! 4       ;_uu_ 4        \         P                  ! R \        4       V P                  P
                  P                  V4      uuRRR4       #   + '       g   i     R# ; i)ignoreN)warningscatch_warningssimplefilterDeprecationWarningr   r   load_module)r   names   &&r   r*   LoaderTests.load_module   sI    $$&&!!(,>?>>11==dC '&&&s   A A))A:	c                    \         P                  ! \         P                  P                  4      ;_uu_ 4        V P	                  \         P                  P                  4      pV P                  V4       R R R 4       R #   + '       g   i     R # ; iN)r   uncacheBUILTINS	good_namer*   r"   )r   r   s   & r   test_moduleLoaderTests.test_module   sP    \\$--1122%%dmm&=&=>FKK 3222s   ;A<<B	Nc                r   \         P                  ! \         P                  P                  4      ;_uu_ 4        V P	                  \         P                  P                  4      pV P	                  \         P                  P                  4      pV P                  W4       R R R 4       R #   + '       g   i     R # ; ir.   )r   r/   r0   r1   r*   assertIs)r   module1module2s   &  r   test_module_reuseLoaderTests.test_module_reuse+   sj    \\$--1122&&t}}'>'>?G&&t}}'>'>?GMM'+ 3222s   A$B%%B6	c                    R pV P                  \        4      ;_uu_ 4       pV P                  V4       RRR4       V P                  XP                  P
                  V4       R#   + '       g   i     L8; i)	dssdsdfffN)assertRaisesImportErrorr*   r   	exceptionr+   )r   r+   cms   &  r   test_unloadableLoaderTests.test_unloadable2   sP    {++rT" ,**D1 ,+s   A""A2	c                   R p\         P                  ! V4      ;_uu_ 4        \        P                  ! V4      pV\        P
                  V&   RRR4       V P                  \        4      ;_uu_ 4       pV P                  V4       RRR4       V P                  XP                  P                  V4       R#   + '       g   i     Lo; i  + '       g   i     LK; i)builtin_reload_testN)r   r/   r   r   r   r   r<   r=   r*   r   r>   r+   )r   module_namer   r?   s   &   r   test_already_imported!LoaderTests.test_already_imported9   s     ,\\+&&%%k2F'-CKK$ ' {++r[) ,**K8 '& ,+s   *B20C2C	C	)r   )r   
__module____qualname____firstlineno____doc__r   r"   r*   r2   test_packagetest_lacking_parenttest_state_after_failurer8   r@   rE   __static_attributes____classdictcell____classdict__s   @r   r   r   
   sI      3K4D
  *.-L&  $,2
9 
9r   r   )r   c                      a  ] tR t^Kt o RtR tR tR t]P                  ! ]
P                  P                  RJ R4      R 4       tRtV tR# )	InspectLoaderTestsz4Tests for InspectLoader methods for BuiltinImporter.c                    V P                   P                  P                  \        P                  P
                  4      pV P                  V4       R # r.   )r   r   get_coder   r0   r1   assertIsNoner   results   & r   test_get_code InspectLoaderTests.test_get_codeP   s4    //889P9PQ&!r   c                    V P                   P                  P                  \        P                  P
                  4      pV P                  V4       R # r.   )r   r   
get_sourcer   r0   r1   rV   rW   s   & r   test_get_source"InspectLoaderTests.test_get_sourceU   s4    //::4==;R;RS&!r   c                    V P                   P                  P                  \        P                  P
                  4      pV P                  V4       R # r.   )r   r   
is_packager   r0   r1   assertFalserW   s   & r   test_is_package"InspectLoaderTests.test_is_packageZ   s4    //::4==;R;RS r   Nzall modules are built inc                   R F#  p\        V P                  P                  V4      pK%  	  V P                  \        4      ;_uu_ 4       pX! \
        P                  P                  4       RRR4       R#   + '       g   i     R# ; i)rU   N)rU   r\   r`   )r   r   r   r<   r=   r   r0   bad_name)r   	meth_namemethodr?   s   &   r   test_not_builtin#InspectLoaderTests.test_not_builtin_   sZ     BIT^^;;YGF B{++r4==))* ,+++s   !A22B	 )r   rG   rH   rI   rJ   rY   r]   rb   unittestskipIfr   r0   re   rh   rN   rO   rP   s   @r   rS   rS   K   sI      ?"
"
!
 __T]]++t35OP+ Q+r   rS   __main__)test.test_importlibr   r   import_importlibr   r   r   rk   r&   rl   r0   r1   r   	test_bothFrozen_LoaderTestsSource_LoaderTestsrS   Frozen_InspectLoaderTestsSource_InspectLoaderTestsr   mainrj   r   r   <module>rv      s    )!!"78	 
   	((D02PQ89#// 89 R89z 
^^K95 
((D02PQ+ + R+< 
^^&)< zMMO r   