Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Lib/test/test_tkinter/test_widgets.py
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
terryjreedy and serhiy-storchaka authored May 27, 2023
commit ac16189fb6478ba74d1193309ba9b404f317624b
6 changes: 2 additions & 4 deletions Lib/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,10 +1402,8 @@ def test_configure_title(self):

def test_configure_type(self):
widget = self.create()
r = tkinter.Tk()
tkver = r.getvar('tk_version')
r.destroy()
opts = ('normal, tearoff, or menubar' if tkver < '8.7' else
opts = ('normal, tearoff, or menubar'
if widget.info_patchlevel() < (8, 7) else
'menubar, normal, or tearoff')
self.checkEnumParam(
widget, 'type',
Expand Down