ó ükWc@s”ddlZddlZddlZddlZddlZddlZddlmZdejfd„ƒYZ d„Z e dkre ƒndS(i˙˙˙˙N(t test_supporttPyCompileTestscBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs´tjƒ|_tjj|jdƒ|_|jd|_tjjtj ƒƒd|_ tjj|jƒd}|rˆtj |ƒnt |jdƒ}|j dƒWdQXdS(Ns_test.pytcitwsx = 123 (ttempfiletmkdtempt directorytostpathtjoint source_pathtpyc_patht splitdrivetgetcwdt cwd_drivetchdirtopentwrite(tselftdrivetfile((s*/usr/lib/python2.7/test/test_py_compile.pytsetUp scCs0tj|jƒ|jr,tj|jƒndS(N(tshutiltrmtreeRRRR(R((s*/usr/lib/python2.7/test/test_py_compile.pyttearDowns cCs6tj|j|jƒ|jtjj|jƒƒdS(N(t py_compiletcompileR R t assertTrueRRtexists(R((s*/usr/lib/python2.7/test/test_py_compile.pyttest_absolute_path!scCswtjƒ}tj|jƒtjtjj|jƒtjj|j ƒƒtj|ƒ|j tjj |j ƒƒdS(N( RR RRRRRtbasenameR R RR(Rtcwd((s*/usr/lib/python2.7/test/test_py_compile.pyttest_cwd%s   cCsNtjtjj|jƒtjj|jƒƒ|jtjj|jƒƒdS(N( RRRRtrelpathR R RR(R((s*/usr/lib/python2.7/test/test_py_compile.pyttest_relative_path-s(t__name__t __module__RRRR R"(((s*/usr/lib/python2.7/test/test_py_compile.pyR s     cCstjtƒdS(N(Rt run_unittestR(((s*/usr/lib/python2.7/test/test_py_compile.pyt test_main2st__main__( timpRRRRtunittestttestRtTestCaseRR&R#(((s*/usr/lib/python2.7/test/test_py_compile.pyts      (