Skip to content

Commit dd5ce96

Browse files
authored
Merge pull request #1718 from blueyed/fix-funcarg_prefix_warning
Add punctuation to funcarg_prefix_warning
2 parents aeccd6b + 15e97a7 commit dd5ce96

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

_pytest/fixtures.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -864,11 +864,12 @@ def yield_fixture(scope="function", params=None, autouse=False, ids=None, name=N
864864
else:
865865
return FixtureFunctionMarker(scope, params, autouse, ids=ids, name=name)
866866

867-
defaultfuncargprefixmarker = fixture()
868-
funcarg_prefix_warning = '{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated ' \
869-
'and scheduled to be removed in pytest 4.0.\n' \
870-
'remove the prefix and use the @pytest.fixture decorator instead'
871867

868+
defaultfuncargprefixmarker = fixture()
869+
funcarg_prefix_warning = (
870+
'{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated '
871+
'and scheduled to be removed in pytest 4.0.\n'
872+
'Please remove the prefix and use the @pytest.fixture decorator instead.')
872873

873874

874875
@fixture(scope="session")
@@ -877,8 +878,6 @@ def pytestconfig(request):
877878
return request.config
878879

879880

880-
881-
882881
class FixtureManager:
883882
"""
884883
pytest fixtures definitions and information is stored and managed

0 commit comments

Comments
 (0)