bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-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
(cherry picked from commit 2af9f5d334)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-06-24 13:55:39 -07:00 committed by GitHub
parent d2a9c2ee4b
commit b3bac968fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class FontPageTest(unittest.TestCase):
page = cls.page = dialog.fontpage
dialog.note.select(page)
page.set_samples = Func() # Mask instance method.
page.update()
@classmethod
def tearDownClass(cls):
@ -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
@ -240,6 +242,7 @@ class HighPageTest(unittest.TestCase):
page.paint_theme_sample = Func()
page.set_highlight_target = Func()
page.set_color_sample = Func()
page.update()
@classmethod
def tearDownClass(cls):
@ -1085,6 +1088,7 @@ class GenPageTest(unittest.TestCase):
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):