@@ -259,7 +259,7 @@ def test_notify_range(self):
259259
260260 # Colorizing already scheduled.
261261 save_id = color .after_id
262- eq (self .root .tk . call ( 'after' , 'info' , save_id )[1 ], 'timer' )
262+ eq (self .root .after_info ( save_id )[1 ], 'timer' )
263263 self .assertFalse (color .colorizing )
264264 self .assertFalse (color .stop_colorizing )
265265 self .assertTrue (color .allow_colorizing )
@@ -276,7 +276,7 @@ def test_notify_range(self):
276276 color .notify_range ('1.0' , '1.0+3c' )
277277 self .assertTrue (color .stop_colorizing )
278278 self .assertIsNotNone (color .after_id )
279- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
279+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
280280 # New event scheduled.
281281 self .assertNotEqual (color .after_id , save_id )
282282
@@ -296,7 +296,7 @@ def test_toggle_colorize_event(self):
296296 self .assertFalse (color .colorizing )
297297 self .assertFalse (color .stop_colorizing )
298298 self .assertTrue (color .allow_colorizing )
299- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
299+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
300300
301301 # Toggle colorizing off.
302302 color .toggle_colorize_event ()
@@ -323,7 +323,7 @@ def test_toggle_colorize_event(self):
323323 # Toggle on while colorizing not in progress.
324324 color .colorizing = False
325325 color .toggle_colorize_event ()
326- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
326+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
327327 self .assertFalse (color .colorizing )
328328 self .assertTrue (color .stop_colorizing )
329329 self .assertTrue (color .allow_colorizing )
@@ -362,7 +362,7 @@ def test_recolorize(self, mock_recmain):
362362 mock_recmain .assert_called ()
363363 eq (mock_recmain .call_count , 1 )
364364 # Rescheduled when TODO tag still exists.
365- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
365+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
366366
367367 # No changes to text, so no scheduling added.
368368 text .tag_remove ('TODO' , '1.0' , 'end' )
0 commit comments