mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
(cherry picked from commit 8323189ff1
)
This commit is contained in:
parent
6fd0345995
commit
b0efd493b6
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ class SetupTest(unittest.TestCase):
|
||||||
requires('gui')
|
requires('gui')
|
||||||
cls.root = tk.Tk()
|
cls.root = tk.Tk()
|
||||||
cls.root.withdraw()
|
cls.root.withdraw()
|
||||||
|
def cmd(tkpath, func):
|
||||||
|
assert isinstance(tkpath, str)
|
||||||
|
assert isinstance(func, type(cmd))
|
||||||
|
cls.root.createcommand = cmd
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue