summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-11-24 03:01:36 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-11-24 03:01:36 (GMT)
commit3684c8771e598af1737632a7a1c78d065bf77b94 (patch)
treebc39edca3dfa3a595c8369d9806541cd0b9d2711 /Lib/test/test_tcl.py
parent4c79a83e0c0cb6c68a63c116857a18307cafd9c9 (diff)
downloadcpython-3684c8771e598af1737632a7a1c78d065bf77b94.zip
cpython-3684c8771e598af1737632a7a1c78d065bf77b94.tar.gz
cpython-3684c8771e598af1737632a7a1c78d065bf77b94.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_tcl.py')
-rw-r--r--Lib/test/test_tcl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 28da2dd..2eeabc1 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']