[Python-checkins] cpython (merge 3.3 -> default): Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue
serhiy.storchaka
python-checkins at python.org
Tue Nov 5 20:12:43 CET 2013
http://hg.python.org/cpython/rev/ce08158e3f6c
changeset: 86953:ce08158e3f6c
parent: 86950:fc4ef17c7db8
parent: 86952:21fbe3ec90dc
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Nov 05 21:06:05 2013 +0200
summary:
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085).
files:
Lib/tkinter/test/test_tkinter/test_widgets.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py
--- a/Lib/tkinter/test/test_tkinter/test_widgets.py
+++ b/Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -332,12 +332,12 @@
def test_insertwidth(self):
widget = self.create()
self.checkPixelsParam(widget, 'insertwidth', 1.3, 3.6, '10p')
- if tcl_version[:2] == (8, 5):
+ self.checkParam(widget, 'insertwidth', 0.1, expected=2)
+ self.checkParam(widget, 'insertwidth', -2, expected=2)
+ if pixels_round(0.9) <= 0:
self.checkParam(widget, 'insertwidth', 0.9, expected=2)
else:
- self.checkParam(widget, 'insertwidth', 0.9, expected=1)
- self.checkParam(widget, 'insertwidth', 0.1, expected=2)
- self.checkParam(widget, 'insertwidth', -2, expected=2)
+ self.checkParam(widget, 'insertwidth', 0.9)
def test_invalidcommand(self):
widget = self.create()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list