diff options
author | Guilherme Polo <ggpolo@gmail.com> | 2009-02-02 01:02:20 (GMT) |
---|---|---|
committer | Guilherme Polo <ggpolo@gmail.com> | 2009-02-02 01:02:20 (GMT) |
commit | 8ec58299106e3c2550dfad3acf1e35ae8a590a0d (patch) | |
tree | 3144f42d494b95d129dbf325003042243572d229 /Lib/tkinter/test/test_ttk/test_extensions.py | |
parent | 995d4cdd623d10affca758e182344e1866584370 (diff) | |
download | cpython-8ec58299106e3c2550dfad3acf1e35ae8a590a0d.zip cpython-8ec58299106e3c2550dfad3acf1e35ae8a590a0d.tar.gz cpython-8ec58299106e3c2550dfad3acf1e35ae8a590a0d.tar.bz2 |
Recorded merge of revisions 69195 via svnmerge from
svn+ssh://pythondev/python/trunk
........
r69195 | guilherme.polo | 2009-02-01 22:38:54 -0200 (Sun, 01 Feb 2009) | 3 lines
Use a single Tcl interpreter through all these tests, this may help some
failing buildbots.
........
Diffstat (limited to 'Lib/tkinter/test/test_ttk/test_extensions.py')
-rw-r--r-- | Lib/tkinter/test/test_ttk/test_extensions.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_extensions.py b/Lib/tkinter/test/test_ttk/test_extensions.py index a127545..a14ccca 100644 --- a/Lib/tkinter/test/test_ttk/test_extensions.py +++ b/Lib/tkinter/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): |