Commit e544f9a2 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #20635: Added tests for Tk geometry managers.

parent a39938ff
This diff is collapsed.
......@@ -33,6 +33,17 @@ class AbstractWidgetTest:
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)
......
......@@ -154,6 +154,8 @@ Documentation
Tests
-----
- Issue #20635: Added tests for Tk geometry managers.
- Add test case for freeze.
- Issue #20743: Fix a reference leak in test_tcl.
......
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