funcarg_prefix_warning: remove newline
Followup to https://github.com/pytest-dev/pytest/pull/1718.
This commit is contained in:
parent
dd5ce96cd7
commit
3cfebdd7c5
|
@ -868,7 +868,7 @@ def yield_fixture(scope="function", params=None, autouse=False, ids=None, name=N
|
||||||
defaultfuncargprefixmarker = fixture()
|
defaultfuncargprefixmarker = fixture()
|
||||||
funcarg_prefix_warning = (
|
funcarg_prefix_warning = (
|
||||||
'{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated '
|
'{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated '
|
||||||
'and scheduled to be removed in pytest 4.0.\n'
|
'and scheduled to be removed in pytest 4.0. '
|
||||||
'Please remove the prefix and use the @pytest.fixture decorator instead.')
|
'Please remove the prefix and use the @pytest.fixture decorator instead.')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -789,7 +789,9 @@ def test_funcarg_prefix_deprecation(testdir):
|
||||||
""")
|
""")
|
||||||
result = testdir.runpytest('-ra')
|
result = testdir.runpytest('-ra')
|
||||||
result.stdout.fnmatch_lines([
|
result.stdout.fnmatch_lines([
|
||||||
'*declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0*',
|
('WC1 None pytest_funcarg__value: '
|
||||||
'*remove the prefix and use the @pytest.fixture decorator instead*',
|
'declaring fixtures using "pytest_funcarg__" prefix is deprecated '
|
||||||
|
'and scheduled to be removed in pytest 4.0. '
|
||||||
|
'Please remove the prefix and use the @pytest.fixture decorator instead.'),
|
||||||
'*1 passed*',
|
'*1 passed*',
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue