summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/test_ttk/test_widgets.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-23 07:57:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-23 07:57:40 (GMT)
commit3bd66abb947fa658f57cc9201a59d0b96585d908 (patch)
treeb763a062dd93bd02dcf0ca82c5fc133fc97d14d1 /Lib/tkinter/test/test_ttk/test_widgets.py
parent4e1f355c0e90b7f7ebf05643a7ff5b75c5fb45ef (diff)
downloadcpython-3bd66abb947fa658f57cc9201a59d0b96585d908.zip
cpython-3bd66abb947fa658f57cc9201a59d0b96585d908.tar.gz
cpython-3bd66abb947fa658f57cc9201a59d0b96585d908.tar.bz2
Use more precise Tcl version checks in tests.
Diffstat (limited to 'Lib/tkinter/test/test_ttk/test_widgets.py')
-rw-r--r--Lib/tkinter/test/test_ttk/test_widgets.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_widgets.py b/Lib/tkinter/test/test_ttk/test_widgets.py
index 9153c00..afd3230 100644
--- a/Lib/tkinter/test/test_ttk/test_widgets.py
+++ b/Lib/tkinter/test/test_ttk/test_widgets.py
@@ -352,7 +352,8 @@ class ComboboxTest(AbstractWidgetTest, unittest.TestCase):
expected=('mon', 'tue', 'wed', 'thur'))
self.checkParam(self.combo, 'values', ('mon', 'tue', 'wed', 'thur'))
self.checkParam(self.combo, 'values', (42, 3.14, '', 'any string'))
- self.checkParam(self.combo, 'values', '', expected=())
+ self.checkParam(self.combo, 'values', '',
+ expected='' if get_tk_patchlevel() < (8, 5, 10) else ())
self.combo['values'] = ['a', 1, 'c']
@@ -1125,7 +1126,8 @@ class TreeviewTest(AbstractWidgetTest, unittest.TestCase):
self.checkParam(widget, 'columns', 'a b c',
expected=('a', 'b', 'c'))
self.checkParam(widget, 'columns', ('a', 'b', 'c'))
- self.checkParam(widget, 'columns', ())
+ self.checkParam(widget, 'columns', (),
+ expected='' if get_tk_patchlevel() < (8, 5, 10) else ())
def test_displaycolumns(self):
widget = self.create()