ó zfc@s™ddlZddlZddlZddlmZddlmZmZejdƒdej fd„ƒYZ e fZ e dkr•ej e ŒndS(iĸĸĸĸN(t test_support(tTcltTclErrortguit TkLoadTestcBs5eZejdejkdƒd„ƒZd„ZRS(tDISPLAYsNo $DISPLAY set.cCsJtƒ}|jt|jƒ|jƒ|jd|jƒƒ|jƒdS(Ns1x1+0+0(Rt assertRaisesRtwinfo_geometrytloadtkt assertEqualtdestroy(tselfttcl((s</usr/lib64/python2.7/lib-tk/test/test_tkinter/test_loadtk.pyt testLoadTk s   cCsĒd}tjjdƒrdStjƒt}dtjkri|d=tjdƒj ƒj ƒ}|ridSnt ƒ}|j t |jƒ|j t |jƒWdQXdS(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    !