FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-146531: Skip hanging `wm iconbitmap` test on macOS 26 Intel (GH-148032) by miss-islington · Pull Request #153191 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
19 changes: 18 additions & 1 deletion Lib/test/test_tkinter/test_misc.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import functools
import platform
import sys
import unittest
import weakref
import tkinter
Expand Down Expand Up @@ -934,12 +936,27 @@ def test_wm_attribute(self):

def test_wm_iconbitmap(self):
t = tkinter.Toplevel(self.root)
patchlevel = get_tk_patchlevel(t)

if (
t._windowingsystem == 'aqua'
and sys.platform == 'darwin'
and platform.machine() == 'x86_64'
and platform.mac_ver()[0].startswith('26.')
and (
patchlevel[:3] <= (8, 6, 17)
or (9, 0) <= patchlevel[:3] <= (9, 0, 3)
)
):
# https://github.com/python/cpython/issues/146531
# Tk bug 4a2070f0d3a99aa412bc582d386d575ca2f37323
self.skipTest('wm iconbitmap hangs on macOS 26 Intel')

self.assertEqual(t.wm_iconbitmap(), '')
t.wm_iconbitmap('hourglass')
bug = False
if t._windowingsystem == 'aqua':
# Tk bug 13ac26b35dc55f7c37f70b39d59d7ef3e63017c8.
patchlevel = get_tk_patchlevel(t)
if patchlevel < (8, 6, 17) or (9, 0) <= patchlevel < (9, 0, 2):
bug = True
if not bug:
Expand Down
Loading

Back | FazBrowse Home | New Git URL