File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_eof.cpython-312.opt-1.pyc
�
�h�ej � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlZ G d� dej � Z
ed k( r ej � yy)
z/test script for a few new invalid token catches� N)�support)� os_helper)�
script_helper)�warnings_helperc � � e Zd Zd� Zd� Zd� Z ej e�� d� � Z d� Z
ej e
j d� d� � Zy )
�EOFTestCasec �� � d}dD ] } t |� d�� t j � y # t $ rA}| j t |� |� | j |j d� Y d }~�id }~ww xY w)NzCunterminated string literal (detected at line 1) (<string>, line 1))�'�"zthis is a test � ��evalr �
TestFailed�SyntaxError�assertEqual�str�offset)�self�expect�quote�msgs �4/opt/alt/python312/lib64/python3.12/test/test_eof.py�test_EOF_single_quotez!EOFTestCase.test_EOF_single_quote s| � �V�� � )�E�
)��%�� !� � � �(�(�(� )�� �
0�� � ��S��6�2�� � ����Q�/�/��
0�s �)� A3�7A.�.A3c �� � d} t d� t j �# t $ rA}| j t |� |� | j |j d� Y d }~y d }~ww xY w)NzQunterminated triple-quoted string literal (detected at line 1) (<string>, line 1)z'''this is a testr r
�r r r s r � test_EOFSzEOFTestCase.test_EOFS s` � �e�� %��(�)�
�$�$�$�� � ,����S��X�v�.����S�Z�Z��+�+�� ,�s � � A)�7A$�$A)c �� � d}t j � 5 }t j |dd� }t j |� \ }}}d d d � | j d� y # 1 sw Y �xY w)Nz(<string>, line 1)�fooz'''this is
a
tests>