Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-41306: Allow scale value to not be rounded #21715

Merged
merged 9 commits into from
Oct 8, 2020
4 changes: 3 additions & 1 deletion Lib/tkinter/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,9 @@ def test_digits(self):

def test_from(self):
widget = self.create()
self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=float_round)
# A change in Tk 8.6.10 means `from` is not rounded (bpo-41306)
E-Paine marked this conversation as resolved.
Show resolved Hide resolved
conv = float_round if get_tk_patchlevel() < (8, 6, 10) else noconv
self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=conv)
pablogsal marked this conversation as resolved.
Show resolved Hide resolved
pablogsal marked this conversation as resolved.
Show resolved Hide resolved

def test_label(self):
widget = self.create()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed test_tk.test_widgets.ScaleTest failure on Tk 8.6.10
pablogsal marked this conversation as resolved.
Show resolved Hide resolved