diff options
author | Tal Einat <taleinat+github@gmail.com> | 2018-06-24 20:35:59 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2018-06-24 20:35:59 (GMT) |
commit | 2af9f5d334eeca588eeee87d177faf0012c63a03 (patch) | |
tree | 004e3e010d5b3f507daf7626fd0ea54ee9f7a836 /Lib/idlelib | |
parent | 3f197f94d67be25d5489e14f2f06b4a00e818747 (diff) | |
download | cpython-2af9f5d334eeca588eeee87d177faf0012c63a03.zip cpython-2af9f5d334eeca588eeee87d177faf0012c63a03.tar.gz cpython-2af9f5d334eeca588eeee87d177faf0012c63a03.tar.bz2 |
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
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/idle_test/test_configdialog.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py index fe712b1..dbfcd01 100644 --- a/Lib/idlelib/idle_test/test_configdialog.py +++ b/Lib/idlelib/idle_test/test_configdialog.py @@ -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): |