From: Brett Cannon Date: Wed, 24 Nov 2004 03:01:36 +0000 (+0000) Subject: Have testLoadTkFailure() skip on cygwin since Tcl/Tk on cygwin renders to the X-Git-Tag: v2.4~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3684c8771e598af1737632a7a1c78d065bf77b94;p=thirdparty%2FPython%2Fcpython.git Have testLoadTkFailure() skip on cygwin since Tcl/Tk on cygwin renders to the Windows GDI directly and thus does not need a DISPLAY environment variable. Thanks Jason Tishler. --- diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 28da2ddff319..2eeabc1bf851 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -129,7 +129,9 @@ class TclTest(unittest.TestCase): import os old_display = None import sys - if sys.platform.startswith('win') or sys.platform.startswith('darwin'): + if (sys.platform.startswith('win') or + sys.platform.startswith('darwin') or + sys.platform.startswith('cygwin')): return # no failure possible on windows? if 'DISPLAY' in os.environ: old_display = os.environ['DISPLAY']