Current File : //opt/imh-python/lib/python2.7/test/test_parser.pyc |
�
��Wc @ s� d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d e j f d � � YZ
d e j f d � � YZ d e j f d � � YZ d
e j f d � � YZ
d e j f d
� � YZ d � Z e d k r� e � n d S( i����N( t test_support( t assert_python_failuret RoundtripLegalSyntaxTestCasec B s� e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z d
� Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C sx | | � } | j � } y t j | � } Wn- t j k
rZ } | j d | | f � n X| j | | j � d � d S( Ns could not roundtrip %r: %ss! could not re-generate syntax tree( t totuplet parsert sequence2stt ParserErrort failt assertEqual( t selft ft st st1t tt st2t why( ( si /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_parser.pyt roundtrip s c C s | j t j | � d S( N( R R t expr( R R ( ( si /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_parser.pyt
check_expr s c B sA e j d � } | j � } i } | | U| j | d e � d S( Ns/ from __future__ import unicode_literals; x = ''t x( R t suitet compilet assertIsInstancet unicode( R R t codet scope( ( si /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_parser.pyt test_flags_passed s
c C s | j t j | � d S( N( R R R ( R R ( ( si /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_parser.pyt check_suite'