We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfad588 commit 0212752Copy full SHA for 0212752
Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -677,7 +677,7 @@ def test_configure_tabs(self):
677
self.checkParam(widget, 'tabs', (10.2, 20.7, '1i', '2i'))
678
self.checkParam(widget, 'tabs', '10.2 20.7 1i 2i',
679
expected=(10.2, 20.7, '1i', '2i')
680
- if get_tk_patchlevel(self.root) >= (8, 6, 14)
+ if get_tk_patchlevel() >= (8, 6, 14)
681
else ('10.2', '20.7', '1i', '2i'))
682
self.checkParam(widget, 'tabs', '2c left 4c 6c center',
683
expected=('2c', 'left', '4c', '6c', 'center'))
@@ -1016,7 +1016,7 @@ def test_itemconfigure(self):
1016
widget.itemconfigure()
1017
with self.assertRaisesRegex(TclError, 'bad listbox index "red"'):
1018
widget.itemconfigure('red')
1019
- if get_tk_patchlevel(self.root) >= (8, 6, 14):
+ if get_tk_patchlevel() >= (8, 6, 14):
1020
prefix = ('background', '', '', '')
1021
else:
1022
prefix = ('background', 'background', 'Background', '')
Lib/tkinter/test/test_ttk/test_widgets.py
@@ -28,7 +28,7 @@ def test_configure_class(self):
28
29
def test_configure_padding(self):
30
widget = self.create()
31
- if get_tk_patchlevel(self.root) < (8, 6, 14):
+ if get_tk_patchlevel() < (8, 6, 14):
32
def padding_conv(value):
33
self.assertIsInstance(value, tuple)
34
return tuple(map(str, value))
0 commit comments