Skip to content

Commit 0c290a2

Browse files
author
Jonathan Stewmon
committed
skip tkinter tests
docker-library/python#122
1 parent 15ef543 commit 0c290a2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/functional/test_libraries.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,16 @@ def test_gevent_monkey(pyi_builder):
113113

114114

115115
@xfail(is_darwin, reason='Issue #1895.')
116+
@importorskip('tkinter')
117+
@importorskip('Tkinter')
116118
def test_tkinter(pyi_builder):
117119
pyi_builder.test_script('pyi_lib_tkinter.py')
118120

119121

120122
@xfail(is_darwin, reason='Issue #1895.')
121123
@importorskip('FixTk')
124+
@importorskip('tkinter')
125+
@importorskip('Tkinter')
122126
def test_tkinter_FixTk(pyi_builder):
123127
# check if Tkinter includes FixTk
124128
# TODO: Python 3 contains module 'tkinter._fix' - does it need any special test or handling?
@@ -312,7 +316,7 @@ def test_zope_interface(pyi_builder):
312316

313317

314318
@xfail(is_darwin, reason='Issue #1895.')
315-
@importorskip('idlelib')
319+
@importorskip('idlelib.TreeWidget')
316320
def test_idlelib(pyi_builder):
317321
pyi_builder.test_source(
318322
"""
@@ -580,6 +584,8 @@ def test_pil_img_conversion(pyi_builder_spec):
580584
@xfail(is_darwin, reason='Issue #1895.')
581585
@importorskip('PIL')
582586
@importorskip('FixTk')
587+
@importorskip('tkinter')
588+
@importorskip('Tkinter')
583589
def test_pil_FixTk(pyi_builder):
584590
# hook-PIL is excluding FixTk, but is must still be included
585591
# since it is imported elsewhere. Also see issue #1584.
@@ -616,6 +622,8 @@ def test_pil_PyQt4(pyi_builder):
616622

617623

618624
@importorskip('PIL')
625+
@importorskip('tkinter')
626+
@importorskip('Tkinter')
619627
def test_pil_plugins(pyi_builder):
620628
pyi_builder.test_source(
621629
"""

0 commit comments

Comments
 (0)