|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/lib2to3/tests/__pycache__/ |
U
?��gLZ � @ 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*G d1d2� d2e�Z+G d3d4� d4ej�Z,d5d6� Z-e.d7k�re�/� 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 @ 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 �8/opt/cppython/lib/python3.8/lib2to3/tests/test_parser.py�
test_formfeed"