Skip to content

Commit

Permalink
Change the log level to WARNING to match the documentation
Browse files Browse the repository at this point in the history
tox --help says verbosity level 2 is WARNING.
  • Loading branch information
mgedmin committed Dec 14, 2022
1 parent 622efcc commit 1ee225e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tox/session/env_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def iter(
continue
if tox_env_filter_re is not None and tox_env_filter_re.match(name):
if name not in self._warned_about:
LOGGER.info("skip environment %s, matches filter %r", name, tox_env_filter_re.pattern)
LOGGER.warning("skip environment %s, matches filter %r", name, tox_env_filter_re.pattern)
self._warned_about.add(name)
continue
yield name
Expand Down
4 changes: 2 additions & 2 deletions tests/session/test_env_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_tox_skip_env(tox_project: ToxProjectCreator, monkeypatch: MonkeyPatch)
env_list = py3{10,9},mypy
"""
project = tox_project({"tox.ini": ini})
outcome = project.run("l", "--no-desc")
outcome = project.run("l", "--no-desc", "-q")
outcome.assert_success()
outcome.assert_out_err("py310\npy39\n", "")

Expand All @@ -91,6 +91,6 @@ def test_tox_skip_env_logs(tox_project: ToxProjectCreator, monkeypatch: MonkeyPa
env_list = py3{10,9},mypy
"""
project = tox_project({"tox.ini": ini})
outcome = project.run("l", "--no-desc", "-v")
outcome = project.run("l", "--no-desc")
outcome.assert_success()
outcome.assert_out_err("ROOT: skip environment mypy, matches filter 'm[y]py'\npy310\npy39\n", "")

0 comments on commit 1ee225e

Please sign in to comment.