summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_tkinter/test_widgets.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-03-16 17:39:00 (GMT)
committerGitHub <noreply@github.com>2022-03-16 17:39:00 (GMT)
commitdbbe4d2d0075fa0e95b069fb4780d79aae3514c7 (patch)
treea6405d6866b6945c261331e4e8ba9861d8641c35 /Lib/tkinter/test/test_tkinter/test_widgets.py
parent81b425d4dc43b60dd11a3e9abc5c84a4b8b384db (diff)
downloadcpython-dbbe4d2d0075fa0e95b069fb4780d79aae3514c7.zip
cpython-dbbe4d2d0075fa0e95b069fb4780d79aae3514c7.tar.gz
cpython-dbbe4d2d0075fa0e95b069fb4780d79aae3514c7.tar.bz2
bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)
Diffstat (limited to 'Lib/tkinter/test/test_tkinter/test_widgets.py')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py
index cc227e5..c0b92bf 100644
--- a/Lib/tkinter/test/test_tkinter/test_widgets.py
+++ b/Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -800,7 +800,7 @@ class ListboxTest(AbstractWidgetTest, unittest.TestCase):
self.checkEnumParam(widget, 'activestyle',
'dotbox', 'none', 'underline')
- test_justify = requires_tcl(8, 6, 5)(StandardOptionsTests.test_configure_justify)
+ test_configure_justify = requires_tcl(8, 6, 5)(StandardOptionsTests.test_configure_justify)
def test_configure_listvariable(self):
widget = self.create()
@@ -939,7 +939,7 @@ class ScaleTest(AbstractWidgetTest, unittest.TestCase):
def test_configure_from(self):
widget = self.create()
- conv = False if get_tk_patchlevel() >= (8, 6, 10) else float_round
+ conv = float if get_tk_patchlevel() >= (8, 6, 10) else float_round
self.checkFloatParam(widget, 'from', 100, 14.9, 15.1, conv=conv)
def test_configure_label(self):