Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib2to3/tests/support.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s3dZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
ddlmZej
je�Zej
jej
jed��Zej
jedd�Zeje�Zejede	j�Zd	�Zddd
�Zd�Zdddd
�Zd�ZejZdS(s Support code for test_*.py filesi�N(tdedent(tpytreetrefactor(tdrivers..sGrammar.txttconvertcCstjt|�dt�S(Ntdebug(Rtparse_stringtreformattTrue(tstring((s+/sys/lib/python2.7/lib2to3/tests/support.pyRscCsA|dkr$tj�j|�}ntjdd�j|�dS(Nt	verbosityi(tNonetunittestt
TestLoadertloadTestsFromModuletTextTestRunnertrun(ttest_modttests((s+/sys/lib/python2.7/lib2to3/tests/support.pyt
run_all_testsscCst|�dS(Nu

(R(R	((s+/sys/lib/python2.7/lib2to3/tests/support.pyRstlib2to3cCse|dk	r0g|D]}|d|^q}ntj|d�}|pLi}tj||dt�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.fixestexplicitN(RRtget_fixers_from_packagetRefactoringToolR(t	fixer_pkgtfixerstoptionstfix((s+/sys/lib/python2.7/lib2to3/tests/support.pytget_refactorer!s
$ccs^xWtjt�D]F\}}}x4|D],}|jd�r&tjj||�Vq&q&WqWdS(Ns.py(tostwalktproj_dirtendswithtpathtjoin(tdirpathtdirnamest	filenamestfilename((s+/sys/lib/python2.7/lib2to3/tests/support.pytall_project_files0s
( t__doc__RtsysRtos.pathtrettextwrapRRRRt
lib2to3.pgen2RR!tdirnamet__file__ttest_dirtnormpathR"Rtgrammar_pathtload_grammartgrammartDriverRRRRRRR'tTestCase(((s+/sys/lib/python2.7/lib2to3/tests/support.pyt<module>s&!			

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].