Skip to content

Commit b06069b

Browse files
[3.13] gh-146531: Skip hanging wm iconbitmap test on macOS 26 Intel (GH-148032) (#153189)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 4a25974 commit b06069b

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

Lib/test/test_tkinter/test_misc.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import functools
2+
import platform
3+
import sys
24
import unittest
35
import weakref
46
import tkinter
@@ -920,12 +922,27 @@ def test_wm_attribute(self):
920922

921923
def test_wm_iconbitmap(self):
922924
t = tkinter.Toplevel(self.root)
925+
patchlevel = get_tk_patchlevel(t)
926+
927+
if (
928+
t._windowingsystem == 'aqua'
929+
and sys.platform == 'darwin'
930+
and platform.machine() == 'x86_64'
931+
and platform.mac_ver()[0].startswith('26.')
932+
and (
933+
patchlevel[:3] <= (8, 6, 17)
934+
or (9, 0) <= patchlevel[:3] <= (9, 0, 3)
935+
)
936+
):
937+
# https://github.com/python/cpython/issues/146531
938+
# Tk bug 4a2070f0d3a99aa412bc582d386d575ca2f37323
939+
self.skipTest('wm iconbitmap hangs on macOS 26 Intel')
940+
923941
self.assertEqual(t.wm_iconbitmap(), '')
924942
t.wm_iconbitmap('hourglass')
925943
bug = False
926944
if t._windowingsystem == 'aqua':
927945
# Tk bug 13ac26b35dc55f7c37f70b39d59d7ef3e63017c8.
928-
patchlevel = get_tk_patchlevel(t)
929946
if patchlevel < (8, 6, 17) or (9, 0) <= patchlevel < (9, 0, 2):
930947
bug = True
931948
if not bug:

0 commit comments

Comments
 (0)