%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_parser.pyo |
ó Nêáac @ s d d l Z d d l Z 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 re ƒ 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( ( s, /usr/local/lib/python2.7/test/test_parser.pyt roundtrip s c C s | j t j | ƒ d S( N( R R t expr( R R ( ( s, /usr/local/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( ( s, /usr/local/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 ( ( s, /usr/local/lib/python2.7/test/test_parser.pyt check_suite) s c C s | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ d S( Ns def f(): yield 1s def f(): yields def f(): x += yields def f(): x = yield 1s def f(): x = y = yield 1s def f(): x = yields def f(): x = y = yields def f(): 1 + (yield)*2s def f(): (yield 1)*2s def f(): return; yield 1s def f(): yield 1; returns1 def f(): for x in range(30): yield x s) def f(): if (yield): yield x ( R ( R ( ( s, /usr/local/lib/python2.7/test/test_parser.pyt test_yield_statement, s c C s* | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j d! ƒ | j d"