@@ -696,7 +696,19 @@ def test_lower_on_screen(self):
696696 '| k |' ,
697697 '| l |' ,
698698 '+------------------+' ]
699- self .assert_paint_ignoring_formatting (screen , (0 , 8 ))
699+ # behavior before issue #466
700+ self .assert_paint_ignoring_formatting (
701+ screen , try_preserve_history_height = 0 )
702+ self .assert_paint_ignoring_formatting (
703+ screen , min_infobox_height = 100 )
704+ # behavior after issue #466
705+ screen = ['>>> abc.' ,
706+ '+------------------+' ,
707+ '| aaaaaaaaaaaaaaaa |' ,
708+ '| b |' ,
709+ '| c |' ,
710+ '+------------------+' ]
711+ self .assert_paint_ignoring_formatting (screen )
700712
701713 def test_at_bottom_of_screen (self ):
702714 self .repl .get_top_usable_line = lambda : 17 # two lines from bottom
@@ -720,4 +732,16 @@ def test_at_bottom_of_screen(self):
720732 '| k |' ,
721733 '| l |' ,
722734 '+------------------+' ]
723- self .assert_paint_ignoring_formatting (screen , (0 , 8 ))
735+ # behavior before issue #466
736+ self .assert_paint_ignoring_formatting (
737+ screen , try_preserve_history_height = 0 )
738+ self .assert_paint_ignoring_formatting (
739+ screen , min_infobox_height = 100 )
740+ # behavior after issue #466
741+ screen = ['>>> abc.' ,
742+ '+------------------+' ,
743+ '| aaaaaaaaaaaaaaaa |' ,
744+ '| b |' ,
745+ '| c |' ,
746+ '+------------------+' ]
747+ self .assert_paint_ignoring_formatting (screen )
0 commit comments