From 3684c8771e598af1737632a7a1c78d065bf77b94 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 24 Nov 2004 03:01:36 +0000 Subject: [PATCH] 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. --- Lib/test/test_tcl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 28da2ddff31..2eeabc1bf85 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -129,7 +129,9 @@ def testLoadTkFailure(self): 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']