[Python-checkins] cpython (2.7): Try to fix some ttk tests. Error messages were changed in 8.6b3.

serhiy.storchaka python-checkins at python.org
Fri Jan 10 23:12:23 CET 2014


http://hg.python.org/cpython/rev/0fab2f9b7edc
changeset: 88402:0fab2f9b7edc
branch: 2.7
parent: 88397:0e5df5b62488
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Jan 11 00:09:50 2014 +0200
summary:
 Try to fix some ttk tests. Error messages were changed in 8.6b3.
files:
 Lib/lib-tk/test/test_ttk/test_widgets.py | 6 +++---
 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
--- 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 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 @@
 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 @@
 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)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /