mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)
(cherry picked from commit dbbe4d2d00
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
0b5f99ad1a
commit
d27af88c1b
2 changed files with 5 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue