+
    Bi~                        ^ RI t ^ RIt^ RIt^ RIt^ RIHt ^ RIHtHt ^ RI	H
t
 . ROt]'       g   ]P                  . RO4       ] P                  P                  '       g-   ]P                  ! 4       t ] F  t]P%                  ]4       K  	   ! R R]P*                  4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R]4      t]R8X  d   ]P8                  ! 4        R# R#   ] d    ]P(                  ! R4      hi ; i)    N	normalize)is_apple	os_helper)supportz>only NT+ and systems with Unicode-friendly filesystem encodingc                   :  a  ] tR t^=t o ]! ]4      tRtR tR t	]
R3R ltR t]P                  R8X  d   ]]
3tM]tR t]P&                  ! ]R	4      ]P&                  ! ]P,                  R
4      R 4       4       t]P&                  ! ]R	4      R 4       tR tR tRtV tR# )UnicodeFileTestsNc                    \         P                  ! \        P                  4       V P                  \        P                  \        P                  4       \        4       pV P                   F  p\         P                  P                  \        P                  V P                  V4      4      p\        VR 4      ;_uu_ 4       pVP                  VR,           P                  R4      4       RRR4       \         P                  ! V4       VP!                  V4       K  	  Wn        R#   \         d     EL	i ; i  + '       g   i     LU; iwb
utf-8N)osmkdirr   TESTFNFileExistsError
addCleanuprmtreesetfilespathjoinnormopenwriteencodestatadd)selfr   namefs   &   7/usr/lib/python3.14/test/test_unicode_file_functions.pysetUpUnicodeFileTests.setUpA   s    	HHY%%& 		(()*:*:;JJD77<<	 0 0$))D/BDdD!!Qd**734 "GGDMIIdO  
  		 "!s   $D! >(D3!D0/D03Ec                V    V P                   '       d   \        V P                   V4      # V# N)normal_formr   )r   ss   &&r"   r   UnicodeFileTests.normQ   s&    T--q11    Tc           
        V P                  V4      ;_uu_ 4       pV! V4       R R R 4       XP                  P                  pV'       d+   V P                  WbRVP                  : RV: RV: 24       R # R #   + '       g   i     LZ; i)Nz
Function '(z-) failed with bad filename in the exception: )assertRaises	exceptionfilenameassertEqual__name__)r   fnr/   expected_exceptioncheck_filenamecexc_filenames   &&&&&  r"   _apply_failureUnicodeFileTests._apply_failureV   sh     122axL 3{{++\8 kk8\6C D  32s   	A55B	c                   V P                    F  pR V,           pV P                  \        V4       V P                  \        P                  V4       V P                  \        P
                  V4       V P                  \        P                  V4       V P                  \        P                  V4       V P                  \        P                  V4       K  	  R# )not_N)	r   r7   r   r   r   chdirrmdirremovelistdirr   r    s   & r"   test_failuresUnicodeFileTests.test_failuresa   s    JJDD=Dd+.$/$/		40

D1 r*   win32c                2   V P                    F  p\        VR 4      pVP                  VR,           P                  R4      4       VP	                  4        \
        P                  ! V4       V P                  \
        P                  WP                  4       K  	  R# r   )
r   r   r   r   closer   r   r7   r>   _listdir_failure)r   r    r!   s   &  r"   	test_openUnicodeFileTests.test_openr   se    JJDT4 AGGT$Y&&w/0GGIGGDM

D2G2GH r*   z"irrelevant test on Apple platformsz/test fails on WASI when host platform is macOS.c                4  a \        V P                  4      p\        4       p\        . RO4       F  oV\        V3R lV 4       4      ,          pK!  	  W!,          pV F  pV P                  \        V4       V P                  \        P
                  V4       V P                  \        P                  V4       V P                  \        P                  V4       V P                  \        P                  V4       V P                  \        P                  V4       K  	  R# )NFCc              3   <   <"   T F  p\        SV4      x  K  	  R # 5ir&   r   ).0filenfs   & r"   	<genexpr>2UnicodeFileTests.test_normalize.<locals>.<genexpr>   s     @%$)B--%s   N)rI   NFDNFKCNFKD)
