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

Method setUp

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

Source from the content-addressed store, hash-verified

284 del d.set_highlight_target, d.set_color_sample
285
286 def setUp(self):
287 d = self.page
288 # The following is needed for test_load_key_cfg, _delete_custom_keys.
289 # This may indicate a defect in some test or function.
290 for section in idleConf.GetSectionList('user', 'highlight'):
291 idleConf.userCfg['highlight'].remove_section(section)
292 changes.clear()
293 d.set_theme_type.called = 0
294 d.paint_theme_sample.called = 0
295 d.set_highlight_target.called = 0
296 d.set_color_sample.called = 0
297
298 def test_load_theme_cfg(self):
299 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