echo should not fail when stdout and stderr are None with pythonw on Windows.
(monkeypatch, runner)
| 103 | |
| 104 | |
| 105 | def 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( |