관리-도구
편집 파일: test_hyperparser.pyc
� {fc @ s� d Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d d � � YZ d e j f d � � YZ e d k r� e j d d � n d S( s Unittest for idlelib.HyperParseri����N( t requires( t Tkt Text( t EditorWindow( t HyperParsert DummyEditwinc B s) e Z d � Z e j j Z e j j Z RS( c C s1 | | _ d | _ d | _ t | _ d | _ d S( Ni i2 i� i� ( i2 i� i� ( t textt indentwidtht tabwidtht Truet context_use_ps1t num_context_lines( t selfR ( ( s: /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt __init__ s ( t __name__t __module__R R t _build_char_in_string_funct im_funct is_char_in_string( ( ( s: /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyR s t HyperParserTestc B st e Z d Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� """This is a module docstring""" # this line is a comment x = "this is a string" y = 'this is also a string' l = [i for i in range(10)] m = [py*py for # comment py in l] x.__len__ z = ((r'asdf')+('a'))) [x for x in for = False c C sK t d � t � | _ | j j � t | j � | _ t | j � | _ d S( Nt gui( R R t roott withdrawR R R t editwin( t cls( ( s: /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt setUpClass# s c C s# | ` | ` | j j � | ` d S( N( R R R t destroy( R ( ( s: /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt tearDownClass+ s c C s | j j d | j � d S( Nt insert( R R t code( R ( ( s: /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt setUp1 s c C s# | j j d d � t | j _ d S( Ns 1.0t end( R t deleteR R R ( R ( ( s: /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt tearDown4 s c C s t | j | � S( s>