Skip to content

Commit 22647c1

Browse files
[3.14] gh-146531: Skip hanging wm iconbitmap test on macOS 26 Intel (GH-148032) (#153191)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 195b1de commit 22647c1

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
@@ -934,12 +936,27 @@ def test_wm_attribute(self):
934936

935937
def test_wm_iconbitmap(self):
936938
t = tkinter.Toplevel(self.root)
939+
patchlevel = get_tk_patchlevel(t)
940+
941+
if (
942+
t._windowingsystem == 'aqua'
943+
and sys.platform == 'darwin'
944+
and platform.machine() == 'x86_64'
945+
and platform.mac_ver()[0].startswith('26.')
946+
and (
947+
patchlevel[:3] <= (8, 6, 17)
948+
or (9, 0) <= patchlevel[:3] <= (9, 0, 3)
949+
)
950+
):
951+
# https://github.com/python/cpython/issues/146531
952+
# Tk bug 4a2070f0d3a99aa412bc582d386d575ca2f37323
953+
self.skipTest('wm iconbitmap hangs on macOS 26 Intel')
954+
937955
self.assertEqual(t.wm_iconbitmap(), '')
938956
t.wm_iconbitmap('hourglass')
939957
bug = False
940958
if t._windowingsystem == 'aqua':
941959
# Tk bug 13ac26b35dc55f7c37f70b39d59d7ef3e63017c8.
942-
patchlevel = get_tk_patchlevel(t)
943960
if patchlevel < (8, 6, 17) or (9, 0) <= patchlevel < (9, 0, 2):
944961
bug = True
945962
if not bug:

0 commit comments

Comments
 (0)