+
    Bi	                          R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	t	 ! R R]	P                  4      t]R	8X  d   ]	P                  ! 4        R# R# )
z/test script for a few new invalid token catchesN)BOM_UTF8)force_not_colorized)	os_helper)script_helper)warnings_helperc                      a  ] tR t^t o R tR t]R 4       t]P                  ! ]
R7      R 4       tR t]P                  ! ]P                   '       * R4      ]R 4       4       tR	tV tR
# )EOFTestCasec                @   R pR F  pV P                  \        4      ;_uu_ 4       p\        V R24       RRR4       V P                  \	        XP
                  4      V4       V P                  VP
                  P                  ^4       K  	  R#   + '       g   i     La; i)zCunterminated string literal (detected at line 1) (<string>, line 1)zthis is a test                N)'")assertRaisesSyntaxErrorevalassertEqualstr	exceptionoffset)selfexpectquotecms   &   $/usr/lib/python3.14/test/test_eof.pytest_EOF_single_quote!EOFTestCase.test_EOF_single_quote   s{    V E"";//2% !   0 S.7R\\00!4 !//s   BBc                $   R pV P                  \        4      ;_uu_ 4       p\        R4       RRR4       V P                  \	        XP
                  4      V4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        RP                  4       4       RRR4       V P                  \	        VP
                  4      V4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        \        RP                  4       ,           4       RRR4       V P                  \	        VP
                  4      V4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        RP                  R4      4       RRR4       V P                  \	        VP
                  4      R4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL]; i  + '       g   i     L; i)zQunterminated triple-quoted string literal (detected at line 3) (<string>, line 1)   ä = '''thîs is 
