We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5a3d9b + 3bd66ab commit f28d54dCopy full SHA for f28d54d
2 files changed
Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -1041,7 +1041,7 @@ def test_paneconfigure_before(self):
1041
def test_paneconfigure_height(self):
1042
p, b, c = self.create2()
1043
self.check_paneconfigure(p, b, 'height', 10, 10,
1044
- stringify=tcl_version < (8, 5))
+ stringify=get_tk_patchlevel() < (8, 5, 11))
1045
self.check_paneconfigure_bad(p, b, 'height',
1046
'bad screen distance "badValue"')
1047
@@ -1089,7 +1089,7 @@ def test_paneconfigure_stretch(self):
1089
def test_paneconfigure_width(self):
1090
1091
self.check_paneconfigure(p, b, 'width', 10, 10,
1092
1093
self.check_paneconfigure_bad(p, b, 'width',
1094
1095
Lib/tkinter/test/test_ttk/test_widgets.py
@@ -352,7 +352,8 @@ def check_get_current(getval, currval):
352
expected=('mon', 'tue', 'wed', 'thur'))
353
self.checkParam(self.combo, 'values', ('mon', 'tue', 'wed', 'thur'))
354
self.checkParam(self.combo, 'values', (42, 3.14, '', 'any string'))
355
- self.checkParam(self.combo, 'values', '', expected=())
+ self.checkParam(self.combo, 'values', '',
356
+ expected='' if get_tk_patchlevel() < (8, 5, 10) else ())
357
358
self.combo['values'] = ['a', 1, 'c']
359
@@ -1125,7 +1126,8 @@ def test_columns(self):
1125
1126
self.checkParam(widget, 'columns', 'a b c',
1127
expected=('a', 'b', 'c'))
1128
self.checkParam(widget, 'columns', ('a', 'b', 'c'))
- self.checkParam(widget, 'columns', ())
1129
+ self.checkParam(widget, 'columns', (),
1130
1131
1132
def test_displaycolumns(self):
1133
widget = self.create()
0 commit comments