MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/idlelib/idle_test/test_configdialog.py:790–798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

788 del page.set_keys_type, page.load_keys_list
789
790 def setUp(self):
791 d = self.page
792 # The following is needed for test_load_key_cfg, _delete_custom_keys.
793 # This may indicate a defect in some test or function.
794 for section in idleConf.GetSectionList('user', 'keys'):
795 idleConf.userCfg['keys'].remove_section(section)
796 changes.clear()
797 d.set_keys_type.called = 0
798 d.load_keys_list.called = 0
799
800 def test_load_key_cfg(self):
801 tracers.detach()

Callers

nothing calls this directly

Calls 3

GetSectionListMethod · 0.80
remove_sectionMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected