mirror of https://github.com/python/cpython.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.
This commit is contained in:
parent
4c79a83e0c
commit
3684c8771e
|
@ -129,7 +129,9 @@ def testLoadTkFailure(self):
|
||||||
import os
|
import os
|
||||||
old_display = None
|
old_display = None
|
||||||
import sys
|
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?
|
return # no failure possible on windows?
|
||||||
if 'DISPLAY' in os.environ:
|
if 'DISPLAY' in os.environ:
|
||||||
old_display = os.environ['DISPLAY']
|
old_display = os.environ['DISPLAY']
|
||||||
|
|
Loading…
Reference in New Issue