Skip to content

Commit

Permalink
gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156
Browse files Browse the repository at this point in the history
)
  • Loading branch information
culler authored Nov 14, 2024
1 parent 1e3497e commit 47cbf03
Show file tree
Hide file tree
Showing 11 changed files with 338 additions and 195 deletions.
8 changes: 5 additions & 3 deletions Lib/test/test_tkinter/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ def test_tk_busy(self):
f.tk_busy_forget()
self.assertFalse(f.tk_busy_status())
self.assertFalse(f.tk_busy_current())
with self.assertRaisesRegex(TclError, "can't find busy window"):
errmsg = r"can(no|')t find busy window.*"
with self.assertRaisesRegex(TclError, errmsg):
f.tk_busy_configure()
with self.assertRaisesRegex(TclError, "can't find busy window"):
with self.assertRaisesRegex(TclError, errmsg):
f.tk_busy_forget()

@requires_tk(8, 6, 6)
Expand All @@ -87,7 +88,8 @@ def test_tk_busy_with_cursor(self):
self.assertEqual(f.tk_busy_configure('cursor')[4], 'heart')

f.tk_busy_forget()
with self.assertRaisesRegex(TclError, "can't find busy window"):
errmsg = r"can(no|')t find busy window.*"
with self.assertRaisesRegex(TclError, errmsg):
f.tk_busy_cget('cursor')

def test_tk_setPalette(self):
Expand Down
Loading

0 comments on commit 47cbf03

Please sign in to comment.