r   r   r7   r   r   r   r;   r<   r=   r>   )r   r   othersr    rM   s   &   @r"   test_normalizeUnicodeFileTests.test_normalize~   s     DJJ45Bc@%@@@F 6Dd+.$/$/		40

D1 r*   c                J   \        V P                  4      p\        P                  ! 4       ;_uu_ 4        \        P                  ! R \
        4       \        P                  ! \        P                  P                  \        P                  ! 4       4      4      pRRR4       \        P                  ! \        P                  4      p\        R V 4       4      pV P                  WV: RV: 24       V P                  \        X4      \        V4      4       R#   + '       g   i     L; i)ignoreNc              3   ~   "   T F3  p\         P                  P                  \        P                  V4      x  K5  	  R # 5ir&   )r   r   r   r   r   )rK   r!   s   & r"   rN   0UnicodeFileTests.test_listdir.<locals>.<genexpr>   s(     @R"'',,y//33Rs   ;=z != )r   r   warningscatch_warningssimplefilterDeprecationWarningr   r>   r   r   r   sysgetfilesystemencodingr0   len)r   sf0f1f2sf2s   &    r"   test_listdirUnicodeFileTests.test_listdir   s    $**o$$&&!!(,>?I,,335579 :B ' ZZ	(()@R@@c#:;R#b'* '&s   A"DD"	c                    V P                    F1  p\        P                  ! VR 4       \        P                  ! R V4       K3  	  R# )tmpN)r   r   renamer?   s   & r"   test_renameUnicodeFileTests.test_rename   s,    JJDIIdE"IIeT" r*   c           	         \         P                  P                  \        P                  R 4      pRp\        P
                  ! V4      ;_uu_ 4        \        VR4      ;_uu_ 4       pVP                  VR,           P                  R4      4       RRR4       \         P                  ! V\         P                  4       \         P                  ! V4       RRR4       R#   + '       g   i     LU; i  + '       g   i     R# ; i)u   Grüß-曨曩曫u   ß-曨曩曫r   r   r   N)r   r   r   r   r   temp_cwdr   r   r   accessR_OKr=   )r   dirnamer/   r!   s   &   r"   test_directoryUnicodeFileTests.test_directory   s    '',,y//>@,((h%%D009: &IIhrww'IIh	 )(%% )((s%   C,$(C	AC,C)$C,,C=	)r   )r1   
__module____qualname____firstlineno__r   	filenamesr   r'   r#   r   FileNotFoundErrorr7   r@   r^   platformNotADirectoryErrorrE   rF   unittestskipIfr   r   is_wasirT   re   rj   rq   __static_attributes____classdictcell__)__classdict__s   @r"   r	   r	   =   s     	NEK  +<&*	D	2 ||w-/@@-I __XCD__92	 E
2" __XCD	+ E	+#
   r*   r	   c                       ] tR t^tRtRtR# )UnicodeNFCFileTestsrI    Nr1   rs   rt   ru   r'   r}   r   r*   r"   r   r          Kr*   r   c                       ] tR t^tRtRtR# )UnicodeNFDFileTestsrP   r   Nr   r   r*   r"   r   r      r   r*   r   c                       ] tR t^tRtRtR# )UnicodeNFKCFileTestsrQ   r   Nr   r   r*   r"   r   r          Kr*   r   c                       ] tR t^tRtRtR# )UnicodeNFKDFileTestsrR   r   Nr   r   r*   r"   r   r      r   r*   r   __main__)
1_abc2_asciiu   3_Grüß-Gottu   4_Γειά-σαςu   5_Здравствуйтеu   6_にぽんu   7_השקצץסu   8_曨曩曫u   9_曨שんдΓßu	   10_΅´)	u	   11_΅ϓϔu   12_΅ϓϔu   13_ ̈́ΎΫu   14_ẛ῁῍῎῏῝῞῟῭u   15_΅´𣏕u   16_   Au   17_   Au   18_   Az19_   A)r   r^   rz   rZ   unicodedatar   test.supportr   r   testr   rv   extendr   supports_unicode_filenamesr_   
fsencodingr    r   UnicodeEncodeErrorSkipTestTestCaser	   r   r   r   r   r1   mainr   r*   r"   <module>r      s   
 
   ! , 	(   $ 
ww)))**,JHDKK
# p x(( p f* * + +  zMMO Q  H !G H 	HHs   2C) )D