Skip to content
Prev Previous commit
Next Next commit
Use @terryjreedy's conv kwarg suggestion
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
E-Paine and terryjreedy authored Sep 26, 2020
commit 8b8060e9daa33eb65d156d04c88390c9c635f2be
4 changes: 2 additions & 2 deletions Lib/tkinter/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,8 @@ def test_digits(self):
def test_from(self):
widget = self.create()
# A change in Tk 8.6.10 means `from` is not rounded (bpo-41306)
Comment thread
E-Paine marked this conversation as resolved.
Outdated
self.checkFloatParam(widget, 'from', 100, 14.9, 15.1,
conv=float_round if get_tk_patchlevel() < (8, 6, 10) else noconv)
conv = float_round if get_tk_patchlevel() < (8, 6, 10) else noconv
self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=conv)
Comment thread
pablogsal marked this conversation as resolved.
Outdated

def test_label(self):
widget = self.create()
Expand Down