Skip to content
Myr

secho print empty string if it takes None

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by her0e1c1 · committed by Markus Unterwaditzer · parent 70bc054 · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/test_termui.py+7 added
40 unmodified lines
4142 monkeypatch.setattr(click._termui_impl, 'isatty', lambda _: True)43 result = runner.invoke(cli, [])44 assert result.exception is None454647def test_secho(runner):48 with runner.isolation() as out:49 click.secho(None, nl=False)50 bytes = out.getvalue()51 assert bytes == b''