MCPcopy
hub / github.com/pallets/click / test_echo_no_streams

Function test_echo_no_streams

tests/test_utils.py:105–111  ·  tests/test_utils.py::test_echo_no_streams

echo should not fail when stdout and stderr are None with pythonw on Windows.

(monkeypatch, runner)

Source from the content-addressed store, hash-verified

103
104
105def test_echo_no_streams(monkeypatch, runner):
106 class="st">""class="st">"echo should not fail when stdout and stderr are None with pythonw on Windows."class="st">""
107 with runner.isolation():
108 sys.stdout = None
109 sys.stderr = None
110 click.echo(class="st">"test")
111 click.echo(class="st">"test", err=True)
112
113
114@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

isolationMethod · 0.80

Tested by

no test coverage detected