We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb6ef7 commit 75a2586Copy full SHA for 75a2586
Lib/idlelib/idle_test/test_macosx.py
@@ -84,14 +84,17 @@ def tearDownClass(cls):
84
del cls.root
85
86
@mock.patch('idlelib.macosx.overrideRootMenu') #27312
87
- def test_setupapp(self):
+ def test_setupapp(self, overrideRootMenu):
88
"Call setupApp with each possible graphics type."
89
root = self.root
90
flist = FileList(root)
91
for tktype in alltypes:
92
with self.subTest(tktype=tktype):
93
macosx._tk_type = tktype
94
macosx.setupApp(root, flist)
95
+ if tktype in ('carbon', 'cocoa'):
96
+ self.assertTrue(overrideRootMenu.called)
97
+ overrideRootMenu.reset_mock()
98
99
100
if __name__ == '__main__':
0 commit comments