Skip to content

Commit aed584a

Browse files
committed
Skip hanging wm iconbitmap test on macOS 26 Intel
1 parent c1a4112 commit aed584a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Lib/test/test_tkinter/test_misc.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import collections.abc
22
import functools
3+
import platform
4+
import sys
35
import unittest
46
import tkinter
57
from tkinter import TclError
@@ -578,12 +580,23 @@ def test_wm_attribute(self):
578580

579581
def test_wm_iconbitmap(self):
580582
t = tkinter.Toplevel(self.root)
583+
patchlevel = get_tk_patchlevel(t)
584+
if (
585+
t._windowingsystem == 'aqua'
586+
and sys.platform == 'darwin'
587+
and platform.machine() == 'x86_64'
588+
and platform.mac_ver()[0].startswith('26.')
589+
and (patchlevel <= (8, 6, 17) or (9, 0) <= patchlevel <= (9, 0, 3))
590+
):
591+
# https://github.com/python/cpython/issues/146531
592+
# Tk bug 4a2070f0d3a99aa412bc582d386d575ca2f37323
593+
self.skipTest('wm iconbitmap hangs on macOS 26 Intel')
594+
581595
self.assertEqual(t.wm_iconbitmap(), '')
582596
t.wm_iconbitmap('hourglass')
583597
bug = False
584598
if t._windowingsystem == 'aqua':
585599
# Tk bug 13ac26b35dc55f7c37f70b39d59d7ef3e63017c8.
586-
patchlevel = get_tk_patchlevel(t)
587600
if patchlevel < (8, 6, 17) or (9, 0) <= patchlevel < (9, 0, 2):
588601
bug = True
589602
if not bug:

0 commit comments

Comments
 (0)