summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test/widget_tests.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-06-02 18:31:07 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-06-02 18:31:07 (GMT)
commitfc14ad996237839e601d08ac05bd6fe7838a8502 (patch)
tree3ce35e5c86e4929e9b73f1f100a778b8d374606c /Lib/tkinter/test/widget_tests.py
parent90441e857d2f0d0224899a328e89fd8d694e45ef (diff)
downloadcpython-fc14ad996237839e601d08ac05bd6fe7838a8502.zip
cpython-fc14ad996237839e601d08ac05bd6fe7838a8502.tar.gz
cpython-fc14ad996237839e601d08ac05bd6fe7838a8502.tar.bz2
Issue #6181: Fixed minor bugs in tkinter.Listbox methods:
bbox(), curselection() and get().
Diffstat (limited to 'Lib/tkinter/test/widget_tests.py')
-rw-r--r--Lib/tkinter/test/widget_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/tkinter/test/widget_tests.py b/Lib/tkinter/test/widget_tests.py
index d983acc..26bf162 100644
--- a/Lib/tkinter/test/widget_tests.py
+++ b/Lib/tkinter/test/widget_tests.py
@@ -202,6 +202,16 @@ class AbstractWidgetTest:
def checkVariableParam(self, widget, name, var):
self.checkParam(widget, name, var, conv=str)
+ def assertIsBoundingBox(self, bbox):
+ self.assertIsNotNone(bbox)
+ self.assertIsInstance(bbox, tuple)
+ if len(bbox) != 4:
+ self.fail('Invalid bounding box: %r' % (bbox,))
+ for item in bbox:
+ if not isinstance(item, int):
+ self.fail('Invalid bounding box: %r' % (bbox,))
+ break
+
class StandardOptionsTests:
STANDARD_OPTIONS = (