Skip to content

Commit

Permalink
added test for pandas-dev#25080
Browse files Browse the repository at this point in the history
  • Loading branch information
EternalLearner42 authored Feb 3, 2019
1 parent 7c4dea9 commit 1eb54eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/tests/io/formats/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -2792,3 +2792,12 @@ def test_repr_html_ipython_config(ip):
""")
result = ip.run_cell(code)
assert not result.error_in_exec


def test_terminal_unknown_dimensions():
from pandas.io.formats.terminal import _get_terminal_size_tput
monkeypatch.setattr(get_terminal_size_tput, proc, None)
assert OSError

monkeypatch.setattr(get_terminal_size_tput, output_cols, None)
assert ValueError

0 comments on commit 1eb54eb

Please sign in to comment.