7ec@sddlZddlZddlZddlmZddlmZmZejddej fdYZ e fZ e dkrej e ndS(iN(t test_support(tTcltTclErrortguit TkLoadTestcBs5eZejdejkddZdZRS(tDISPLAYsNo $DISPLAY set.cCsJt}|jt|j|j|jd|j|jdS(Ns1x1+0+0(Rt assertRaisesRtwinfo_geometrytloadtkt assertEqualtdestroy(tselfttcl((s</usr/lib64/python2.7/lib-tk/test/test_tkinter/test_loadtk.pyt testLoadTk s   cCsd}tjjdrdStjt}dtjkri|d=tjdj j }|ridSnt }|j t |j|j t |jWdQXdS(NtwintdarwintcygwinRs echo $DISPLAY(RRR(tNonetsystplatformt startswithRtEnvironmentVarGuardtostenvirontpopentreadtstripRRRRR(R t old_displaytenvtdisplayR ((s</usr/lib64/python2.7/lib-tk/test/test_tkinter/test_loadtk.pyttestLoadTkFailures (t__name__t __module__tunittesttskipIfRRR R(((s</usr/lib64/python2.7/lib-tk/test/test_tkinter/test_loadtk.pyR s$t__main__(RRR!ttestRtTkinterRRtrequirestTestCaseRt tests_guiRt run_unittest(((s</usr/lib64/python2.7/lib-tk/test/test_tkinter/test_loadtk.pyts    !