8000 gh-104497: Make tkinter test pass with tk 8.7 (#104789) · python/cpython@897e716 · GitHub
[go: up one dir, main page]

Skip to content

Commit 897e716

Browse files
gh-104497: Make tkinter test pass with tk 8.7 (#104789)
* gh-104497: Make tkinter test pass with tk 8.7 For test_widgets.MenuTest.test_configure_type, the options in the error message change to alphabetical order. * Update Lib/test/test_tkinter/test_widgets.py Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent a989b73 commit 897e716

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_tkinter/test_widgets.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1408,10 +1408,13 @@ def test_configure_title(self):
14081408

14091409
def test_configure_type(self):
14101410
widget = self.create()
1411+
opts = ('normal, tearoff, or menubar'
1412+
if widget.info_patchlevel() < (8, 7) else
1413+
'menubar, normal, or tearoff')
14111414
self.checkEnumParam(
14121415
widget, 'type',
14131416
'normal', 'tearoff', 'menubar',
1414-
errmsg='bad type "{}": must be normal, tearoff, or menubar',
1417+
errmsg='bad type "{}": must be ' + opts,
14151418
)
14161419

14171420
def test_entryconfigure(self):

0 commit comments

Comments
 (0)
0