Skip to content

Commit c87323c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 145ce1e commit c87323c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/tox_env/test_tox_env_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_setenv_path_venv_paths_first(tox_project: ToxProjectCreator) -> None:
202202
project = tox_project({"tox.toml": toml})
203203
result = project.run("r")
204204
result.assert_success()
205-
path_line = [line for line in result.out.splitlines() if "/trailing/path" in line][0]
205+
path_line = next(line for line in result.out.splitlines() if "/trailing/path" in line)
206206
path_entries = path_line.split(":")
207207
# The virtual environment paths (containing .tox) must come before the trailing path
208208
tox_idx = next((i for i, p in enumerate(path_entries) if ".tox" in p), None)

0 commit comments

Comments
 (0)