We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe4306 commit 8870475Copy full SHA for 8870475
pandas/tests/test_index.py
@@ -17,6 +17,7 @@
17
import pandas.core.common as com
18
19
import pandas.util.testing as tm
20
+import pandas.core.config as cf
21
22
from pandas.tseries.index import _to_m8
23
import pandas.tseries.offsets as offsets
@@ -895,9 +896,10 @@ def test_print_unicode_columns(self):
895
896
repr(df.columns) # should not raise UnicodeDecodeError
897
898
def test_repr_summary(self):
- r = repr(pd.Index(np.arange(10000)))
899
- self.assertTrue(len(r) < 100)
900
- self.assertTrue("..." in r)
+ with cf.option_context('display.max_seq_items',10):
+ r = repr(pd.Index(np.arange(1000)))
901
+ self.assertTrue(len(r) < 100)
902
+ self.assertTrue("..." in r)
903
904
def test_unicode_string_with_unicode(self):
905
idx = Index(range(1000))
0 commit comments