diff options
| author | Guilherme Polo <ggpolo@gmail.com> | 2009-02-02 00:38:54 (GMT) |
|---|---|---|
| committer | Guilherme Polo <ggpolo@gmail.com> | 2009-02-02 00:38:54 (GMT) |
| commit | 905c6b7f4845739d317717b053416bb246f10a14 (patch) | |
| tree | 581a5777b9e2c8d8ce5b46dca2c83d21034c1774 /Lib/lib-tk/test/test_ttk/test_extensions.py | |
| parent | 3b331dd3ea7492e363ad68cc49c4ee9a09a2ca79 (diff) | |
| download | cpython-905c6b7f4845739d317717b053416bb246f10a14.zip cpython-905c6b7f4845739d317717b053416bb246f10a14.tar.gz cpython-905c6b7f4845739d317717b053416bb246f10a14.tar.bz2 | |
Use a single Tcl interpreter through all these tests, this may help some
failing buildbots.
Diffstat (limited to 'Lib/lib-tk/test/test_ttk/test_extensions.py')
| -rw-r--r-- | Lib/lib-tk/test/test_ttk/test_extensions.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Lib/lib-tk/test/test_ttk/test_extensions.py b/Lib/lib-tk/test/test_ttk/test_extensions.py index afbfba6..5a73a6f 100644 --- a/Lib/lib-tk/test/test_ttk/test_extensions.py +++ b/Lib/lib-tk/test/test_ttk/test_extensions.py @@ -10,6 +10,13 @@ requires('gui') class LabeledScaleTest(unittest.TestCase): + def setUp(self): + support.root_deiconify() + + def tearDown(self): + support.root_withdraw() + + def test_widget_destroy(self): # automatically created variable x = ttk.LabeledScale() @@ -175,12 +182,12 @@ class LabeledScaleTest(unittest.TestCase): class OptionMenuTest(unittest.TestCase): def setUp(self): - self.root = support.get_tk_root() - self.textvar = Tkinter.StringVar(self.root) + support.root_deiconify() + self.textvar = Tkinter.StringVar() def tearDown(self): del self.textvar - self.root.destroy() + support.root_withdraw() def test_widget_destroy(self): |
