summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_widgets.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py
index 7f1ab7f85d..2419492b30 100644
--- a/Lib/tkinter/test/test_tkinter/test_widgets.py
+++ b/Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -940,8 +940,9 @@ class ScaleTest(AbstractWidgetTest, unittest.TestCase):
def test_from(self):
widget = self.create()
- cvt = False if sys.platform == 'win32' else float_round # 39107
- self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=cvt)
+ tk_patchlevel = widget.tk.call('info', 'patchlevel')
+ conv = False if tk_patchlevel == '8.6.10' else float_round # 39107
+ self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=conv)
def test_label(self):
widget = self.create()