8000 gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124… · python/cpython@47cbf03 · GitHub
[go: up one dir, main page]

Skip to content

Commit 47cbf03

Browse files
authored
gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156)
1 parent 1e3497e commit 47cbf03

File tree

11 files changed

+338
-195
lines changed

11 files changed

+338
-195
lines changed

Lib/test/test_tkinter/test_misc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ def test_tk_busy(self):
6666
f.tk_busy_forget()
6767
self.assertFalse(f.tk_busy_status())
6868
self.assertFalse(f.tk_busy_current())
69-
with self.assertRaisesRegex(TclError, "can't find busy window"):
69+
errmsg = r"can(no|')t find busy window.*"
70+
with self.assertRaisesRegex(TclError, errmsg):
7071
f.tk_busy_configure()
71-
with self.assertRaisesRegex(TclError, "can't find busy window"):
72+
with self.assertRaisesRegex(TclError, errmsg):
7273
f.tk_busy_forget()
7374

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

8990
f.tk_busy_forget()
90-
with self.assertRaisesRegex(TclError, "can't find busy window"):
91+
errmsg = r"can(no|')t find busy window.*"
92+
with self.assertRaisesRegex(TclError, errmsg):
9193
f.tk_busy_cget('cursor')
9294

9395
def test_tk_setPalette(self):

0 commit comments

Comments
 (0)
0