Skip to content

Commit 0d53d12

Browse files
author
y-p
committed
CLN: convert test utilizing disp.line_width to disp.width
1 parent 098c21a commit 0d53d12

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/tests/test_format.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_expand_frame_repr(self):
161161
df_tall = DataFrame('hello', range(30), range(5))
162162

163163
with option_context('mode.sim_interactive', True):
164-
with option_context('display.width', 50,
164+
with option_context('display.width', 50,
165165
'display.height', 20):
166166
with option_context('display.expand_frame_repr', True):
167167
self.assertFalse(has_info_repr(df_small))
@@ -646,7 +646,7 @@ def test_wide_repr(self):
646646
wide_repr = repr(df)
647647
self.assert_(rep_str != wide_repr)
648648

649-
with option_context('display.line_width', 120):
649+
with option_context('display.width', 120):
650650
wider_repr = repr(df)
651651
self.assert_(len(wider_repr) < len(wide_repr))
652652

@@ -671,7 +671,7 @@ def test_wide_repr_named(self):
671671
wide_repr = repr(df)
672672
self.assert_(rep_str != wide_repr)
673673

674-
with option_context('display.line_width', 120):
674+
with option_context('display.width', 120):
675675
wider_repr = repr(df)
676676
self.assert_(len(wider_repr) < len(wide_repr))
677677

@@ -694,7 +694,7 @@ def test_wide_repr_multiindex(self):
694694
wide_repr = repr(df)
695695
self.assert_(rep_str != wide_repr)
696696

697-
with option_context('display.line_width', 120):
697+
with option_context('display.width', 120):
698698
wider_repr = repr(df)
699699
self.assert_(len(wider_repr) < len(wide_repr))
700700

@@ -719,7 +719,7 @@ def test_wide_repr_multiindex_cols(self):
719719
wide_repr = repr(df)
720720
self.assert_(rep_str != wide_repr)
721721

722-
with option_context('display.line_width', 120):
722+
with option_context('display.width', 120):
723723
wider_repr = repr(df)
724724
self.assert_(len(wider_repr) < len(wide_repr))
725725
self.assert_(len(wide_repr.splitlines()) == 14 * 10 - 1)
@@ -736,7 +736,7 @@ def test_wide_repr_unicode(self):
736736
wide_repr = repr(df)
737737
self.assert_(rep_str != wide_repr)
738738

739-
with option_context('display.line_width', 120):
739+
with option_context('display.width', 120):
740740
wider_repr = repr(df)
741741
self.assert_(len(wider_repr) < len(wide_repr))
742742

0 commit comments

Comments
 (0)