summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-10 22:09:50 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-10 22:09:50 (GMT)
commit6183f7011961d555c86cc73333db13bc1d6598c2 (patch)
treeaaaa3258ca959c0144a928a9689fa71d71a847f2 /Lib/lib-tk/test
parentee105dcc62fd4500d7e25a7c6679e274bc220bd7 (diff)
downloadcpython-6183f7011961d555c86cc73333db13bc1d6598c2.zip
cpython-6183f7011961d555c86cc73333db13bc1d6598c2.tar.gz
cpython-6183f7011961d555c86cc73333db13bc1d6598c2.tar.bz2
Try to fix some ttk tests. Error messages were changed in 8.6b3.
Diffstat (limited to 'Lib/lib-tk/test')
-rw-r--r--Lib/lib-tk/test/test_ttk/test_widgets.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib-tk/test/test_ttk/test_widgets.py b/Lib/lib-tk/test/test_ttk/test_widgets.py
index 64eaf61..15c2d54 100644
--- a/Lib/lib-tk/test/test_ttk/test_widgets.py
+++ b/Lib/lib-tk/test/test_ttk/test_widgets.py
@@ -6,7 +6,7 @@ import sys
import support
from test_functions import MockTclObj, MockStateSpec
-from support import tcl_version
+from support import tcl_version, get_tk_patchlevel
from widget_tests import (add_standard_options, noconv, noconv_meth,
AbstractWidgetTest, StandardOptionsTests,
IntegerSizeTests, PixelSizeTests,
@@ -21,7 +21,7 @@ class StandardTtkOptionsTests(StandardOptionsTests):
widget = self.create()
self.assertEqual(widget['class'], '')
errmsg='attempt to change read-only option'
- if tcl_version < (8, 6, 0): # actually this was changen in 8.6b3
+ if get_tk_patchlevel() < (8, 6, 0): # actually this was changen in 8.6b3
errmsg='Attempt to change read-only option'
self.checkInvalidParam(widget, 'class', 'Foo', errmsg=errmsg)
widget2 = self.create(class_='Foo')
@@ -577,7 +577,7 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
widget = self.create()
self.assertEqual(str(widget['orient']), 'vertical')
errmsg='attempt to change read-only option'
- if tcl_version < (8, 6):
+ if get_tk_patchlevel() < (8, 6, 0): # actually this was changen in 8.6b3
errmsg='Attempt to change read-only option'
self.checkInvalidParam(widget, 'orient', 'horizontal',
errmsg=errmsg)