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
Next Next commit
Use get_tk_patchlevel.
  • Loading branch information
terryjreedy committed Sep 25, 2020
commit eee6bb50c69d94280f43b47390ea9d1b5f42930c
3 changes: 1 addition & 2 deletions Lib/tkinter/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,7 @@ def test_digits(self):

def test_from(self):
widget = self.create()
tk_patchlevel = widget.tk.call('info', 'patchlevel')
conv = False if tk_patchlevel == '8.6.10' else float_round # 39107
conv = False if get_tk_patchlevel() >= (8, 6, 10) else float_round
self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=conv)

def test_label(self):
Expand Down