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):
57
57
@classmethod
58
58
def tearDownClass (cls ):
59
59
cls .editwin .per .close ()
60
- cls .root .update ()
60
+ cls .root .update_idletasks ()
61
61
cls .root .destroy ()
62
62
del cls .text , cls .text_frame , cls .editwin , cls .root
63
63
@@ -695,7 +695,8 @@ def test_mousewheel(self):
695
695
delta = - 1 if sys .platform == 'darwin' else 120
696
696
sidebar .canvas .event_generate ('<MouseWheel>' , x = 0 , y = 0 , delta = delta )
697
697
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' )))
699
700
700
701
# Scroll back down using the <Button-5> event.
701
702
sidebar .canvas .event_generate ('<Button-5>' , x = 0 , y = 0 )
You can’t perform that action at this time.
0 commit comments