@@ -161,7 +161,7 @@ def test_expand_frame_repr(self):
161
161
df_tall = DataFrame ('hello' , range (30 ), range (5 ))
162
162
163
163
with option_context ('mode.sim_interactive' , True ):
164
- with option_context ('display.width' , 50 ,
164
+ with option_context ('display.width' , 50 ,
165
165
'display.height' , 20 ):
166
166
with option_context ('display.expand_frame_repr' , True ):
167
167
self .assertFalse (has_info_repr (df_small ))
@@ -646,7 +646,7 @@ def test_wide_repr(self):
646
646
wide_repr = repr (df )
647
647
self .assert_ (rep_str != wide_repr )
648
648
649
- with option_context ('display.line_width ' , 120 ):
649
+ with option_context ('display.width ' , 120 ):
650
650
wider_repr = repr (df )
651
651
self .assert_ (len (wider_repr ) < len (wide_repr ))
652
652
@@ -671,7 +671,7 @@ def test_wide_repr_named(self):
671
671
wide_repr = repr (df )
672
672
self .assert_ (rep_str != wide_repr )
673
673
674
- with option_context ('display.line_width ' , 120 ):
674
+ with option_context ('display.width ' , 120 ):
675
675
wider_repr = repr (df )
676
676
self .assert_ (len (wider_repr ) < len (wide_repr ))
677
677
@@ -694,7 +694,7 @@ def test_wide_repr_multiindex(self):
694
694
wide_repr = repr (df )
695
695
self .assert_ (rep_str != wide_repr )
696
696
697
- with option_context ('display.line_width ' , 120 ):
697
+ with option_context ('display.width ' , 120 ):
698
698
wider_repr = repr (df )
699
699
self .assert_ (len (wider_repr ) < len (wide_repr ))
700
700
@@ -719,7 +719,7 @@ def test_wide_repr_multiindex_cols(self):
719
719
wide_repr = repr (df )
720
720
self .assert_ (rep_str != wide_repr )
721
721
722
- with option_context ('display.line_width ' , 120 ):
722
+ with option_context ('display.width ' , 120 ):
723
723
wider_repr = repr (df )
724
724
self .assert_ (len (wider_repr ) < len (wide_repr ))
725
725
self .assert_ (len (wide_repr .splitlines ()) == 14 * 10 - 1 )
@@ -736,7 +736,7 @@ def test_wide_repr_unicode(self):
736
736
wide_repr = repr (df )
737
737
self .assert_ (rep_str != wide_repr )
738
738
739
- with option_context ('display.line_width ' , 120 ):
739
+ with option_context ('display.width ' , 120 ):
740
740
wider_repr = repr (df )
741
741
self .assert_ (len (wider_repr ) < len (wide_repr ))
742
742
0 commit comments