File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 17
17
import pandas .core .common as com
18
18
19
19
import pandas .util .testing as tm
20
+ import pandas .core .config as cf
20
21
21
22
from pandas .tseries .index import _to_m8
22
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
896
897
897
898
def test_repr_summary (self ):
898
- r = repr (pd .Index (np .arange (10000 )))
899
- self .assertTrue (len (r ) < 100 )
900
- self .assertTrue ("..." in r )
899
+ with cf .option_context ('display.max_seq_items' ,10 ):
900
+ r = repr (pd .Index (np .arange (1000 )))
901
+ self .assertTrue (len (r ) < 100 )
902
+ self .assertTrue ("..." in r )
901
903
902
904
def test_unicode_string_with_unicode (self ):
903
905
idx = Index (range (1000 ))
You can’t perform that action at this time.
0 commit comments