black: --target-version py35 (#6872)
This commit is contained in:
commit
db92cea14c
|
@ -54,3 +54,6 @@ template = "changelog/_template.rst"
|
||||||
directory = "trivial"
|
directory = "trivial"
|
||||||
name = "Trivial/Internal Changes"
|
name = "Trivial/Internal Changes"
|
||||||
showcontent = true
|
showcontent = true
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
target-version = ['py35']
|
||||||
|
|
|
@ -1141,7 +1141,7 @@ def fixture(
|
||||||
params=params,
|
params=params,
|
||||||
autouse=autouse,
|
autouse=autouse,
|
||||||
ids=ids,
|
ids=ids,
|
||||||
name=name
|
name=name,
|
||||||
)
|
)
|
||||||
scope = arguments.get("scope")
|
scope = arguments.get("scope")
|
||||||
params = arguments.get("params")
|
params = arguments.get("params")
|
||||||
|
@ -1179,7 +1179,7 @@ def yield_fixture(
|
||||||
params=params,
|
params=params,
|
||||||
autouse=autouse,
|
autouse=autouse,
|
||||||
ids=ids,
|
ids=ids,
|
||||||
name=name
|
name=name,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -439,7 +439,7 @@ class TestCaptureFixture:
|
||||||
out, err = capsys.readouterr()
|
out, err = capsys.readouterr()
|
||||||
assert out.startswith("42")
|
assert out.startswith("42")
|
||||||
""",
|
""",
|
||||||
*opt
|
*opt,
|
||||||
)
|
)
|
||||||
reprec.assertoutcome(passed=1)
|
reprec.assertoutcome(passed=1)
|
||||||
|
|
||||||
|
|
|
@ -702,7 +702,7 @@ def test_plugin_loading_order(testdir):
|
||||||
config = session.config
|
config = session.config
|
||||||
terminal_plugin.append(bool(config.pluginmanager.get_plugin("terminalreporter")))
|
terminal_plugin.append(bool(config.pluginmanager.get_plugin("terminalreporter")))
|
||||||
"""
|
"""
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
testdir.syspathinsert()
|
testdir.syspathinsert()
|
||||||
result = testdir.runpytest("-p", "myplugin", str(p1))
|
result = testdir.runpytest("-p", "myplugin", str(p1))
|
||||||
|
@ -781,7 +781,7 @@ def test_config_in_subdirectory_colon_command_line_issue2148(testdir):
|
||||||
|
|
||||||
testdir.makefile(
|
testdir.makefile(
|
||||||
".ini",
|
".ini",
|
||||||
**{"pytest": "[pytest]\nfoo = root", "subdir/pytest": "[pytest]\nfoo = subdir"}
|
**{"pytest": "[pytest]\nfoo = root", "subdir/pytest": "[pytest]\nfoo = subdir"},
|
||||||
)
|
)
|
||||||
|
|
||||||
testdir.makepyfile(
|
testdir.makepyfile(
|
||||||
|
|
Loading…
Reference in New Issue