Kaydet (Commit) 7c5798eb authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy Kaydeden (comit) GitHub

bpo-30981: temporarity skip failing IDLE test class (#2798)

üst d0969d69
......@@ -180,7 +180,7 @@ class ConfigDialog(Toplevel):
frame_font_param: Frame
font_size_title: Label
(*)opt_menu_font_size: DynOptionMenu - font_size
bold_toggle: Checkbutton - font_bold
(*)bold_toggle: Checkbutton - font_bold
frame_font_sample: Frame
(*)font_sample: Label
frame_indent: LabelFrame
......@@ -218,7 +218,7 @@ class ConfigDialog(Toplevel):
font_size_title = Label(frame_font_param, text='Size :')
self.opt_menu_font_size = DynOptionMenu(
frame_font_param, self.font_size, None, command=self.set_samples)
bold_toggle = Checkbutton(
self.bold_toggle = Checkbutton(
frame_font_param, variable=self.font_bold, onvalue=1,
offvalue=0, text='Bold', command=self.set_samples)
frame_font_sample = Frame(frame_font, relief=SOLID, borderwidth=1)
......@@ -246,7 +246,7 @@ class ConfigDialog(Toplevel):
scroll_font.pack(side=LEFT, fill=Y)
font_size_title.pack(side=LEFT, anchor=W)
self.opt_menu_font_size.pack(side=LEFT, anchor=W)
bold_toggle.pack(side=LEFT, anchor=W, padx=20)
self.bold_toggle.pack(side=LEFT, anchor=W, padx=20)
frame_font_sample.pack(side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
self.font_sample.pack(expand=TRUE, fill=BOTH)
# frame_indent
......
......@@ -45,6 +45,7 @@ def tearDownModule():
del root
@unittest.skip("skip failing tests until fixed")
class FontTabTest(unittest.TestCase):
def setUp(self):
......@@ -78,6 +79,7 @@ class FontTabTest(unittest.TestCase):
d.set_samples = Func()
d.bold_toggle.toggle()
self.assertEqual(d.set_samples.called, 1)
del d.set_samples
def test_set_samples(self):
d = dialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment