summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/idlelib/idle_test/test_macosx.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_macosx.py b/Lib/idlelib/idle_test/test_macosx.py
index 775697b..3d85f3c 100644
--- a/Lib/idlelib/idle_test/test_macosx.py
+++ b/Lib/idlelib/idle_test/test_macosx.py
@@ -77,6 +77,10 @@ class SetupTest(unittest.TestCase):
requires('gui')
cls.root = tk.Tk()
cls.root.withdraw()
+ def cmd(tkpath, func):
+ assert isinstance(tkpath, str)
+ assert isinstance(func, type(cmd))
+ cls.root.createcommand = cmd
@classmethod
def tearDownClass(cls):