mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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. ........
This commit is contained in:
parent
995d4cdd62
commit
8ec5829910
4 changed files with 34 additions and 16 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue