Skip to content

Commit 0555768

Browse files
author
y-p
committed
TST: fix test_repr_non_interactive passing by accident
1 parent f3aac7e commit 0555768

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/test_format.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,12 @@ def test_expand_frame_repr(self):
182182
def test_repr_non_interactive(self):
183183
# in non interactive mode, there can be no dependency on the
184184
# result of terminal auto size detection
185-
df = DataFrame('hello', range(99), range(5))
185+
df = DataFrame('hello', range(1000), range(5))
186186

187187
with option_context('mode.sim_interactive', False,
188-
'display.width', 0,
189-
'display.height', 0):
188+
'display.width', 0,
189+
'display.height', 0,
190+
'display.max_rows',5000):
190191
self.assertFalse(has_info_repr(df))
191192
self.assertFalse(has_expanded_repr(df))
192193

0 commit comments

Comments
 (0)