class_docstr: Test _init_tk_type.
docstr: Test that _init_tk_type sets _tk_type according to platform.
docstr_tok: ["Test","that","_init_tk_type","sets","_tk_type","according","to","platform","."]
code: def test_init_sets_tktype(self):
      "Test that _init_tk_type sets _tk_type according to platform."
      for platform, types in ("darwin", alltypes), ("other", nontypes):
          with self.subTest(platform=platform):
              macosx.platform = platform
              macosx._tk_type = None
              macosx._init_tk_type()
              self.assertIn(macosx._tk_type, types)
  
imports: from idlelib import macosx
  import unittest
  from test.support import requires
  import tkinter
  import unittest.mock
  from idlelib.filelist import FileList
label_desc: Use image node_id 3 for calling the InitTktypeTest obj's underlying member method code with example usage: obj.test_init_sets_tktype() without return types