Commit f19771f8 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #20635: Added tests for Tk geometry managers.

parent ab4a6915
This diff is collapsed.
......@@ -37,6 +37,17 @@ class AbstractWidgetTest(object):
if not self.root.wantobjects():
self.wantobjects = False
def tearDown(self):
for w in self.root.winfo_children():
w.destroy()
def _str(self, value):
if self.wantobjects and tcl_version >= (8, 6):
return value
if isinstance(value, tuple):
return ' '.join(map(self._str, value))
return str(value)
def create(self, **kwargs):
widget = self._create(**kwargs)
self.addCleanup(widget.destroy)
......
......@@ -18,6 +18,11 @@ Core and Builtins
Library
-------
Tests
-----
- Issue #20635: Added tests for Tk geometry managers.
What's New in Python 2.7.7 release candidate 1?
===============================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment