PATH:
usr
/
lib64
/
python2.7
/
lib2to3
/
tests
� ��^c @ s3 d 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 m Z d d l m Z e j j e � Z e j j e j j e d � � Z e j j e d d � Z e j e � Z e j e d e j �Z d � Z d d d � Z d � Z d d d d � Z d � Z e j Z d S( s Support code for test_*.py filesi����N( t dedent( t pytreet refactor( t drivers ..s Grammar.txtt convertc C s t j t | � d t �S( Nt debug( R t parse_stringt reformatt True( t string( ( s- /usr/lib64/python2.7/lib2to3/tests/support.pyR s c C sA | d k r$ t j � j | � } n t j d d � j | � d S( Nt verbosityi ( t Nonet unittestt TestLoadert loadTestsFromModulet TextTestRunnert run( t test_modt tests( ( s- /usr/lib64/python2.7/lib2to3/tests/support.pyt run_all_tests s c C s t | � d S( Nu ( R ( R ( ( s- /usr/lib64/python2.7/lib2to3/tests/support.pyR s t lib2to3c C se | d k r0 g | D] } | d | ^ q } n t j | d � } | pL i } t j | | d t �S( s A convenience function for creating a RefactoringTool for tests. fixers is a list of fixers for the RefactoringTool to use. By default "lib2to3.fixes.*" is used. options is an optional dictionary of options to be passed to the RefactoringTool. s .fixes.fix_s .fixest explicitN( R R t get_fixers_from_packaget RefactoringToolR ( t fixer_pkgt fixerst optionst fix( ( s- /usr/lib64/python2.7/lib2to3/tests/support.pyt get_refactorer! s $c c s^ xW t j t � D]F \ } } } x4 | D], } | j d � r&