Skip to content

Commit 6e9ee2b

Browse files
authored
Merge pull request #1724 from blueyed/followup-pr1718-remove-newline
funcarg_prefix_warning: remove newline
2 parents dd5ce96 + 3cfebdd commit 6e9ee2b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

_pytest/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def yield_fixture(scope="function", params=None, autouse=False, ids=None, name=N
868868
defaultfuncargprefixmarker = fixture()
869869
funcarg_prefix_warning = (
870870
'{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated '
871-
'and scheduled to be removed in pytest 4.0.\n'
871+
'and scheduled to be removed in pytest 4.0. '
872872
'Please remove the prefix and use the @pytest.fixture decorator instead.')
873873

874874

testing/acceptance_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ def test_funcarg_prefix(value):
789789
""")
790790
result = testdir.runpytest('-ra')
791791
result.stdout.fnmatch_lines([
792-
'*declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0*',
793-
'*remove the prefix and use the @pytest.fixture decorator instead*',
792+
('WC1 None pytest_funcarg__value: '
793+
'declaring fixtures using "pytest_funcarg__" prefix is deprecated '
794+
'and scheduled to be removed in pytest 4.0. '
795+
'Please remove the prefix and use the @pytest.fixture decorator instead.'),
794796
'*1 passed*',
795797
])

0 commit comments

Comments
 (0)