
    6bh:                     l    d dl Z d dlZ G d dej                        Zedk(  r ej
                          yy)    Nc                   $    e Zd Zd Zd Zd Zd Zy)
FLUFLTestsc                    d}t        |j                  d      ddt        j                         | j	                  t
              5 }t        |j                  d      ddt        j                         d d d        | j                  t        j                        d       | j                  d|j                  j                         | j                  |j                  j                  d       | j                  |j                  j                  d	       | j                  |j                  j                  d
       y # 1 sw Y   xY w)Nz-from __future__ import barry_as_FLUFL
2 {0} 3<><BDFL test>exec!=<FLUFL test>,with Barry as BDFL, use '<>' instead of '!='2 != 3      )compileformat
__future__CO_FUTURE_BARRY_AS_BDFLassertRaisesSyntaxErrorassertRegexstr	exceptionassertIntextassertEqualfilenamelinenooffsetselfcodecms      9/opt/python-3.12.12/usr/lib/python3.12/test/test_flufl.pytest_barry_as_bdflzFLUFLTests.test_barry_as_bdfl   s    ?D!=&22	4{+rDKK%~v668 , 	R\\*G	Ih 1 12..?,,a0 	,,a0 ,+s   ,D55D>c                 F   d}t        |j                  d      dd       | j                  t              5 }t        |j                  d      dd       d d d        | j	                  t        j                        d       | j                  d|j                  j                         | j                  |j                  j                  d       | j                  |j                  j                  d	       | j                  |j                  j                  d
       y # 1 sw Y   xY w)Nz2 {0} 3r	   r   r   r   r
   zinvalid syntax2 <> 3   r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   s      r"   test_guido_as_bdflzFLUFLTests.test_guido_as_bdfl   s    D!=&9{+rDKK%~v> ,R\\*,<=h 1 12..?,,a0 	,,a0 ,+s   DD c                 ^   d}t        |j                  d      dd       | j                  t              5 }t        |j                  d      dd       d d d        | j	                  t        j                        d       | j                  d|j                  j                         | j                  |j                  j                  d       | j                  |j                  j                  d	       | j                  |j                  j                  t        |      d
z
         y # 1 sw Y   xY w)Nz-from __future__ import barry_as_FLUFL;2 {0} 3r   r   r   r	   r
   r   r   r&      r   r   r   r   r   r   r   r   r   r   r   r   r   lenr   s      r"   1test_barry_as_bdfl_look_ma_with_no_compiler_flagsz<FLUFLTests.test_barry_as_bdfl_look_ma_with_no_compiler_flags%   s     ?D!=&9{+rDKK%~v> ,R\\*,Z[h 1 12..?,,a0,,c$i!m< ,+   D##D,c                 ^   d}t        |j                  d      dd       | j                  t              5 }t        |j                  d      dd       d d d        | j	                  t        j                        d       | j                  d|j                  j                         | j                  |j                  j                  d       | j                  |j                  j                  d       | j                  |j                  j                  t        |      d	z
         y # 1 sw Y   xY w)
Nz.from .__future__ import barry_as_FLUFL;2 {0} 3r	   r
   r   r   r   r%   r&   r)   r*   r   s      r"   "test_barry_as_bdfl_relative_importz-FLUFLTests.test_barry_as_bdfl_relative_import2   s    ?D!>6:{+rDKK%}f= ,R\\*M:h 1 12..>,,a0,,c$i!m< ,+r-   N)__name__
__module____qualname__r#   r'   r,   r/        r"   r   r      s    1"1=	=r4   r   __main__)r   unittestTestCaser   r0   mainr3   r4   r"   <module>r9      s8     6="" 6=v zHMMO r4   