Skip to content

Commit 0212752

Browse files
committed
Fix for 3.10 branch
1 parent cfad588 commit 0212752

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/tkinter/test/test_tkinter/test_widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ def test_configure_tabs(self):
677677
self.checkParam(widget, 'tabs', (10.2, 20.7, '1i', '2i'))
678678
self.checkParam(widget, 'tabs', '10.2 20.7 1i 2i',
679679
expected=(10.2, 20.7, '1i', '2i')
680-
if get_tk_patchlevel(self.root) >= (8, 6, 14)
680+
if get_tk_patchlevel() >= (8, 6, 14)
681681
else ('10.2', '20.7', '1i', '2i'))
682682
self.checkParam(widget, 'tabs', '2c left 4c 6c center',
683683
expected=('2c', 'left', '4c', '6c', 'center'))
@@ -1016,7 +1016,7 @@ def test_itemconfigure(self):
10161016
widget.itemconfigure()
10171017
with self.assertRaisesRegex(TclError, 'bad listbox index "red"'):
10181018
widget.itemconfigure('red')
1019-
if get_tk_patchlevel(self.root) >= (8, 6, 14):
1019+
if get_tk_patchlevel() >= (8, 6, 14):
10201020
prefix = ('background', '', '', '')
10211021
else:
10221022
prefix = ('background', 'background', 'Background', '')

Lib/tkinter/test/test_ttk/test_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_configure_class(self):
2828

2929
def test_configure_padding(self):
3030
widget = self.create()
31-
if get_tk_patchlevel(self.root) < (8, 6, 14):
31+
if get_tk_patchlevel() < (8, 6, 14):
3232
def padding_conv(value):
3333
self.assertIsInstance(value, tuple)
3434
return tuple(map(str, value))

0 commit comments

Comments
 (0)