Skip to content

Commit

Permalink
secho print empty string if it takes None
Browse files Browse the repository at this point in the history
  • Loading branch information
her0e1c1 committed Feb 3, 2016
1 parent dd293a7 commit 00b6eca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_termui.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ def cli():

monkeypatch.setattr(click._termui_impl, 'isatty', lambda _: True)
assert label in runner.invoke(cli, []).output


def test_secho(runner):
with runner.isolation() as out:
click.secho(None, nl=False)
bytes = out.getvalue()
assert bytes == b''

0 comments on commit 00b6eca

Please sign in to comment.