Skip to content

Commit db92cea

Browse files
authored
black: --target-version py35 (#6872)
2 parents bce1d40 + dc86fb6 commit db92cea

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ template = "changelog/_template.rst"
5454
directory = "trivial"
5555
name = "Trivial/Internal Changes"
5656
showcontent = true
57+
58+
[tool.black]
59+
target-version = ['py35']

src/_pytest/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def fixture(
11411141
params=params,
11421142
autouse=autouse,
11431143
ids=ids,
1144-
name=name
1144+
name=name,
11451145
)
11461146
scope = arguments.get("scope")
11471147
params = arguments.get("params")
@@ -1179,7 +1179,7 @@ def yield_fixture(
11791179
params=params,
11801180
autouse=autouse,
11811181
ids=ids,
1182-
name=name
1182+
name=name,
11831183
)
11841184

11851185

testing/test_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def test_hello(capsys):
439439
out, err = capsys.readouterr()
440440
assert out.startswith("42")
441441
""",
442-
*opt
442+
*opt,
443443
)
444444
reprec.assertoutcome(passed=1)
445445

testing/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def pytest_sessionstart(session):
702702
config = session.config
703703
terminal_plugin.append(bool(config.pluginmanager.get_plugin("terminalreporter")))
704704
"""
705-
}
705+
},
706706
)
707707
testdir.syspathinsert()
708708
result = testdir.runpytest("-p", "myplugin", str(p1))
@@ -781,7 +781,7 @@ def pytest_addoption(parser):
781781

782782
testdir.makefile(
783783
".ini",
784-
**{"pytest": "[pytest]\nfoo = root", "subdir/pytest": "[pytest]\nfoo = subdir"}
784+
**{"pytest": "[pytest]\nfoo = root", "subdir/pytest": "[pytest]\nfoo = subdir"},
785785
)
786786

787787
testdir.makepyfile(

0 commit comments

Comments
 (0)