tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Y\¬Qc@s3dZddlZddlZddlZddlZddlZddlmZddlm    Z    m
Z
ddl m 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..s Grammar.txttconvertcCstjt|ƒdtƒS(Ntdebug(Rt parse_stringtreformattTrue(tstring((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/support.pyRscCsA|dkr$tjƒj|ƒ}ntjddƒj|ƒdS(Nt    verbosityi(tNonetunittestt
TestLoadertloadTestsFromModuletTextTestRunnertrun(ttest_modttests((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/support.pyt run_all_testss cCst|ƒdS(Nu
 
(R(R    ((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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(R Rtget_fixers_from_packagetRefactoringToolR(t    fixer_pkgtfixerstoptionstfix((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/support.pytall_project_files0s ( t__doc__R tsysRtos.pathtrettextwrapRRRRt lib2to3.pgen2RR!tdirnamet__file__ttest_dirtnormpathR"Rt grammar_patht load_grammartgrammartDriverRRR RRRR'tTestCase(((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/support.pyt<module>s&     !