summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/tkinter/test/test_tkinter/test_widgets.py5
-rw-r--r--Misc/NEWS.d/next/Windows/2020-09-24-23-09-40.bpo-39107.GbUZvD.rst2
2 files changed, 4 insertions, 3 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()
diff --git a/Misc/NEWS.d/next/Windows/2020-09-24-23-09-40.bpo-39107.GbUZvD.rst b/Misc/NEWS.d/next/Windows/2020-09-24-23-09-40.bpo-39107.GbUZvD.rst
index 51fea2d05c..889ad48140 100644
--- a/Misc/NEWS.d/next/Windows/2020-09-24-23-09-40.bpo-39107.GbUZvD.rst
+++ b/Misc/NEWS.d/next/Windows/2020-09-24-23-09-40.bpo-39107.GbUZvD.rst
@@ -1 +1 @@
-Updated Tcl and Tk to 8.6.10 in Windows installer
+Update Tcl and Tk to 8.6.10 in Windows installer.