File: //usr/local/lib/python3.7/lib2to3/tests/__pycache__/test_parser.cpython-37.opt-1.pyc
B
��g0T � @ s� d Z ddlmZ ddlmZmZ ddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlmZ 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�ZG dd� de�ZG 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*d1d2� Z+e,d3k�r�e�-� dS )4aF 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 @ s 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�assertEqualZchildren�type�symsZ
print_stmt)�self�s�t� r �5/usr/local/lib/python3.7/lib2to3/tests/test_parser.py�
test_formfeed"