Skip to content

Commit f3aac7e

Browse files
author
y-p
committed
TST: adjust tests to accommodate new defaults for display options
1 parent a71c815 commit f3aac7e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/tests/test_format.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.width', 120):
674+
with option_context('display.width', 150):
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.width', 120):
697+
with option_context('display.width', 150):
698698
wider_repr = repr(df)
699699
self.assert_(len(wider_repr) < len(wide_repr))
700700

@@ -719,10 +719,9 @@ 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.width', 120):
722+
with option_context('display.width', 150):
723723
wider_repr = repr(df)
724724
self.assert_(len(wider_repr) < len(wide_repr))
725-
self.assert_(len(wide_repr.splitlines()) == 14 * 10 - 1)
726725

727726
reset_option('display.expand_frame_repr')
728727

@@ -736,7 +735,7 @@ def test_wide_repr_unicode(self):
736735
wide_repr = repr(df)
737736
self.assert_(rep_str != wide_repr)
738737

739-
with option_context('display.width', 120):
738+
with option_context('display.width', 150):
740739
wider_repr = repr(df)
741740
self.assert_(len(wider_repr) < len(wide_repr))
742741

0 commit comments

Comments
 (0)