File: //usr/local/lib/python3.10/lib2to3/tests/__pycache__/test_parser.cpython-310.opt-1.pyc
o
�ig\ � @ s$ d Z ddlmZ ddlmZmZ ddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlmZ ddlmZ dd lmZ dd
lmZ G dd� dej�ZG d
d� dej�ZG dd� dej�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd � d e�Z$G d!d"� d"e�Z%G d#d$� d$e�Z&G d%d&� d&e�Z'G d'd(� d(e�Z(G d)d*� d*e�Z)G d+d,� d,ej�Z*G d-d.� d.e�Z+G d/d0� d0e�Z,G d1d2� d2e�Z-G d3d4� d4ej�Z.d5d6� Z/e0d7k�re�1� dS dS )8aF Test suite for 2to3's parser and grammar files.
This is the place to add tests for changes to 2to3's grammar, such as those
merging the grammars for Python 2 and 3. In addition to specific tests for
parts of the grammar we've changed, we also make sure we can parse the
test_grammar.py files from both Python 2 and Python 3.
� )�support)�driver�driver_no_print_statement� N)r )�tokenize� )�
ParseError)�python_symbolsc @ � e Zd Zdd� ZdS )�
TestDriverc C sJ d}t �|�}| �|jd jd jtj� | �|jd jd jtj� d S )Nzprint 1
print 2
r r )r �parse_string�assertEqual�children�type�symsZ
print_stmt)�self�s�t� r �6/usr/local/lib/python3.10/lib2to3/tests/test_parser.py�
test_formfeed# s
zTestDriver.test_formfeedN)�__name__�
__module__�__qualname__r r r r r r ! s r c @ s>