+
    Bi                        ^ RI t ^ RIHtHt ^RIHt  ! R R]P                  ] P                  4      t ! R R]P                  ] P                  4      t	 ! R R	4      t
 ! R
 R]
]P                  ] P                  4      t ! R R]
]P                  ] P                  4      t ! R R]
]P                  ] P                  4      t ! R R]
]P                  ] P                  4      t]R8X  d   ] P$                  ! 4        R# R# )    N)import_module	resources)utilc                   &   a  ] tR t^t o R tRtV tR# )CommonBinaryTestsc                l    \         P                  ! V4      P                  V4      P                  4        R # )N)r   filesjoinpath
read_bytesselfpackagepaths   &&&>/usr/lib/python3.14/test/test_importlib/resources/test_read.pyexecuteCommonBinaryTests.execute	   s"     ))$/::<     N__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classdict__s   @r   r   r      s     = =r   r   c                   &   a  ] tR t^t o R tRtV tR# )CommonTextTestsc                p    \         P                  ! V4      P                  V4      P                  R R7       R# )utf-8encodingN)r   r	   r
   	read_textr   s   &&&r   r   CommonTextTests.execute   s'     ))$/9979Kr   r   Nr   r   s   @r   r   r      s     L Lr   r   c                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )	ReadTestsc                    \         P                  ! V P                  4      P                  R 4      P	                  4       pV P                  V\        \        ^4      4      4       R# )binary.fileN)r   r	   datar
   r   assertEqualbytesranger   results   & r   test_read_bytesReadTests.test_read_bytes   s@    +44]CNNPuQx1r   c                    \         P                  ! V P                  4      P                  R 4      P	                  RR7      pV P                  VR4       R# )z
utf-8.filer!   r"   zHello, UTF-8 world!
Nr   r	   r*   r
   r$   r+   r.   s   & r   test_read_text_default_encoding)ReadTests.test_read_text_default_encoding   s@    OODII&Xl#YY( 	
 	!89r   c                    \         P                  ! V P                  4      P                  R 4      P	                  RR7      pV P                  VR4       R# )utf-16.filezutf-16r"   zHello, UTF-16 world!
Nr3   r.   s   & r   test_read_text_given_encoding'ReadTests.test_read_text_given_encoding   s@    OODII&Xm$YY) 	
 	!9:r   c                    \         P                  ! V P                  4      R,          pV P                  \        VP
                  RR7       VP                  RRR7      pV P                  VR4       R# )z4
Raises UnicodeError without the 'errors' argument.
r7   r!   r"   ignore)r#   errorsz*H e l l o ,   U T F - 1 6   w o r l d ! 
 N)r   r	   r*   assertRaisesUnicodeErrorr$   r+   )r   targetr/   s   &  r   test_read_text_with_errors$ReadTests.test_read_text_with_errors'   sa     +m;,(8(87K!!78!D7	
r   r   N)
r   r   r   r   r0   r4   r8   r@   r   r   r   s   @r   r'   r'      s     2:;
 
r   r'   c                       ] tR t^6tRtR# )ReadDiskTestsr   N)r   r   r   r   r   r   r   r   rC   rC   6   s    r   rC   c                   ,   a  ] tR t^:t o R tR tRtV tR# )ReadZipTestsc           	         \        R 4      p\        P                  ! V4      P                  R4      P	                  4       pV P                  V\        \        ^^4      4      4       R# zdata01.subdirectoryr)   Nr   r   r	   r
   r   r+   r,   r-   r   	submoduler/   s   &  r   test_read_submodule_resource)ReadZipTests.test_read_submodule_resource;   sJ    !"78	+44]CNNPuQ{!34r   c           	         \         P                  ! R 4      P                  R4      P                  4       pV P	                  V\        \        ^^4      4      4       R# rG   r   r	   r
   r   r+   r,   r-   r.   s   & r   $test_read_submodule_resource_by_name1ReadZipTests.test_read_submodule_resource_by_name@   sE    OO12;;MJUUW 	 	uQ{!34r   r   N)r   r   r   r   rK   rO   r   r   r   s   @r   rE   rE   :   s     5
5 5r   rE   c                       ] tR t^GtRtRtR# )ReadNamespaceTestsnamespacedata01r   N)r   r   r   r   MODULEr   r   r   r   rR   rR   G   s    Fr   rR   c                   0   a  ] tR t^Kt o RtR tR tRtV tR# )ReadNamespaceZipTestsrS   c           	         \        R 4      p\        P                  ! V4      P                  R4      P	                  4       pV P                  V\        \        ^^4      4      4       R# znamespacedata01.subdirectoryr)   NrH   rI   s   &  r   rK   2ReadNamespaceZipTests.test_read_submodule_resourceN   sJ    !"@A	+44]CNNPuR}!56r   c           	         \         P                  ! R 4      P                  R4      P                  4       pV P	                  V\        \        ^^4      4      4       R# rX   rN   r.   s   & r   rO   :ReadNamespaceZipTests.test_read_submodule_resource_by_nameS   sB    OO:;Xm$Z\ 	
 	uR}!56r   r   N)	r   r   r   r   rT   rK   rO   r   r   r   s   @r   rV   rV   K   s     F7
7 7r   rV   __main__)unittest	importlibr   r    r   CommonTestsTestCaser   r   r'   	DiskSetuprC   ZipSetuprE   rR   rV   r   mainr   r   r   <module>re      s     . =(((*;*; =
Ld&&(9(9 L
!
 !
H	It~~x/@/@ 	
59dmmX->-> 
5DNNH4E4E 7It}}h6G6G 7" zMMO r   