@@ -510,19 +510,19 @@ def test_initial_state(self):
510510 )
511511 self .assert_sidebar_lines_synced ()
512512
513- @run_in_tk_mainloop
513+ @run_in_tk_mainloop ()
514514 def test_single_empty_input (self ):
515515 self .do_input ('\n ' )
516516 yield
517517 self .assert_sidebar_lines_end_with (['>>>' , '>>>' ])
518518
519- @run_in_tk_mainloop
519+ @run_in_tk_mainloop ()
520520 def test_single_line_statement (self ):
521521 self .do_input ('1\n ' )
522522 yield
523523 self .assert_sidebar_lines_end_with (['>>>' , None , '>>>' ])
524524
525- @run_in_tk_mainloop
525+ @run_in_tk_mainloop ()
526526 def test_multi_line_statement (self ):
527527 # Block statements are not indented because IDLE auto-indents.
528528 self .do_input (dedent ('''\
@@ -540,14 +540,14 @@ def test_multi_line_statement(self):
540540 '>>>' ,
541541 ])
542542
543- @run_in_tk_mainloop
543+ @run_in_tk_mainloop ()
544544 def test_single_long_line_wraps (self ):
545545 self .do_input ('1' * 200 + '\n ' )
546546 yield
547547 self .assert_sidebar_lines_end_with (['>>>' , None , '>>>' ])
548548 self .assert_sidebar_lines_synced ()
549549
550- @run_in_tk_mainloop
550+ @run_in_tk_mainloop ()
551551 def test_squeeze_multi_line_output (self ):
552552 shell = self .shell
553553 text = shell .text
@@ -567,7 +567,7 @@ def test_squeeze_multi_line_output(self):
567567 self .assert_sidebar_lines_end_with (['>>>' , None , None , None , '>>>' ])
568568 self .assert_sidebar_lines_synced ()
569569
570- @run_in_tk_mainloop
570+ @run_in_tk_mainloop ()
571571 def test_interrupt_recall_undo_redo (self ):
572572 text = self .shell .text
573573 # Block statements are not indented because IDLE auto-indents.
@@ -613,7 +613,7 @@ def test_interrupt_recall_undo_redo(self):
613613 ['>>>' , '...' , '...' , '...' , None , '>>>' ]
614614 )
615615
616- @run_in_tk_mainloop
616+ @run_in_tk_mainloop ()
617617 def test_very_long_wrapped_line (self ):
618618 with swap_attr (self .shell , 'squeezer' , None ):
619619 self .do_input ('x = ' + '1' * 10_000 + '\n ' )
@@ -678,7 +678,7 @@ def get_sidebar_colors():
678678 sidebar .update_colors ()
679679 self .assertEqual (get_sidebar_colors (), test_colors )
680680
681- @run_in_tk_mainloop
681+ @run_in_tk_mainloop ()
682682 def test_mousewheel (self ):
683683 sidebar = self .shell .shell_sidebar
684684 text = self .shell .text
@@ -703,7 +703,7 @@ def test_mousewheel(self):
703703 yield
704704 self .assertIsNotNone (text .dlineinfo (text .index (f'{ last_lineno } .0' )))
705705
706- @run_in_tk_mainloop
706+ @run_in_tk_mainloop ()
707707 def test_copy (self ):
708708 sidebar = self .shell .shell_sidebar
709709 text = self .shell .text
@@ -728,7 +728,7 @@ def test_copy(self):
728728 copied_text = text .clipboard_get ()
729729 self .assertEqual (copied_text , selected_text )
730730
731- @run_in_tk_mainloop
731+ @run_in_tk_mainloop ()
732732 def test_copy_with_prompts (self ):
733733 sidebar = self .shell .shell_sidebar
734734 text = self .shell .text
0 commit comments