File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def setUpClass(cls):
5757 @classmethod
5858 def tearDownClass (cls ):
5959 cls .editwin .per .close ()
60- cls .root .update ()
60+ cls .root .update_idletasks ()
6161 cls .root .destroy ()
6262 del cls .text , cls .text_frame , cls .editwin , cls .root
6363
@@ -695,7 +695,8 @@ def test_mousewheel(self):
695695 delta = - 1 if sys .platform == 'darwin' else 120
696696 sidebar .canvas .event_generate ('<MouseWheel>' , x = 0 , y = 0 , delta = delta )
697697 yield
698- self .assertIsNone (text .dlineinfo (text .index (f'{ last_lineno } .0' )))
698+ if sys .platform != 'darwin' : # .update_idletasks() does not work.
699+ self .assertIsNone (text .dlineinfo (text .index (f'{ last_lineno } .0' )))
699700
700701 # Scroll back down using the <Button-5> event.
701702 sidebar .canvas .event_generate ('<Button-5>' , x = 0 , y = 0 )
You can’t perform that action at this time.
0 commit comments