Skip to content

Commit

Permalink
bpo-33951: IDLE test_configdialog: call page.update in setUpClass (py…
Browse files Browse the repository at this point in the history
…thonGH-7892)

This avoids a failure in at least one case when running only a single
test method rather than all tests in the module.

The issue came up when testing the following on Windows 10 Pro 64-bit:
HighPageTest.test_highlight_target_text_mouse
  • Loading branch information
taleinat authored and terryjreedy committed Jun 24, 2018
1 parent 3f197f9 commit 2af9f5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/idlelib/idle_test/test_configdialog.py
Expand Up @@ -60,6 +60,7 @@ def setUpClass(cls):
page = cls.page = dialog.fontpage
dialog.note.select(page)
page.set_samples = Func() # Mask instance method.
page.update()

@classmethod
def tearDownClass(cls):
Expand Down Expand Up @@ -210,6 +211,7 @@ class IndentTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.page = dialog.fontpage
cls.page.update()

def test_load_tab_cfg(self):
d = self.page
Expand Down Expand Up @@ -240,6 +242,7 @@ def setUpClass(cls):
page.paint_theme_sample = Func()
page.set_highlight_target = Func()
page.set_color_sample = Func()
page.update()

@classmethod
def tearDownClass(cls):
Expand Down Expand Up @@ -1085,6 +1088,7 @@ def setUpClass(cls):
dialog.note.select(page)
page.set = page.set_add_delete_state = Func()
page.upc = page.update_help_changes = Func()
page.update()

@classmethod
def tearDownClass(cls):
Expand Down

0 comments on commit 2af9f5d

Please sign in to comment.