a 
testNu   ä = '''thîs is *   # coding: latin1
ä = '''thîs is 
a 
testlatin1zQunterminated triple-quoted string literal (detected at line 4) (<string>, line 2))
r   r   r   r   r   r   textr   encoder   r   r   r   s   &  r   	test_EOFSEOFTestCase.test_EOFS   s   e{++r23 ,R\\*F3**,?@,,a0{++r299;< ,R\\*F3**,?@,,a0{++r=DDFFG ,R\\*F3**,?@,,a0{++rDKKHUV ,R\\*,  	A**,?@,,a0- ,++ ,++ ,++ ,+s/   KK2%K+-K?K	K(	+K<	?L	c           	     *   R p\         P                  ! 4       ;_uu_ 4       p\        P                  ! VRR4      p\        P                  ! RRV4      w  rEpVP                  4       P                  4       pV P                  VRR . R	O4       \        P                  ! VRRP                  4       4      p\        P                  ! RRV4      w  rEpVP                  4       P                  4       pV P                  VRR . R	O4       \        P                  ! VR\        RP                  4       ,           4      p\        P                  ! RRV4      w  rEpVP                  4       P                  4       pV P                  VRR . R	O4       \        P                  ! VRRP                  R4      4      p\        P                  ! RRV4      w  rEpVP                  4       P                  4       pV P                  VRR . R
O4       RRR4       R#   + '       g   i     R# ; i)z(<string>, line 1)foor   -Xutf8Nr   r   )       ä = '''thîs is 	        ^zKSyntaxError: unterminated triple-quoted string literal (detected at line 3))r(   r)   zKSyntaxError: unterminated triple-quoted string literal (detected at line 4)
r   temp_dirr   make_scriptassert_python_failuredecode
splitlinesr   r   r   )r   r   r+   	file_namercouterrs   &      r   test_EOFS_with_fileEOFTestCase.test_EOFS_with_file/   s   &!!X%11(E2SUI(>>tVYWLBS**,))+CSX (_ `
 &11(E2S2Z2Z2\^I(>>tVYWLBS**,))+CSX (_ `
 &11(E2:=^=e=e=g2giI(>>tVYWLBS**,))+CSX (_ `
 &11(E2e2l2lmu2vxI(>>tVYWLBS**,))+CSX (_ `A "!!!s   GHH	)categoryc                    R pV P                  \        4      ;_uu_ 4       p\        RRR4       RRR4       V P                  \	        XP
                  4      V4       R#   + '       g   i     L7; i)/unexpected EOF while parsing (<string>, line 1)z"\Xhh" \z<string>execN)r   r   compiler   r   r   r    s   &  r   test_eof_with_line_continuation+EOFTestCase.test_eof_with_line_continuationW   sM    B{++rL*f5 ,R\\*F3 ,+s   AA-	c                   RpV P                  \        4      ;_uu_ 4       p\        R4       RRR4       V P                  \	        XP
                  4      V4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        RP                  4       4       RRR4       V P                  \	        VP
                  4      V4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        RP                  R4      4       RRR4       V P                  \	        VP
                  4      R4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        \        RP                  4       ,           4       RRR4       V P                  \	        VP
                  4      V4       V P                  VP
                  P                  R4       V P                  VP
                  P                  ^4       V P                  \        4      ;_uu_ 4       p\        R4       RRR4       V P                  \	        VP
                  4      V4       R#   + '       g   i     EL; i  + '       g   i     ELZ; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i)	z=A continuation at the end of input must be an error; bpo2180.r8   u   ä = 5\Nu   ä = 5\
u   # coding:latin1
ä = 5\r   z/unexpected EOF while parsing (<string>, line 2)\)
r   r   r9   r   r   r   r   r   r   r   r    s   &  r   test_line_continuation_EOF&EOFTestCase.test_line_continuation_EOF^   sS   B{++r ,R\\*F3**L9,,a0{++r""$% ,R\\*F3**L9,,a0{++r,33H=> ,R\\*J	L**L9,,a0{++rJ--//0 ,R\\*F3**L9,,a0{++rJ ,R\\*F37 ,++ ,++ ,++ ,++ ,+s;   LL-2M#%MM)L*	-L>	M	M&	)M9	zsys.executable requiredc           	        \         P                  ! 4       ;_uu_ 4       p\        P                  ! VRR4      p\        P                  ! RRV4      w  r4pVP                  4       P                  4       pV P                  VRR RR.4       V P                  VR,          RR RV4       \        P                  ! VRR	4      p\        P                  ! RRV4      w  r4pVP                  4       P                  4       pV P                  VRR . RO4       V P                  VR,          RR RV4       \        P                  ! VRR
P                  R4      4      p\        P                  ! RRV4      w  r4pVP                  4       P                  4       pV P                  VRR . RO4       V P                  VR,          RR RV4       \        P                  ! VR\        RP                  4       ,           4      p\        P                  ! RRV4      w  r4pVP                  4       P                  4       pV P                  VRR . RO4       V P                  VR,          RR RV4       RRR4       R#   + '       g   i     R# ; i)z9Ensure tok_nextc() does not add too many ending newlines.r$   r>   r%   r&   Nz    \)SyntaxError: unexpected EOF while parsingz, line 1u   ä = 6\u   # coding:latin1
ä = 7\r   z, line 2u   ä = 8\r'   i)u       ä = 6\          ^rB   )u       ä = 7\rD   rB   )u       ä = 8\rD   rB   r*   )r   r+   r0   r1   r2   r3   s   &     r   ,test_line_continuation_EOF_from_file_bpo21808EOFTestCase.test_line_continuation_EOF_from_file_bpo2180~   s3    !!X%11(E4HI(>>tVYWLBS**,))+CSX;(= > SWRS\:s;%11(E:NI(>>tVYWLBS**,))+CSX (= > SWRS\:s;%11(E3==CVH=MOI )>>tVYWLBS**,))+CSX (= > SWRS\:s;%11(E2:Z=N=N=P2PRI(>>tVYWLBS**,))+CSX (= > SWRS\:s;K "!!!s   H=I%%I6	 N)__name__
__module____qualname____firstlineno__r   r!   r   r4   r   ignore_warningsSyntaxWarningr;   r?   unittestskipIfsys
executablerF   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s{     514 %` %`N $$m<4 =44@ __')BC'<  D'<    r   __main__)__doc__rQ   codecsr   test.supportr   r   r   r   rO   TestCaser   rI   mainrH   rV   r   <module>r]      sJ    5 
  , " & ( \<(## \<~ zMMO rV   