@@ -542,25 +542,25 @@ def test_auto_detect(self):
542542 index = range (10 )
543543 df = DataFrame (index = index , columns = cols )
544544 with option_context ("mode.sim_interactive" , True ):
545- with option_context ("max_rows" , None ):
545+ with option_context ("display. max_rows" , None ):
546546 with option_context ("max_columns" , None ):
547547 # Wrap around with None
548548 assert has_expanded_repr (df )
549- with option_context ("max_rows" , 0 ):
549+ with option_context ("display. max_rows" , 0 ):
550550 with option_context ("max_columns" , 0 ):
551551 # Truncate with auto detection.
552552 assert has_horizontally_truncated_repr (df )
553553
554554 index = range (int (term_height * fac ))
555555 df = DataFrame (index = index , columns = cols )
556- with option_context ("max_rows" , 0 ):
556+ with option_context ("display. max_rows" , 0 ):
557557 with option_context ("max_columns" , None ):
558558 # Wrap around with None
559559 assert has_expanded_repr (df )
560560 # Truncate vertically
561561 assert has_vertically_truncated_repr (df )
562562
563- with option_context ("max_rows" , None ):
563+ with option_context ("display. max_rows" , None ):
564564 with option_context ("max_columns" , 0 ):
565565 assert has_horizontally_truncated_repr (df )
566566
0 commit comments