Skip to content

Commit c5bf5f6

Browse files
[pre-commit.ci] pre-commit autoupdate (#8699)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.16.0 → v2.18.2](asottile/pyupgrade@v2.16.0...v2.18.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ef9d018 commit c5bf5f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
- id: reorder-python-imports
3535
args: ['--application-directories=.:src', --py36-plus]
3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v2.16.0
37+
rev: v2.18.2
3838
hooks:
3939
- id: pyupgrade
4040
args: [--py36-plus]

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ def parse_warning_filter(
16111611
raise warnings._OptionError(f"too many fields (max 5): {arg!r}")
16121612
while len(parts) < 5:
16131613
parts.append("")
1614-
action_, message, category_, module, lineno_ = [s.strip() for s in parts]
1614+
action_, message, category_, module, lineno_ = (s.strip() for s in parts)
16151615
action: str = warnings._getaction(action_) # type: ignore[attr-defined]
16161616
category: Type[Warning] = warnings._getcategory(category_) # type: ignore[attr-defined]
16171617
if message and escape:

testing/test_junitxml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ def test_pass():
13881388

13891389
result, dom = run_and_parse(f, f)
13901390
result.stdout.no_fnmatch_line("*INTERNALERROR*")
1391-
first, second = [x["classname"] for x in dom.find_by_tag("testcase")]
1391+
first, second = (x["classname"] for x in dom.find_by_tag("testcase"))
13921392
assert first == second
13931393

13941394

@@ -1406,7 +1406,7 @@ def test_pass():
14061406

14071407
result, dom = run_and_parse(f, "--dist", "each", "--tx", "2*popen")
14081408
result.stdout.no_fnmatch_line("*INTERNALERROR*")
1409-
first, second = [x["classname"] for x in dom.find_by_tag("testcase")]
1409+
first, second = (x["classname"] for x in dom.find_by_tag("testcase"))
14101410
assert first == second
14111411

14121412

0 commit comments

Comments
 (0)