'Call setupApp with each possible graphics type.'

@mock.patch('idlelib.macosx.overrideRootMenu')
def test_setupapp(self, overrideRootMenu):

    root = self.root
    flist = FileList(root)
    for tktype in alltypes:
        with self.subTest(tktype=tktype):
            macosx._tk_type = tktype
            macosx.setupApp(root, flist)
            if (tktype in ('carbon', 'cocoa')):
                self.assertTrue(overrideRootMenu.called)
            overrideRootMenu.reset_mock()
