shell bypass 403
o
`b � @ sb d Z ddlZddlmZ ddlmZ ddlmZ ddlZG dd� dej�Z e
dkr/e�� dS dS ) z/test script for a few new invalid token catches� N)�support)� os_helper)�
script_helperc @ sL e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Ze� e
j d�dd
� �ZdS )�EOFTestCasec C sj d}dD ].}zt |� d�� W tj� ty2 } z| �t|�|� | �|jd� W Y d }~qd }~ww d S )NzCunterminated string literal (detected at line 1) (<string>, line 1))�'�"zthis is a test � ��eval�SyntaxError�assertEqual�str�offsetr �
TestFailed)�self�expect�quote�msg� r �6/usr/local/python-3.10/lib/python3.10/test/test_eof.py�test_EOF_single_quote
s ����z!EOFTestCase.test_EOF_single_quotec
C sZ d}zt d� W tj� ty, } z| �t|�|� | �|jd� W Y d }~d S d }~ww )NzQunterminated triple-quoted string literal (detected at line 1) (<string>, line 1)z'''this is a testr r �r r r r r r � test_EOFS s
���zEOFTestCase.test_EOFSc C sZ d}t �� �}t�|dd�}t�|�\}}}W d � n1 s w Y | �d|� d S )Nz(<string>, line 1)�fooz'''this is
a
tests>