Skip to content
Myr

Fix tests to not rely on `-Wdefault` option (#3591)

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

authored by Rowlando13 · committed by GitHub · parents 09195f6, 1557e26 · Browse files · 1 file+2 added−4 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+2 added−4 removed

  • tests:+2 added−4 removed

1 file+2 added−4 removed

modified:tests/test_options.py+2 added-4 removed
3318 unmodified lines
3319 @click.option("--xyz", default="second")3320 def cli(xyz):3321 click.echo(repr(xyz), nl=False)33223323 result = runner.invoke(cli, [])3324 assert result.exit_code == 13325 assert isinstance(result.exception, UserWarning)3326 assert "used more than once" in str(result.exception)3323 with pytest.warns(UserWarning, match="used more than once"):3324 runner.invoke(cli, [])332533263327@pytest.mark.parametrize(3328 ("args", "expected"),
187 unmodified lines