[Python-checkins] cpython (3.3): 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:42 CET 2013
http://hg.python.org/cpython/rev/21fbe3ec90dc
changeset: 86952:21fbe3ec90dc
branch: 3.3
parent: 86949:d5d0356ba5ac
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Nov 05 21:05:10 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