@@ -260,7 +260,7 @@ def test_notify_range(self):
260260
261261 # Colorizing already scheduled.
262262 save_id = color .after_id
263- eq (self .root .tk . call ( 'after' , 'info' , save_id )[1 ], 'timer' )
263+ eq (self .root .after_info ( save_id )[1 ], 'timer' )
264264 self .assertFalse (color .colorizing )
265265 self .assertFalse (color .stop_colorizing )
266266 self .assertTrue (color .allow_colorizing )
@@ -277,7 +277,7 @@ def test_notify_range(self):
277277 color .notify_range ('1.0' , '1.0+3c' )
278278 self .assertTrue (color .stop_colorizing )
279279 self .assertIsNotNone (color .after_id )
280- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
280+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
281281 # New event scheduled.
282282 self .assertNotEqual (color .after_id , save_id )
283283
@@ -297,7 +297,7 @@ def test_toggle_colorize_event(self):
297297 self .assertFalse (color .colorizing )
298298 self .assertFalse (color .stop_colorizing )
299299 self .assertTrue (color .allow_colorizing )
300- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
300+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
301301
302302 # Toggle colorizing off.
303303 color .toggle_colorize_event ()
@@ -324,7 +324,7 @@ def test_toggle_colorize_event(self):
324324 # Toggle on while colorizing not in progress.
325325 color .colorizing = False
326326 color .toggle_colorize_event ()
327- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
327+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
328328 self .assertFalse (color .colorizing )
329329 self .assertTrue (color .stop_colorizing )
330330 self .assertTrue (color .allow_colorizing )
@@ -363,7 +363,7 @@ def test_recolorize(self, mock_recmain):
363363 mock_recmain .assert_called ()
364364 eq (mock_recmain .call_count , 1 )
365365 # Rescheduled when TODO tag still exists.
366- eq (self .root .tk . call ( 'after' , 'info' , color .after_id )[1 ], 'timer' )
366+ eq (self .root .after_info ( color .after_id )[1 ], 'timer' )
367367
368368 # No changes to text, so no scheduling added.
369369 text .tag_remove ('TODO' , '1.0' , 'end' )
0 commit comments