mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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>
This commit is contained in:
parent
a989b73e8e
commit
897e716d03
1 changed files with 4 additions and 1 deletions
|
@ -1408,10 +1408,13 @@ class MenuTest(AbstractWidgetTest, unittest.TestCase):
|
|||
|
||||
def test_configure_type(self):
|
||||
widget = self.create()
|
||||
opts = ('normal, tearoff, or menubar'
|
||||
if widget.info_patchlevel() < (8, 7) else
|
||||
'menubar, normal, or tearoff')
|
||||
self.checkEnumParam(
|
||||
widget, 'type',
|
||||
'normal', 'tearoff', 'menubar',
|
||||
errmsg='bad type "{}": must be normal, tearoff, or menubar',
|
||||
errmsg='bad type "{}": must be ' + opts,
|
||||
)
|
||||
|
||||
def test_entryconfigure(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue