| Server IP : 68.178.172.28 / Your IP : 216.73.216.152 Web Server : Apache System : Linux 28.172.178.68.host.secureserver.net 4.18.0-553.94.1.el8_10.x86_64 #1 SMP Mon Jan 19 05:45:41 EST 2026 x86_64 User : kiskarnal ( 1003) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/python38/lib/python3.8/lib2to3/tests/__pycache__/ |
Upload File : |
U
�i�_8V � @ 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� d2ej�Z+d3d4� Z,e-d5k�re�.� dS )6aF 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/python38/lib/python3.8/lib2to3/tests/test_parser.py�
test_formfeed"